![]() |
|
| |||||||
| Notices |
| mySQL & PHP Discussions, information and help with mySQL and PHP. |
![]() |
| | LinkBack | Thread Tools |
|
#1
| |||
| |||
|
I created a script today but keep getting this error: Parse error: parse error, unexpected T_BOOLEAN_OR, expecting ',' or ')' in /home/yourinf/public_html/sendmail.php on line 8 Can someone please look at my script and suggest way's to fix or improve? Thank you very much. <?PHP $name = $_REQUEST['first name'] ; $email = $_REQUEST['email address'] ; $state = $_REQUEST['state or country'] ; $message = $_REQUEST['message'] ; if (!isset($_REQUEST['email'] || ['name'] || ['state'])){ header( "Location: http://www.example.com/error.html" ); } elseif (empty($name)) || (empty($email)) || (empty($state)) || (empty($message)) { header( "Location: http://www.yourinfodomain.com/error.html" ); else { mail( "kwenterprise******.com", "YourInfo Comments", $message, "From: $email" ); header( "Location: http://www.yourinfodomain.com/thankyou.html" ); } ?> |
|
#2
| ||||
| ||||
|
please visit the below thread to learn more about forms http://www.vodahost.com/vodatalk/sho...ighlight=forms
__________________ VodaHost Your Website People! 1-302-283-3777 North America / International 07092887580 / United Kingdom Military Ranking System Explained Click Here to take the royal VodaHost Tour Click Here for the VodaHost Help Centre & Tutorials Got a question? - Try a forum search! Available at the top of every page! |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| embedding RSS Feed via PHP | wgreene | mySQL & PHP | 4 | 05-20-2008 03:06 AM |
| how do i insert php? | GiGoLo | mySQL & PHP | 1 | 11-19-2005 12:04 PM |
| Please help with PHP / SQL | alexw | mySQL & PHP | 2 | 11-16-2005 02:31 AM |
| Unable to send mails via PHP | rana | mySQL & PHP | 1 | 10-07-2005 01:14 AM |
| PHP error | emagine | mySQL & PHP | 1 | 09-07-2005 12:58 PM |