Ik heb hetzelfde doel ook al een keer met Perl willen bereiken, maar dat lukte niet dus dacht ik, laten we het eens met PHP proberen.
Ik zit nog steeds bij Portland btw.
Nu krijg ik echter een Parse error als dit ik ga uitvoeren.
Parse error: parse error in /host/d/e/g/p/o/r/degoeij.port5.com/mailform.php on line 17
Wat doe ik fout?
Ik zit nog steeds bij Portland btw.
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| <HTML> <HEAD> <TITLE>Guestbook Script</TITLE> </HEAD> <BODY BGCOLOR="#FFFFFF"> <FORM METHOD="POST" ACTION="mailform.php"> <INPUT NAME="name" SIZE=50 TYPE="text"> <B>Your Name</B><BR> <INPUT NAME="email" SIZE=50 TYPE="text"> <B>Your E-Mail Address</B><BR> <INPUT TYPE="hidden" NAME="submitaddress" VALUE="mrbombastico@hotmail.com"> <B>Write to me below:</B><P> <TEXTAREA NAME="feedback" ROWS=10 COLS=50></TEXTAREA><P> <CENTER> <INPUT TYPE=submit VALUE="SEND"> <INPUT TYPE=reset VALUE="CLEAR"> </CENTER> </FORM> </BODY> </HTML> |
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| <?php /* . */ // ************* MODIFY THE NEXT THREE LINES ***************************** $title = "Guestbook Script"; // <--- PUT THE TITLE OF YOUR HOME PAGE BETWEEN THE "" MARKS $home = "http://degoeij.port5.com/phpform.html"; // <--- PUT YOUR URL BETWEEN THE "" MARKS $mailto = "mrbombastico@hotmail.com"; // <--- PUT YOUR E-MAIL ADDRESS BETWEEN THE "" MARKS // ********************* MODIFY NO MORE ******************************** // Bedankt ! PRINT "<html><head><title>Bedankt !</title></head><body><div align=\"left\"><body bgcolor="#FFBB55"><table border=\"0\" cellpadding=\"2\" cellspacing=\"0\" width=\"100%\"><tr><td width=\"100%\" height=\"50\"></td></tr><tr><td width=\"100%\" valign=\"top\" align=\"left\"><p align=\"center\"><font face=\"Arial\" size=\"3\">Uw bericht is verzonden !</font></p><p align=\"center\"><font face=\"Arial\" size=\"4\"><a href=\"$home\"></font></p></td></tr><tr><td width=\"100%\" height=\"20\"></td></tr></table></div></body></html>"; // Scrape off the slashes before processing $umsg = stripslashes($umsg); // Here is where we grab and process the form and variables from mailform.php // and e-mail the results to the value of "$mailto" $mailfrom = "From: $uemail"; $subject= "$usubj"; $body = "* * * * * MAILFORM 12GRATIS.NL * * * * *\n\nIP-adres: $REMOTE_ADDR\nNaam: $uname\nEMail: $uemail\n $usubj\nBericht: $umsg\n\n* * * * * MAILFORM 12GRATIS.NL * * * * *"; mail ($mailto, $subject, $body, $mailfrom); ?> |
Nu krijg ik echter een Parse error als dit ik ga uitvoeren.
Parse error: parse error in /host/d/e/g/p/o/r/degoeij.port5.com/mailform.php on line 17
Wat doe ik fout?
Before me there was many, after me there will be none. I'm the one!