Results 1 to 2 of 2

Thread: Please help with my PHP script
      
   

  1. #1
    wgreene is offline Sergeant Major
    Join Date
    Sep 2005
    Location
    Missouri
    Posts
    89

    Exclamation Please help with my PHP script

    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. #2
    VodaHost's Avatar
    VodaHost is offline General & Forum Administrator
    Join Date
    Mar 2005
    Location
    Wilmington, Delaware USA
    Posts
    11,429

    Default

    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
    07031847328 / United Kingdom

    ------------------------

    Top 3 Best Sellers

    Web Hosting - Unlimited disk space & bandwidth.

    Reseller Hosting - Start your own web hosting business.

    Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. embedding RSS Feed via PHP
    By wgreene in forum mySQL & PHP
    Replies: 4
    Last Post: 05-20-2008, 02:06 AM
  2. how do i insert php?
    By GiGoLo in forum mySQL & PHP
    Replies: 1
    Last Post: 11-19-2005, 11:04 AM
  3. Please help with PHP / SQL
    By alexw in forum mySQL & PHP
    Replies: 2
    Last Post: 11-16-2005, 01:31 AM
  4. Unable to send mails via PHP
    By rana in forum mySQL & PHP
    Replies: 1
    Last Post: 10-07-2005, 12:14 AM
  5. PHP error
    By emagine in forum mySQL & PHP
    Replies: 1
    Last Post: 09-07-2005, 11:58 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49