Hey.
hvordan får jeg mit script til og vise $fornavn osv. i html koden i $besked ?
<?php
$tallet = 100000000;
$random = rand(0,$tallet);
$bestil = $_GET[bestil];
?>
<?php
if (!$bestil == "index"){
?>
<title>bestil</title>
<body bgcolor="#2A507D">
<form action="?bestil=ok&id=<?php echo "$random"; ?>" method="post">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#3F76BA" width="100%" id="AutoNumber1">
<tr>
<td width="50%"><b><font face="Verdana" color="#FFFFFF" size="2">Personligt
info:</font></b><p><font face="Verdana" size="2" color="#FFFFFF">
Fornavn:</font><font face="Verdana" size="1" color="#FF0000">*</font><font face="Verdana" size="2" color="#FFFFFF"><br>
<input type="text" name="fornavn" size="35" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D"><br>
Efternavn:</font><font face="Verdana" size="1" color="#FF0000">*</font><font face="Verdana" size="2" color="#FFFFFF"><br>
<input type="text" name="efternavn" size="35" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D"><br>
Adresse:</font><font face="Verdana" size="1" color="#FF0000">*</font><font face="Verdana" size="2" color="#FFFFFF"><br>
<input type="text" name="adresse" size="35" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D"><br>
Post nr. & By</font><font face="Verdana" size="1" color="#FF0000">*</font><font face="Verdana" size="2" color="#FFFFFF"><br>
<input type="text" name="post" size="4" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D" maxlength="4">
<input type="text" name="bu" size="25" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D"><br>
E-mail:</font><font face="Verdana" size="1" color="#FF0000">*</font><font face="Verdana" size="2" color="#FFFFFF"><br>
<input type="text" name="mail" size="35" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D"><br>
Telefon:<br>
<input type="text" name="telefon" size="35" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D"><br>
Mobil:</font><font face="Verdana" size="1" color="#FF0000">*</font><font face="Verdana" size="2" color="#FFFFFF"><br>
<input type="text" name="mobil" size="35" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D"></font></td>
<td width="50%"><font face="Verdana" size="2" color="#FFFFFF"><b>Din
bestilling:<br>
</b></font><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2" height="219">
<tr>
<td width="15%" height="16">
<font face="Verdana" size="2" color="#FFFFFF"><b>Antal:</b></font></td>
<td width="85%" height="16">
<font face="Verdana" size="2" color="#FFFFFF"><b>Produkter:</b></font></td>
</tr>
<tr>
<td width="15%" height="19"> </td>
<td width="85%" height="19"> </td>
</tr>
<tr>
<td width="15%" height="16">
<font face="Verdana" size="2" color="#FFFFFF">
<input type="text" name="gsantal" size="4" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D" maxlength="2"></font></td>
<td width="85%" height="16">
<select size="1" name="gameservers" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #2A507D">
<option selected value=" ">Vælg Produkt</option>
<option>12 Slots Cw server</option>
<option>16 Slots Cw sever</option>
<option>12 Slots FFa server</option>
<option>16 Slots FFa server</option>
</select></td>
</tr>
<tr>
<td width="15%" height="19">
<font face="Verdana" size="2" color="#FFFFFF">
<input type="text" name="vsantal" size="4" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D" maxlength="2"></font></td>
<td width="85%" height="19">
<!--webbot bot="Validation" b-disallow-first-item="TRUE" --><select size="1" name="ventriloservers" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #2A507D">
<option selected value=" ">Ingen Produkter</option>
</select></td>
</tr>
<tr>
<td width="15%" height="19">
<font face="Verdana" size="2" color="#FFFFFF">
<input type="text" name="tsantal" size="4" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D" maxlength="2"></font></td>
<td width="85%" height="19">
<!--webbot bot="Validation" b-disallow-first-item="TRUE" --><select size="1" name="teamspeakservers" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #2A507D">
<option selected value=" ">Ingen Produkter</option>
</select></td>
</tr>
<tr>
<td width="15%" height="16">
<font face="Verdana" size="2" color="#FFFFFF">
<input type="text" name="bncantal" size="4" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; background-color: #2A507D" maxlength="2"></font></td>
<td width="85%" height="16">
<!--webbot bot="Validation" b-disallow-first-item="TRUE" --><select size="1" name="sbnc" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #2A507D">
<option selected value=" ">Ingen Produkter</option>
</select></td>
</tr>
<tr>
<td width="15%" height="19"> </td>
<td width="85%" height="19"> </td>
</tr>
<tr>
<td width="15%" height="19"> </td>
<td width="85%" height="19"> </td>
</tr>
<tr>
<td width="15%" height="19"> </td>
<td width="85%" height="19"> </td>
</tr>
<tr>
<td width="15%" height="19"> </td>
<td width="85%" height="19"> </td>
</tr>
<tr>
<td width="15%" height="19"> </td>
<td width="85%" height="19"> </td>
</tr>
<tr>
<td width="15%" height="19"> </td>
<td width="85%" height="19"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" colspan="2">
<p align="left"><font face="Verdana" size="2" color="#FFFFFF"><br>
Forretningsbetingelser:</font><br>
<iframe name="I1" width="487" height="355" border="0" frameborder="0" src="Hjem.htm" style="border: 1px solid #FFFFFF; background-color: #2A507D">
Webbrowseren understøtter ikke indbyggede rammer eller er aktuelt konfigureret til ikke at vise indbyggede rammer.</iframe>
</p>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber3">
<tr>
<td width="50%">
<input type="checkbox" name="Forretningsbetingelser" value="Har godkendt forretningsbetingelser" style="font-size: 10 px; font-family: Verdana; padding: 0"><font size="2" color="#FFFFFF"><font face="Verdana">Jeg
godkender jeres forretningsbetingelser</font></font></td>
<td width="50%">
<input type="submit" value="Bestil" style="font-size: 10 px; font-family: Verdana; color: #FFFFFF; float: left; border: 1px solid #FFFFFF; padding-left: 4; padding-right: 4; padding-top: 1; padding-bottom: 1; background-color: #2A507D"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<?php
}
?>
<?php
if ($bestil == "ok"){
?>
<?php
$fejl = array();
if (!$_POST[fornavn]) { $fejl[] = "Du har ikke skrevet dit fornavn"; }
if (!$_POST[efternavn]) { $fejl[] = "Du har ikke skrevet dit efternavn"; }
if (!$_POST[adresse]) { $fejl[] = "Du har ikke skrevet din adresse"; }
if (!$_POST[post]) { $fejl[] = "Du har ikke skrevet dit post nummer"; }
if (!$_POST[bu]) { $fejl[] = "Du har ikke skrevet din by"; }
if (!$_POST[mail]) { $fejl[] = "Du har ikke skrevet din e-mail"; }
if (!$_POST[mobil]) { $fejl[] = "Du har ikke skrevet dit mobil nummer"; }
if (!$_POST[Forretningsbetingelser]) { $fejl[] = "Du har ikke godkendt vores Forretningsbetingelser"; }
$mail_reg = "^[a-z0-9_\\+-]+(\\.[a-z0-9_\\+-]+)*@[a-z0-9-]+(\\.[a-z0-9-]+)*\\.([a-z]{2,4})$";
if (!eregi($mail_reg, $mail)) { $fejl[] = "Du har ikke udfyldt din e-mail rigtigt"; }
$connect = mysql_connect("");
mysql_select_db("");
$fornavn = $_POST['fornavn'];
$efternavn = $_POST['efternavn'];
$adresse = $_POST['adresse'];
$post = $_POST['post'];
$bu = $_POST['bu'];
$mail = $_POST['mail'];
$telefon = $_POST['telefon'];
$mobil = $_POST['mobil'];
$gsantal = $_POST['gsantal'];
$gameservers = $_POST['gameservers'];
$vsantal = $_POST['vsantal'];
$ventriloservers = $_POST['ventriloservers'];
$tsantal = $_POST['tsantal'];
$teamspeakservers = $_POST['teamspeakservers'];
$bncantal = $_POST['bncantal'];
$sbnc = $_POST['sbnc'];
$Forretningsbetingelser = $_POST['Forretningsbetingelser'];
$id = mysql_insert_id();
$headers = "From: CsClan Shoppen <order@CsClan-Shoppen.dk>\\n";
$headers .= "MIME-Version: 1.0\\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\\n";
$subject = 'Din order';
$besked = '<html>
<head>
<title>Order</title>
</head>
<body>
<p>hey 'echo $fornavn;' </p>
</body>
</html>';
if (!$fejl[0]) { mysql_query("INSERT INTO bestilling (fornavn, efternavn, adresse, post, bu, mail, telefon, mobil, gsantal, gameservers, vsantal, ventriloservers, tsantal, teamspeakservers, bncantal, sbnc, Forretningsbetingelser) VALUES ('$fornavn','$efternavn','$adresse','$post','$bu','$mail','$telefon','$mobil','$gsantal','$gameservers','$vsantal','$ventriloservers','$tsantal','$teamspeakservers','$bncantal','$sbnc','$Forretningsbetingelser')") or die (mysql_error());
echo "<font face=verdana size=2 color=black>Din bestilling er nu sendt.<br> Du vil få sendt en mail med login info til kunde login. <br><br> Tak for bestillingen!"; }
$x = 0; while ($fejl[$x]) { echo "<body bgcolor='#2A507D'><font face='Verdana' size='2' color='#FFFFFF'>$fejl[$x]<br>"; $x++; } echo "<br><a target='I1' href='bestil.php'>Tilbage</a>";
mail($mail, $subject, $besked, $headers)
?>
<?php
}
?>