I can't get formMail.php to recognize my simple Spry Radio Group button

I don't know php at all, but I have a dreamweaver form that sends its information to a document called "formmail.php" and that sends the email to me.
I was able to add text fields by duplicating the text field code in the formmail.php file and it does work, BUT i don't know what code should be on the file to process the radio button information. The radio button group is made up of 2 buttons "Yes" and "No"
This is a abbreviated version of "formmail.php"
<body>
<?php
  $name=addslashes($_POST['name']);
  $address=addslashes($_POST['address']);
  $email=addslashes($_POST['email']);
  $radioGroup1=addslashes($_POST['arrangements']);
  $comments=addslashes($_POST['message']);
// you can specify which email you want your contact form to be emailed to here
  $toemail = "[email protected]";
  $subject = "From the VFS website";
  $headers = "MIME-Version: 1.0\n"
            ."From: \"".$name."\" <".$email.">\n"
            ."Content-type: text/html; charset=iso-8859-1\n";
  $body = "Name: ".$name."<br>\n"
            ."Address: ".$address."<br>\n"
."Email: ".$email."<br>\n"
."Have you made pre-arrangements?: ".$radioGroup1."<br>\n"
            ."Comments:<br>\n"
            .$comments;
  if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
    echo "That is not a valid email address.  Please return to the"
           ." previous page and try again.";
    exit;
    mail($toemail, $subject, $body, $headers);
    echo "Thanks for submitting your comments";
?>
</body>
</html>
And this is what the code for my Spry Radio Group button is looking like.
<p id="arrangements"><span id="spryradio1">
                                      <label>
                                        <input type="radio" name="RadioGroup1" value="Yes" id="RadioGroup1_0">
                                        Yes  </label>
                                      <label>
                                        <input type="radio" name="RadioGroup1" value="No" id="RadioGroup1_1">
                                        No</label>
                                        <br>
                                      <br>
</span></p>
Please help - I'm lost!

The post form method gets a variable, by name and sends that value to your processor.  You have called $_POST['attachments'] which is the name of the container <p> tag and not of the radio group.  So change:
$radioGroup1=addslashes($_POST['arrangements']);
to
$radioGroup1=addslashes($_POST['RadioGroup1']);
That changes the <p> arrangements to the RadioGroup1 which is the name you gave the radio group.

Similar Messages

  • After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?

    After I reset my Ipod (deleted all data and settings) windows 7 doesn't recognize by ipod touch, and it doesn't appear in the itunes library or in the device menu, but it does charge. How can I get my computer to recognize it again?

    Refer to this article:
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/TS1538

  • HT201269 when i back up my iphone 5 so that i have all the info from my 4s on it, it wont put my music on it or let me do anything with it. how can i get my itunes to recognize that it is my new iphone and let me put stuff on it with out completely resett

    when i back up my iphone 5 so that i have all the info from my 4s on it, it wont put my music on it or let me do anything with it. how can i get my itunes to recognize that it is my new iphone and let me put stuff on it with out completely resetting it?

    What version of iTunes are you running on your computer? You need to update to the current version.

  • How can a get my iMAC to recognize a newly installed optical drive?

    I recently ordered a new Optical drive for my iMAC 12,1 to replace a damaged one. I followed the instructions online to replace the drive with no issues. I restarted the iMAC and it will not recognize the new optical drive. The optical drive won't accept any disks either. The optical drive is
    Model GA11N
    Manufacturer: HL
    Condition: Brand New never used, without original manufacturer packaging
    SATA interface, Slot-in loading, 12.7mm in height, without faceplate, no eject button. 1 Year Warranty
    with Apple Logo, Special for Apple iMac Intel 20" EMC 2266 A1224 21.5" 2308 27" 2390 2309 2374 Mac Mini Mid 2010
    Write Speed: DVD-RAM :5X DVD+R :8X DVD+R DL :4X DVD-R DL :4X DVD+RW :8X DVD-R :8X DVD-RW :6X CD-R :24X CD-RW :24X Read Speed: DVD-ROM/DL: 6X CD-R:24X CD-RW: 24X CD-ROM: 24X
    How can a get the iMAC to recognize this new optical drive?

    Here are some sources for Mac compatible optical drives that wiil work with your 2011 iMac.
    http://eshop.macsales.com/item/OWC/VLU2SD24XS/
    http://eshop.macsales.com/item/OWC/MR3F82SD24S/
    http://www.amazon.com/Aluminum-External-Super-Drive-Apple--MacBook/dp/B007FUDKB4 /ref=sr_1_1?s=electronics&ie=UTF8&qid=1392328000&sr=1-1&keywords=mac+compatible+ dvd+drive
    http://www.amazon.com/External-Super-Drive-Apple-MacBook/dp/B009XON646/ref=sr_1_ 3?s=electronics&ie=UTF8&qid=1392328066&sr=1-3&keywords=mac+compatible+dvd+drive
    http://www.amazon.com/LG-Electronics-Portable-External-GP40NB40/dp/B009DS6OFU/re f=sr_1_8?s=electronics&ie=UTF8&qid=1392328138&sr=1-8&keywords=mac+compatible+dvd +drive

  • How can I get the phone to recognize mini SD Card?

    I have a 32G Sandisk SD Card in the G4 mini but one day the phone said the card was blank and unsupported.  I purchased another SD Card and installed it however the phone does not recognize that I have an SD card.  When I try and save music or pics to the card the phone says I have removed the storage.  How can I get the phone to recognize the card storage?

    First of all do you Mount or Unmount the card from the settings menu before pulling the card out of its slot? Make sure that the option Mount is greyed out in you settings menu when the card is in the phone. If not select it.  If you pull the card out of the phone select Unmount first.  You can also try formatting the card from the same settings menu.  If these two things do not work, then either the card is defective or the card hardware slot is defective.

  • How can i get apple tv2 to recognize more than one computer in my house

    how can i get apple tv2 to recognize more than one computer in my house, I just got it and can only find one of two computers in my home

    Same here. I have 1 ATV2 and 2 computers and each has separate iTunes accounts (mine and my wife's). The ATV menu says "computers" so I presume you can have more than 1 computer on 1 ATV. The big question is how do you set it up?

  • How can I get Acrobat 9 to recognize my new device, epson Workforce 3540 all-in-one.

    How can I get Acrobat 9 to recognize my new device, epson Workforce 3540 all-in-one.

    Hi plichy,
    Are you able to print to your new printer from other applications, or is it just Acrobat that doesn't recognize the printer? This document outlines some printer troubleshooting tips, and is a really great place to start: Troubleshoot PDF printing | Acrobat, Reader
    Please let us know how it goes.
    Best,
    Sara

  • How can I get Lr 5 to recognize my iPhone 4s as a device to copy and import photos?

    How can I get Lr 5 to recognize my iPhone 4s as a device to copy and import photos?

    It does not work! This occurred since I upgraded to the iOS7 software on my iPhone. Apple claims it's an Adobe problem
    Sent from my iPhone

  • I can't get my computer to recognize my iPod 4 Touch after a software update.

    I can't get my computer to recognize my iPod 4 touch after I do a software update.  The iPod goes into restore mode and the the computer won't recognize the iPod no matter what USB port I'm pluged into, or if I reboot the iPod, the computer, or iTunes. 

    Please don't get fancy with the font.  It's hard to read.
    http://support.apple.com/kb/TS1538
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • I can't get my macbook to recognize my desktop pc with windows 7

    i can't get my macbook to recognize my desktop pc with windows 7.

    Mac 101: File sharing may have some hints.
    Stefan

  • I can see my IPhone in my Devices list when I connect with a USB but can't see my IPod when I connect with the USB.  How can I get my computer to recognize my ipod

    I can see my IPhone in my Devices list when I connect with a USB but can't see my IPod when I connect with the USB.  How can I get my computer to recognize my ipod

    iPod not recognized in 'My Computer' and in iTunes for Windows

  • Can I get my computer to recognize my iPod w/out losing music???

    An iPod (60GB) given to me by a friend, with about 500 songs on it, will not be recognized by my laptop (I get the iPod Updated launched and the only option it gives me is to reformat). I use another iPod (mini) on this laptop too. How can I get my computer to recognize it, or is it possible, without reformatting and losing all of the music already on it? I don't have any of the paperwork / drivers / cds that came with it, but it is still under warranty (88 days left). Please help!!! Is there a way to get the music saved off of it before I reformat it?

    This link may provide the answer you are looking for:  http://www.apple.com/support/ipad/assistant/itunes/

  • I can't get my mac to recognize my iPhone

    I can not get my MAC to recognize my iPhone

    With so little information all I can do is point you here http://www.apple.com/support/iphone/assistant/itunes/

  • I can't get back to my home screen? Is the home button broke?

    I can't get back to my home screen? Is the home button broke?

    A simple press on the home button should always get you back to your 'app-menu'. If this is not the case there is a problem. It is possible that your button is broken. Maybe you could try first to install the latest iOS version through iTunes if you haven't done already. Or try to reset your iPhone by pressing the power button a few seconds and then Slide to Power off.
    Let me know if it works!

  • By API action, how can I get the list of user IDs within a specific group  (which is created by API) ?

    By API action, how can I get the list of user IDs within a
    specific group (which is created by API) ?
    or How can I get the group (which is I create by API) ID to
    which a specific user belong by API action?
    Thanks
    Alex

    The poster already posted at the Acrobat Users Community, Interactive Forms that sums up a client order from catalog. The sample form posted to Acrobat.com was a revision of the sample form that came with Acrobat 4.0. There are some fairly advance scripts, templates, and document level functions involved with this form.

Maybe you are looking for