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 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question send email --- insert radio buttons

    Hi, i have a little problem. I have a form and want to send it per mail. But I don't know how to insert radio buttons or checkboxes. I only know how to insert textboxes. Can anyone help me??

    Here is my script:

    <?PHP
    echo "Your survey was sent successfully to Mr.xx!\n\n";
    echo $_REQUEST['Function']."<br>";
    mail("my_mail@mail.com", "Survey form $Name", "$_REQUEST['Function']");
    ?>

    Thx....a lot!!

  • #2
    New Coder
    Join Date
    Apr 2004
    Location
    CA, USA
    Posts
    27
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do you mean in the initial php page or in the email itself? The former is easy, the latter I don't know about.

  • #3
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I know how to do it on the PHP page, but I want to send the Information in an email. Thats what I dont know!

  • #4
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    there is this error all the time:

    Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /data/members/free/tripod/de/u/s/a/usaberliner/htdocs/form2.php on line 4

  • #5
    Mega-ultimate member
    Join Date
    Jun 2002
    Location
    Winona, MN - The land of 10,000 lakes
    Posts
    1,855
    Thanks
    1
    Thanked 45 Times in 42 Posts
    Try something like this by creating a $msg var and adding info to it using ".="

    PHP Code:
    echo "Your survey was sent successfully to Mr.xx!\n\n";
    echo 
    $_REQUEST['Function']."<br>";
    $msg "";
    $msg.= $_REQUEST['Function']."\n\n";
    $msg.= "Add what ever you want here";
    mail("my_mail@mail.com""Survey form $Name"$msg);
    ?> 
    You could also check out this page:
    http://www.aphion.com/class/class9/sendmail.html

    or the php.net site for more info.

  • #6
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    awesome, thank you so very much!!! it works....i have looked since yesterday for a solution. ohh...thanks!!!!


  •  

    Posting Permissions

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