I need some help please. This is a contact form and after hitting submit I get the error "Parse error: parse error, unexpected T_STRING in /www/xxxxxx/contact/contactsetting.php on line 10" Line 10 is the save_path code. <?php $replyto='support@xxxxxxx.com; $uploadpath='/contact/uploads/'; $save_path ='http://'.$_SERVER['SERVER_NAME'].$uploadpath; switch ($subject) { case "Support": $toemail='support@xxxxxxx.com'; break; } $autorespond="no"; ?> Code (markup):
If you used an editor that colored the syntax, you would have noticed that you missed a closing quote in $replyto='support@xxxxxxx.com; Make it $replyto='support@xxxxxxx.com'; The error rippled down and was caught in a line that has nothing to do with the error message.
Wow I didn't even realize it and I looked at it for about 30 minutes lol. Yea I didn't think about using a text editor, I just used the editor in Transmit (my ftp program) Thanks so much