PDA

View Full Version : php parse error



grmlyn
October 19th, 2004, 03:24 AM
Parse error: parse error, unexpected $ in /home/hsphere/local/home/mukiria/afresuke.org/inc/config.inc on line 43


The above is the error one gets when clicking submit button for afresuke.org/applicationform.htm.

The following is the script I'm running. Note: line 43 is the last line

<?php
# use full paths
# not using full paths could prevent the script from functioning properly
# script directory
# no trailing slash
$script_dir = "/home/www/afresuke.org";
# hostname on which script is running
$host = "65.75.191.98 ";
# domain to which to send email
$domain = "afresuke.org";
# script url (url to script directory above)
# no trailing slash
$script_url = "http://$domain/";
# variables below corresponds to the Email to * in your contact form
# match the numbers to the value for which option maps to a specific email
# you can add more as long as you keep them in sync
$adminemail[1] = "application@$domain"; #alias address
# preceeds the subject the user puts in on the contact form
$subjectheader = "Application Form:";
# url the form will redirect to after sending email
$redirecturl = "http://$domain/thankyou.htm";
# text that will display if you leave above variable blank
$finishedtext = "Thank you for sending mail. We will Reply asap!";
# how the message will show in the email
# you can reorder these how you wish or modify the message itself to your liking
# just be sure and leave the $variables in tact
#Message definition for the comments page
$comment_msg = "
Name: ". $_POST['name'] ."
Email: ". $_POST['email'] ."
Alternate Mail: ". $_POST['mail2'] ."
Telephone: ". $_POST['phone'] ."
Address: ". $_POST['address'] ."
Date of Birth: ". $_POST['dob'] ."
Kenya: ". $_POST['kenya'] ."
Tanzania: ". $_POST['tanzania'] ."
Uganda: ".$_POST['uganda'] ."
Request Application: ".$_POST['request'] ."
Futher Enquires: ".$_POST['enquires'] ."
Response Programs: ". $_POST['response'] ."
Comments: ". $_POST['comments'] ."
Questions: ". $_POST['questions'] ."
;
?>


Any idea where I've gone wrong?

teiz77
October 19th, 2004, 03:38 AM
yeah, remove the last ."

grmlyn
October 19th, 2004, 05:16 AM
Good looking out dude, ama try that.
But its kinda funny why its bringing that up yet in my other scripts it works.
I know when combining with html the tag does'nt matter but when its sole I always thought it does. well

teiz77
October 19th, 2004, 05:21 AM
it's a miracle it works in your other scripts... It should always produce an error...