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

I don't know any PHP, but I have a form of dreamweaver which sends its information from a document called "formmail.php" and sent me the email.

I was able to add text fields by duplicating the code text field in the formmail.php file and it works, BUT I don't know what code should be on the file to process the information of the radio button. The radio button group consists of 2 buttons 'Yes' and 'no '.

This is an abridged 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 here

$toemail = " " [email protected] "; "

$subject = 'on the VFS site. "

$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 ".

." E-mail: '. '. $email. "" < br / > \n ".

." Do you have made prior arrangements? : «. $radioGroup1. "" < br / > \n ".

." "Comments: < br > \n".

. $comments;

If (! ereg ("^ [a-zA-Z0-9_] + @[a-zA-Z0 - 9-] + \.")) [a-zA-Z0 - 9-------.] + $"(, $email))"

{

echo "is not a valid email address.  "Please return to the.

. "previous page and try again. ';

"exit";

}

mail ($toemail, $subject, $body, $headers);

echo "thank you for your comments";

? >

< / body >

< / html >

_________________________________________________________________

And that's what the code for my Radio Spry buttons band button looks.

_________________________________________________________________

< id p = 'settings' > < span id = "spryradio1" >

< label >

< input type = "radio" name = "RadioGroup1" value = "Yes" id = "RadioGroup1_0" >

Yes < / label >

< label >

< input type = "radio" name = "RadioGroup1" value = "" id = "RadioGroup1_1" >

Not < / label >

< br >

< br >

</span > < / p >

Please help - I am lost!

Form post method gets a variable by name and sends this value to your processor.  You called $_POST ['attached'] which is the name of the container

tag and not the Group of radio buttons.  So change:

$radioGroup1 = addslashes($_POST['arrangements']);

TO

$radioGroup1 = addslashes($_POST['RadioGroup1']);

This changes the

arrangements for the RadioGroup1 which is the name you gave the Group of radio buttons.

Tags: Dreamweaver

Similar Questions

  • Formmail.php

    Hey guys

    I've created a form that is supposed to go to my Web page, but I can't find how to make it work.

    It consist of 4 fields and I want this information to my e-mail address. He said everywhere I read, that I need to write a frommail.php.

    as I don't know Jack on this subject, is there a place or person who can help me?

    Kin regards Thomas

    It is very likely that your Web host has a form to send the available script (possibly called formmail.php, probably not well), as well as instructions on how to apply it. I would check there first.

    Otherwise, you can do a search for "form (the language of the server authorized by your accommodation here) the script to email ' in Google and find literally hundreds of articles and scripts. The main thing to keep in mind is the language of the server-side that you want to use must be supported by your Web host.

    After getting a script, it's pretty much 1-2-3 set up 'copy your email address in this part of the script' then 'copy the script on your server' then 'add the action attribute to the form to point to the script' steps from the style.

  • How can I get my itunes recognize my ipod touch after upgrade to windows 10

    I can't get my itunes recognize my ipod touch, after that I have upgraded to windows 10. I upgraded my itunes and my ipod touch (6.1.6) my drivers. It worked until I've updated but not now. My ipod nano recognized bnut isn't my contact. It appears in 'the PC' under the apple ipod, internal storage. How can I get this to work?

    First test:

    iTunes: fix iPhone or iPod not detected Windows 10

    Then, try

    iPhone, iPad, or iPod not recognized in iTunes for Windows

    -I would like to start by

    Remove and reinstall iTunes and the components of the software for Windows 7 and later versions

    -New cable and another USB port

    See also:

    iPod not recognized by iTunes windows - CSA

    Troubleshooting problems with iTunes for Windows updates

    -Try on another computer to help determine if a computer problem or iPod

  • I can't get Lightroom 3 recognize my iphone 4 when I opened import.

    I can't get Lightroom 3 recognize my iphone 4 when I opened import. Nothing comes. It is not the cable or the port that the phone is recognized by other applications and importers of photo on my computer. Someone knows how to fix this? Thank you! Miranda

    Hi Miranda,

    Could you please copy the pictures from your phone to a folder on the desktop and then go ahead and import the images into Lightroom?

    Kind regards

    Tanuj

  • Can I use php in muse encoding?

    Can I use php in muse encoding?

    Sure. Muse allows you to insert custom HTML that includes buildings from any language on the server side.

    Mylenium

  • I just installed my copy of cs5 in a new computer windows 10 - How can I get it to recognize my NEF files, as it did in my old laptop?

    I just installed my copy of cs5 in a new computer windows 10 - How can I get it to recognize my NEF files, as it did in my old laptop?

    Could you please install the DNG Converter, and then it should help

    Installation link: Adobe - Adobe Camera Raw and DNG Converter: for Windows

  • How I can add the php code in my Web site muse

    How I can add the php code in my site muse?

    Insert you user-defined html.

    Mylenium

  • I can upload a php file to my host with a html contact form embedded in Muse for it to work?

    I can upload a php file to my host with a html contact form embedded in Muse for it to work?

    This would require to know his needs and your hosting provider. And who are also lies the answer: you can not blindly create a form in Muse and just that it will work, you need to know this stuff in advance and design "spec".

    Mylenium

  • Can I change .php file in Adobe Edge Code CC?

    Can I change .php file in Adobe Edge Code CC localhost?

    Why edge is inspect option cc? Randy Edmunds

    > Can I change .php file in Adobe Edge Code CC localhost?

    I don't know exactly what is your question. You can edit text files in Edge Code CC. There is not as much functionality for PHP as JS, but there are a few extensions that add more functionality for .php files.

    You can use file > project settings... to specify a local server (for example, localhost) to view the .php files in the live preview (although not all the Live Preview features work with this configuration).

    > Why the edge is inspect option cc?

    This allows to integrate the Code CC edge edge inspect CC (https://creative.adobe.com/products/inspect).

    Kind regards

    Randy

  • What can I use PHP with Dreamweaver (was: php)

    Can I use php for scripts in dreamweaver cs5, on a windows server 2008

    Yes, you can use DW to create PHP scripts. If your windows server supports PHP (ask the host) these scripts will be executed.

  • can we install PHP under Oracle R12 E-Business Server?

    Hello

    Can we install PHP server on oracle applications R12 for the publication of E-Business PHP pages?

    Thank you and best regards.

    Can we install PHP server on oracle applications R12 for the publication of E-Business PHP pages?

    As long as you install it in a different directory/home, then you should be OK.

    Thank you
    Hussein

  • I can't get CS6 to recognize my Sony DCR-TRV340 camera to capture video from this camera.  CS6 C

    I can't get CS6 to recognize my Sony DCR-TRV340 camera to capture video from this camera.  The CS6 capture Tin can, set up a message that a capture device is offline.  Camera Sony DCR-TRV340 is not listed in the CS6 device Type list in the CS6-DV/HDV cameras Sony device control settings box.  I downloaded what I believe are the right drivers for the TRV340 and when I connect the camera to the computer, the computer shows it is in the box devices and printers, but CS6 do not recognize.  Do I need to install these drivers in a specific CS6 program folder?  If Yes, where can I find these drivers in the Professional operating system of windows 7, and in which folder CS6 would copy their?

    Thanks John,

    The controller IEEE 1394 of switching for the Legacy driver did the trick.  CS6 now recognizes my camera.  Thank YOU MUCH for the help!

    Chuck

  • Integrate the Media Player to accept and recognize the fm Internet radio to record music. It says that it cannot open this file.

    I want to know how to get windows media to recognize the fm Internet radio. I want to burn music and it says that it can not display this file.  How to integrate the >

    Hello Paiwakit,

    ·         You have saved records from Internet Radio?

    ·         How you try to burn the files?

    I understand you are trying to burn music that you have saved from Internet radio.

    There is no option to burn Internet FM Radio files with Media Player.

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit our Microsoft answers feedback Forum and let us know what you think.

  • I can't use FF to connect to simple Web pages. A lot of pages javascript seems to be disabled. have deleted the C:/p/moz FF x 86 files and reinstalled. No change.

    I am running Firefox 24.0 with Windows 7. I can't use Firefox to connect to simple Web pages. When I try to use all the features of sites Web which include cookies of the browser does.
    Many functions JavaScript seems to be disabled, that many parts of Web pages do not work. I went to: Tools > Options and checked all the settings for something suspicious, it looked good.

    This happened a few months at least. I tried to remove Firefox yesterday, by deleting this file: C:\Program Files (x 86) \Mozilla Firefox and then ran the Mozilla Firefox
    Installer and it did reinstall correctly, but the problem persists.

    I only use Firefox for browsing the web. I also use other browsers with my install W7: I use Opera, IE and chrome, they all work great. The only extensions that I use are the Manager session 0.8.0.8 and selector Group tab 0.1. My Silverlight, Shockwave, Acrobat, and Flash Player are all up to date. I use the default theme. I use all services.

    I don't know what else to do. Help, please.

    Alright. I checked the stuff you guys recommended on the preferences and profiles. I didn't know a lot of this stuff, I do now, that's really useful, thanks!

    I checked the help > information on troubleshooting and I went there to reset Firefox. Which caused the browser working properly again, so I guess I was wrong earlier when I said that it "broke the program."

    I looked at the data I'm in sync. I started the browser synchronization again. This time I unchecked individual boxes, starting with preferences, then I synchronized and looked to see if the problem is back. It turns out that what he was doing was data "bookmarks".

    I guess that the only thing left to do is clear my sync data.

  • How can I register a keyword to every image in a group of photos.

    How can I register a keyword to every image in a group of photos.

    Select the photos you want, do a right click and info and type the keyword

    LN

Maybe you are looking for

  • Active actions not updated

    I was wondering if anyone else has this problem. I saw that there was an update of active stocks yesterday in the Google game store. When I tried to apply the update, I got a message that there was an error downloading the update. I could not this me

  • Empty window of Windows Update.

    Yesterday the appearance of my Windows Update has changed, and when I tried to view the available updates, I see an empty window. I see only two tags, labeled as Important (1) and (4) optional, with no text in them. (I use Vista Business SP2)

  • Connection continues deleting Windows 10 Dell XPS 8300

    Hi all I have problems with my Dell XPS 8300, I installed the new 10 windows a few weeks back and since the installation of connection to internet keeps falling. My internet is with Virgin Media and I connect directly via an Ethernet cable to the rou

  • Smartphones blackBerry Desktop Manager Software - I need help so please.

    Hello everyone. I recently bought the 8330 works fine, but for some reason, the Office Manager will not accept the password so it can be recognized. What can I do? It does not detect the device but will not accept the password I use for my security l

  • Notification icon unknown blackBerry Smartphones (yet another)

    I've lived a lot of forums, and it seems that I have a third-party application displaying a notification icon that I would understand and possibly erase. large white circle with what looks like a white arrow with tail from the top right corner, and t