HASTER !!!!!
Hej..jeg har følgende kode, som giver en fejl når jeg trykker på submit knappen... er der nogen der kan løse det er der 200 point at hente..
-------
Koden ser sådan her ud :
<html>
<head>
<title>Sign up for Nesu Conference Aarhus 2002</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="StyleSheet.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?PHP
if ($send == 'ok') { //brugeren har trykket på send knappen
echo "<b>Your sign up information has now been sent to Nesu Denmark!</b><br><br>"; //her udskrives beskeden til brugen
/////////////////////herunder sættes alle variabler vedr. e-mail
$mail_til = "signup@nesu.dk";//hvem skal e-mailen sendes til
$mail_overskrift = "Sign up information fra nesu.dk"; //overskriften på e-mailen
$mail_besked = "
Følgende person har tilmeldt sig konferencen:\n\n
Fornavn: $firstname\n
Efternavn: $lastname\n
Streetname: $streetname\n
Post.nr.: $zipcode\n
by: $city\n
Land: $country\n
Skole: $schoolname\n
Email: $email\n
Tlf.: $phone\n
Alder: $age\n
T-shirt: $tshirtsize\n
Vegetar: $vegetarian\n
Ryger: $smoking\n
";
//////////////////////
mail("$mail_til","$mail_overskrift","$mail_besked");//her sendes e-mailen
} else {
?>
<form name="signupform" method="post" action="conf-signup.php">
<p>
<table cellspacing="0" cellpadding="2" border="0" width="380">
<input type="hidden" name="send" value="ok">
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Firstname:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="firstname" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Lastname:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="lastname" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Streetname:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="streetname" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Zip-code:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="zipcode" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>City:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="city" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Country:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="country" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Name of your
school:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="schoolname" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>E-mail:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="email" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Phone no.:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="phone" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Age:</b></td>
<td height="30" class="MenuText" width="170">
<input type="text" name="age" size="30" class="text">
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>T-shirt size:</b></td>
<td height="30" class="MenuText" width="170">
<select name="tshirtsize">
<option>small
<option>medium
<option>large
<option>x-large
</select>
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Vegetarian:</b></td>
<td height="30" class="MenuText" width="170">
<select name="vegetarian">
<option>no
<option>yes
</select>
</td>
</tr>
<tr>
<td width="210" align="right" height="30" class="MenuText"><b>Do you smoke:</b></td>
<td height="30" class="MenuText" width="170">
<select name="smoking">
<option>no
<option>yes
</select>
</td>
</tr>
<tr>
<td height="30" class="MenuText" width="210"></td>
<td height="30" class="MenuText" width="170">
<div align="center">
<input type="submit" value="Sign Up!">
</div>
</td>
</tr>
</table>
</form>
<?PHP
}
?>
</body>
</html>
------
Den fejl jeg får når jeg klikker på submit knappen er som følgende:
-----
Your sign up information has now been sent to Nesu Denmark!
Warning: Failed to Connect in D:\web\nesu.dk_k2e8qi\wwwroot\conf-signup.php on line 37
-----
Håber I kan hjælpe hurtigt...
