Ik was dus even bezig met een mailform maken, en dan krijg ik een foutmelding 
De foutmelding: Parse error: parse error, unexpected $ in /usr/local/psa/home/vhosts/dreamgrafix.be/httpdocs/tf/php/versturen.php on line 17
Line 17 is "?>" en daar is nix fouts aan.. wat doe ik fout?
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| <?php echo '<html><head><title>Mail sent</title></head><body><script type="text/javascript">'; $ontvanger = "p_slagter@hotmail.com"; if($HTTP_POST_VARS['nickname']==''){echo 'alert("You didnt fill in a nickname..")'; $controle=0;}else{$nickname = $HTTP_POST_VARS['nickname']; if($HTTP_POST_VARS['icq']==''){echo 'alert("You didnt fill in a valid ICQ Number. If you dont have ICQ fill in n/a")'; $controle=0;}else{$icq = $HTTP_POST_VARS['ICQ']; if($HTTP_POST_VARS['email']==''){echo 'alert("Please enter an e-mail address")'; $controle=0;}else{$email = $HTTP_POST_VARS['emailadres']; if($HTTP_POST_VARS['nationaliteit']==''){echo 'alert("Please fill in your nationality")'; $controle=0;}else{$nationaliteit = $HTTP_POST_VARS['nationality']; if($HTTP_POST_VARS['desired']==''){echo 'alert("Whats your desired squad?")'; $controle=0;}else{$desired = $HTTP_POST_VARS['desired']; if($HTTP_POST_VARS['referee']==''){echo 'alert("You didnt fill in a referee..")'; $controle=0;}else{$ref = $HTTP_POST_VARS['referee']; if($HTTP_POST_VARS['formersquad']==''){echo 'alert("Please fill in one or more former squads!")'; $controle=0;}else{$formsq = $HTTP_POST_VARS['formersquad']; if($HTTP_POST_VARS['age']==''){echo 'alert("Please fill in your age!")'; $controle=0;}else{$age = $HTTP_POST_VARS['age']; if($controle==1){$verzender="From: ".$nickname." <".$email.">";}; if($controle==1){mail($ontvanger,$nickname,$icq,$email,$nationaliteit,$desired,$ref,$formsq,$age,$verzender);}; echo "</script>"; if($controle=1){echo "Mail sent. Click <a href=javascript:history.back()>here</a> to go back or <a href=javascript:close()>here</a> to close this window.";}else{echo " Something went wrong, please go <a href=javascript:history.back()>back</a> and fill in the form correctly (fill in <b>all</b> fields!";}; echo "</body></html>"; ?> |
De foutmelding: Parse error: parse error, unexpected $ in /usr/local/psa/home/vhosts/dreamgrafix.be/httpdocs/tf/php/versturen.php on line 17
Line 17 is "?>" en daar is nix fouts aan.. wat doe ik fout?
[ Voor 38% gewijzigd door Verwijderd op 20-03-2003 19:14 ]