*Zwei-Sterne-User*
Code:
<html>
<head>
<title>Registration</title>
</head>
<body>
<table border="0" cellpadding="1" cellspacing="2">
<form action="register2.php" method="post">
<tr>
<td>Account:</td>
<td><input name="Name" size="20" type="text"></td>
</tr>
<tr>
<td>eMail:</td>
<td><input name="eMail" size="20" type="text"></td>
</tr>
<tr>
<td>Password:</td>
<td><input name="Password" size="20" type="password"></td>
</tr>
<tr>
<td align="center" colspan="2"><input name="Send" type="submit" value="register"> <input name="Reset" type="reset" value="reset"></td>
</tr>
</form>
</table>
</body>
</html>
Code:
<html>
<head>
<title>Registration</title>
</head>
<body>
<?php
$Empfaenger = "webmaster-m16@hotmail.com";
if($_REQUEST['Send'])
{
if(empty($_REQUEST['Account']) || empty($_REQUEST['eMail']) || empty($_REQUEST['Password']))
{
echo"Please go <a href=\"javascript:history.back();\">back</a> and fill all the gaps!";
}
else
{
$Mailnachricht = "Neuer User in AGTL: \n\n";
while(list($Formularfeld, $Wert)=each($_REQUEST))
{
if($Formularfeld!="Send")
{
$Mailnachricht .= $Formularfeld.": ".$Wert."\n";
}
}
$Mailnachricht .= "\nDatum/Zeit: ";
$Mailnachricht .= date("d.m.Y H:i:s");
$Mailbetreff = "AGTL-Anmeldeungt: ";
$Mailbetreff .= $_REQUEST['Betreff'];
mail($Empfaenger, $Mailbetreff, $Mailnachricht, "From: ".$_REQUEST['Email']);
echo"Please wait until we have activated your account, this could take a few hours.";
}
}
else
{
echo"Error click <a href=\"register.php\">here</a>.";
}
?>
</body>
</html>
Komme nicht weiter, egal was ich eingebe, es erscheint jedesmal die Nachricht: Please go <a href=\"javascript:history.back();\">back</a> and fill all the gaps!
Kann jemand helfen?
Avire