Ok, here is my Problem:
I want the Visitor on my page to fill out the form below. After that he send it so to say to the same script. If he forgot to fill out 4 special text fields he gets an specified error message, but the parser says always "parse error on line 62", altough i did not even sent the form.
Please help me with that little Problem...
John G.
===============================
Here is the Script:
/*
<form action="bannerexch.php" method="post">
<TABLE align="center" width="150" cellspacing="6" cellpadding="6" border="0">
<tr>
<td width="50%" align="left"><span class="normal">Nickname:</span>
</td>
<td width="50%" align="left">
<INPUT type="text" name="name" size="50" maxlength="120">
</td>
</tr>
<tr>
<td width="50%" align="left"><span class="normal">Email:</span>
</td>
<td width="50%" align="left">
<INPUT type="text" name="email" size="50" maxlength="120">
</td>
</tr>
<tr>
<td width="50%" align="left"><span class="normal">Homepage:</span>
</td>
<td width="50%" align="left">
<INPUT type="text" name="page" value="http://" size="50" maxlength="120">
</td>
</tr>
<tr>
<td width="50%" align="left"><span class="normal">Banner URL:</span>
</td>
<td width="50%" align="left">
<INPUT type="text" name="bannerurl" value="http://" size="50" maxlength="120">
</td>
</tr>
<tr>
<td width="50%" align="left"><span class="normal">Kommentar :<BR></span>
</td>
<td align="left">
<TEXTAREA name="comments" rows="10" cols="52" wrap="off">Hier Kommentar bitte...</TEXTAREA>
</td>
</tr>
<tr valign="baseline">
<td>
</td>
<td>
<input type="hidden" name="check" value="doit">
<INPUT type="submit" value="Senden"><img src="public/mmedia/pictures/seite/pixel.gif" width="140" height="10">
<input type="reset" value="Clear Form">
</td>
</tr>
</TABLE>
</FORM>
<?
if ($check == "doit") {
$error_msg = "Sie haben folgende Felder nicht ausgefuellt: \n <ul>";
$error_end = "\n </ul>";
if (empty($name) {
$error_msg = $error_msg + "\n<li>Nickname</li>";
}
if (empty($email) {
$error_msg = $error_msg + "\n<li>e-mail Adresse</li>";
}
if (empty($page) {
$error_msg = $error_msg + "\n<li>Ihre Homepage</li>";
}
if (empty($bannerurl) {
$error_msg = $error_msg + "\n<li>Den URL Ihres Banners</li>";
}
if (empty($name || $email || $page || $bannerurl) {
echo $error_msg ;
echo $error_end ;
} else {
.......
.......
}
}
?>
*/