Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Php Send Mail Not Sending

    I am trying to use Php send mail. The problem I am having is when I use this on the page

    <select name="color_choice">
    <option value="red">red</option>
    <option value="blue">blue</option>
    </select>


    and this in the send mail

    $color_choice= $_REQUEST['color choice'] ;

    I get nothing sent


    What do I have to use or do I have a mistake All text items are being sent

    THXS STeve

  • #2
    New Coder
    Join Date
    Oct 2007
    Posts
    84
    Thanks
    0
    Thanked 8 Times in 8 Posts
    The underscore, maybe?

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts
    No if you do that you get error

  • #4
    New Coder
    Join Date
    Oct 2007
    Posts
    84
    Thanks
    0
    Thanked 8 Times in 8 Posts
    What is the error?

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts
    Parse error: syntax error, unexpected T_STRING in /home2/cruisew/public_html/sendmail.php on line 4

    This is the line

    $color choice= $_REQUEST['color choice'] ; When I do this I get error

  • #6
    New Coder
    Join Date
    Oct 2007
    Posts
    84
    Thanks
    0
    Thanked 8 Times in 8 Posts
    Code:
    $color_choice = $_REQUEST['color_choice'];
    That's the underscore I was talking about

  • Users who have thanked toddandrae for this post:

    stevan (12-25-2007)

  • #7
    Regular Coder
    Join Date
    Jun 2002
    Posts
    271
    Thanks
    4
    Thanked 0 Times in 0 Posts
    My fault I did not see what I did at first

    I had this

    $color_choice= $_REQUEST['color_choice'] ;

    Should be this

    $message = $_REQUEST['color_choice'] ;

    THXS


  •  

    Posting Permissions

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