Hey
Får denne fejl
Parse error: syntax error, unexpected T_LNUMBER in /hsphere/local/home/****/****/shop.php on line 151
Scripet:
<?php
if(!isset($_POST['Navn']))
{
header("Location: bestil.htm");
}
else
{
//Henter data fra formular
$Navn = $_POST['Navn'];
$Adresse = $_POST['Adresse'];
$Post = $_POST['Post'];
$by = $_POST['by'];
$mail = $_POST['mail'];
$BNC = $_POST['BNC'];
$gameS = $_POST['gameS'];
$Vent = $_POST['Vent'];
$TeamS = $_POST['TeamS'];
$Betal = $_POST['Betal'];
$psya = $_POST['psya'];
$gamea = $_POST['gamea'];
$vena = $_POST['vena'];
$tsa = $_POST['tsa'];
$mailk = "CsClan Shoppen";
$reklame = $_POST['reklame'];
$C1 = $_POST['C1'];
$servertype = $_POST['servertype'];
$amx = $_POST['amx'];
$mods = $_POST['mods'];
if(empty($Navn))
{
echo "Du har ikke udflydt dit navn<br><a href='bestil.htm' title='Klik her for at komme tilbage'>Tilbage</a><br>";
}
if(empty($servertype))
{
echo "Du har ikke udflydt servertype<br><a href='bestil.htm' title='Klik her for at komme tilbage'>Tilbage</a><br>";
}
if(empty($amx))
{
echo "Du har ikke udflydt amx<br><a href='bestil.htm' title='Klik her for at komme tilbage'>Tilbage</a><br>";
}
if(empty($Adresse))
{
echo "Du har ikke udflydt dit Adresse<br><a href='bestil.htm' title='Tilbage'>Tilbage</a><br>";
}
if(empty($by))
{
echo "Du har ikke udflydt dit By<br><a href='bestil.htm' title='Tilbage'>Tilbage</a><br>";
}
if(empty($mail))
{
echo "Du har ikke udflydt dit Mail<br><a href='bestil.htm' title='Tilbage'>Tilbage</a><br>";
}
if(empty($C1))
{
echo "<br><br>Du skal Sætte Flueben i <br>Ja, jeg har læst og forstået CsClan's Vilkår<br><a href='bestil.htm' title='Tilbage'>Tilbage</a><br>";
}
else
{
if(ereg("^.+@.+\\..+$", $mail)) {
$sendto = "Shop@web-CsClan.dk";
$kunde = "".$mail."";
$shopmail = "CsClan@Shoppen.dk";
$msgkunde = "<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>
<title>Faktura</title>
</head>
<body>
<div align='center'>
<table border='0' style='border-collapse: collapse' width='782'>
<tr>
<td width='780'>
<img border='0' src='http://www.csclan-shoppen.dk/logo/logo.jpg' width='780' height='108'></td>
</tr>
<tr>
<td><b><font color='#446382' size='1' face='Verdana'>Hey $Navn</font></b></td>
</tr>
<tr>
<td width='778'><br>
<b><font size='1' face='Verdana' color='#446382'>Du har bestilt:</font></b></td>
</tr>
<tr>
<td width='778'><font size='1'> </font></td>
</tr>
<tr>
<td width='778'>
<table border='0' width='100%' style='border-collapse: collapse'>
<tr>
<td><b><font size='1' face='Verdana' color='#446382'>Produkter:</font></b></td>
<td width='116'><b>
<font size='1' face='Verdana' color='#446382'>Antal:</font></b></td>
</tr>
<tr>
<td><font size='1' face='Verdana' color='#446382'>$BNC<br>
$gameS<br>
$Vent<br>
$TeamS</font></td>
<td width='116'>
<font size='1' face='Verdana' color='#446382'>$psya<br>
$gamea<br>
$vena<br>
$tsa</font></td>
</tr>
<tr>
<td colspan='2'><font size='1'> </font></td>
</tr>
<tr>
<td><b><font size='1' face='Verdana' color='#446382'>Server
Type:</font></b></td>
<td width='116'>
<font size='1' face='Verdana' color='#446382'>$servertype</font></td>
</tr>
<tr>
<td><font size='1'> </font></td>
<td width='116'>
<font size='1' color='#446382' face='Verdana'> </font></td>
</tr>
<tr>
<td><b><font face='Verdana' size='1' color='#446382'>Mods</font></b></td>
<td width='116'><font size="1"> </font></td>
</tr>
<tr>
<td><font size='1'> </font></td>
<td width='116'>
<font size='1' color='#446382' face='Verdana'> </font></td>
</tr>
<tr>
<td><font face='Verdana' size='1' color='#446382'>AMX Mod X</font></td>
<td width='116'>
<font size='1' face='Verdana' color='#446382'>$amx</font></td>
</tr>
<tr>
<td><font face='Verdana' size='1' color='#446382'>Server
mods</font></td>
<td width='116'>
<font size='1' face='Verdana' color='#446382'>$mods</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='778'>
<font size='1'> </font></td>
</tr>
<tr>
<td width='778'>
<b><font size='1' face='Verdana' color='#446382'>Betalingsmetoder:</font></b></td>
</tr>
<tr>
<td width='778'>
<font size='1'> </font></td>
</tr>
<tr>
<td width='778'>
<b><font size='1' color='#446382' face='Verdana'>Bankoverførsel</font></b><br>
<font face='Verdana'><font size='1' color='#446382'>Bank: Nordea<br>
Reg nr: 2255<br>
Konto nr: 7555 902 985 <br>
</font><span style='font-size: 8pt;'><b><br>
</b></span><b><font size='1' face='Verdana' color='#446382'>Ewire</font></b><span style='font-size: 8pt;'><b><br>
</b></span>
<a target='_blank' href='https://secure.ewire.dk/includes/quickservice.asp?action=changesme&savesme=1&email=shop@web-csclan.dk&name=Mike+Ringvig&subject=KUN+DIT+FORNAVN+OG+EFTERNAVN&body=&amount=0,00&allowchange=28&viewemail=0'>
<font size='1' color='#446382'>Betal med ewire</font></a></font></td>
</tr>
<tr>
<td width='778'>
<font size='1'> </font></td>
</tr>
<tr>
<td width='778'>
<b><font color='#446382' size='1' face='Verdana'>Tak fordi du valgte
CsClan Shoppen som dit hosting firma.<br>
Møder du problemer med dit produkt så kontakt os på
<a href='mailto:Shop@web-CsClan.dk'><font color='#6086AC'>
Shop@web-CsClan.dk</font></a> eller via mIRC #CsClan<br>
Håber du bliver tilfreds med dit produkt.</font></b><font face='Verdana'><font color='#808080'><span style='font-size: 8pt'><br>
</span></font>
</font><b><font color='#446382' size='1' face='Verdana'><br>Du kan ikke svare på denne her e-mail adresse</font></b><font color='#446382' size='2' face='Verdana'><b>.</b></font><p>
<font face='Verdana'><b><font color='#446382' size='1'>Regelsæt:</font></b><span style'font-size: 8pt'><font color='#808080'>
<a href='www.CsClan-shoppen.dk/cwrules.htm'><a href='#'onClick='window.open'('cwrules.htm','vinduenavn','width=550,height=280')'>
<font size='1'><span style='text-decoration: none'>Cw servers</span></font></a></font><font size='2'</a></td></font></span></font></td>
</tr>
</table>
</div>
</body>
</html>";
$subject = "Bestilling";
$msg = "<html>
<head>
<meta http-equiv='Content-Language' content='da'>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>
<title>Faktura</title>
</head>
<body>
<table border='0' width='400' id='table1' style='border-collapse: collapse'>
<tr>
<td colspan='2'><b><font face='Verdana' size='2'>Personligt:</font></b></td>
</tr>
<tr>
<td colspan='2'> </td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>Navn:</font></td>
<td><font face='Verdana' size='2'>$Navn</font></td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>Adresse:</font></td>
<td><font face='Verdana' size='2'>$Adresse</font></td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>By:</font></td>
<td><font face='Verdana' size='2'>$by</font></td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>E-mail:</font></td>
<td><font face='Verdana' size='2'>$mail</font></td>
</tr>
<tr>
<td colspan='2'> </td>
</tr>
<tr>
<td colspan='2'><b><font face='Verdana' size='2'>Bestilt:</font></b></td>
</tr>
<tr>
<td colspan='2'> </td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>$gameS</font></td>
<td><font face='Verdana' size='2'>$gamea</font></td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>$TeamS</font></td>
<td><font face='Verdana' size='2'>$tsa</font></td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>$Vent</font></td>
<td><font face='Verdana' size='2'>$vena</font></td>
</tr>
<tr>
<td width='127' height='22'><font face='Verdana' size='2'>$BNC</font></td>
<td height='22'><font face='Verdana' size='2'>$psya</font></td>
</tr>
<tr>
<td colspan='2'> </td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>Server Type:</font></td>
<td><font face='Verdana' size='2'>$servertype</font></td>
</tr>
<tr>
<td colspan='2'> </td>
</tr>
<tr>
<td colspan='2'><b><font face='Verdana' size='2'>Mods</font></b></td>
</tr>
<tr>
<td colspan='2'> </td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>AMX Mod X:</font></td>
<td><font face='Verdana' size='2'>$amx</font></td>
</tr>
<tr>
<td width='127'><font face='Verdana' size='2'>Server
mods:</font></td>
<td><font face='Verdana' size='2'>$mods</font></td>
</tr>
<tr>
<td colspan='2'> </td>
</tr>
<tr>
<td colspan='2'><font face='Verdana' size='2'>Hørt os fra: $reklame</font></td>
</tr>
<tr>
<td colspan='2'><font face='Verdana' size='2'>Betaler med: $Betal</font></td>
</tr>
<tr>
<td colspan='2'> </td>
</tr>
<tr>
<td colspan='2'><font face='Verdana' size='2'>$Navn Har godkendt $C1
Vilkår</font></td>
</tr>
</table>
</body>
</html>";
if(mail($sendto, $subject, $msg, "From: $mail\\r\\n" . "Reply-To: $mail\\r\\n" . "Content-Type: text/html\\r\\n" ))
if(mail($kunde, $subject, $msgkunde, "From: $shopmail\\r\\n" . "Reply-To: $shopmail\\r\\n" . "Content-Type: text/html\\r\\n" ))
{
echo "Faktura er blivet sendt til ".$mail."<br>Faktura vil komme hurtigst muligt<br><br><b><font color='#FF0000'>Obs.</font></b> På nogle E-mails kan der gå ca 30 min før du får fakturaen.";
}
else
{
echo "Der opstod en fejl. Prøv igen. <a href='bestil.htm' title='Klik her for at komme tilbage'>Klik her for at komme tilbage til formularen</a>";
}
}
else
{
echo "Ugyldig e-mail adresse. <a href='bestil.htm' title='Tilbage'>Tilbage</a>";
}
}
}
?>
Kan ikke forstå at den laver den fejl. den har virket fint entil nu