PHP Form Radio button

Hello,
I would like to change an existing list to a radio option on
my pho form.
http://opie.monkeyshrine.com/contact/contactus.php
From this
<select name="reason" value="<?php
if(isset($_POST['reason'])) echo
htmlentities($_POST['reason']);?>" tabindex="4" size="1"
id="reason">
<option selected>Tell Us Why</option>
<option value="Beijing to Moscow">Beijing to
Moscow</option>
<option value="Moscow to Beijing">Moscow to
Beijing</option>
<option value="Vladivostok to Moscow">Vladivostok to
Moscow</option>
<option value="Beijing back to Beijing">Beijing back
to Beijing</option>
<option value="Only Mongolia">Only
Mongolia</option>
<option value="Tranzip Direct Options">Tranzip Direct
Options</option>
<option value="Other Reason">Other
Reason</option>
</select>
to
<input type="radio" name="trip" value="<?php
if(isset($_POST['BM'])) echo htmlentities($_POST['BM']);?>"
/> Beijing to Moscow</label>
<br />
<label>
<input type="radio" name="trip" value="<?php
if(isset($_POST['VM'])) echo htmlentities($_POST['VM']);?>"
/> Vladivostok to Moscow</label>
<br />
<label>
<input type="radio" name="trip" value="<?php
if(isset($_POST['MB'])) echo htmlentities($_POST['MB']);?>"
/> Moscow to Beijing</label>
<br />
<label>
<input type="radio" name="trip" value="<?php
if(isset($_POST['BB'])) echo htmlentities($_POST['BB']);?>"
/> Beijing back to Beijing</label>
<br />
<label>
<input type="radio" name="trip" value="<?php
if(isset($_POST['Mongolia'])) echo
htmlentities($_POST['Mongolia']);?>" />Only
Mongolia</label>
<br />
<label>
<input type="radio" name="trip" value="<?php
if(isset($_POST['Direct'])) echo
htmlentities($_POST['Direct']);?>" />Tranzip Direct
Options</label>
<br />
<label>
<input type="radio" name="trip" value="<?php
if(isset($_POST['unsure'])) echo
htmlentities($_POST['unsure']);?>" />
Unsure
except, I have done the group radio wrong and it doesn't
insert anything on the reply.
Here is the php post code
$Indhold .= "Trip Type: ".$_POST['trip']."\n";
$Indhold .= "\r";
$Indhold .= "Why: ".$_POST['reason']."\n";
$Indhold .= "\r";
Please help me correct the radio group.
Thanks.
ps. can you also confirm the local time is displaying your
local time?

On Fri, 24 Nov 2006 08:08:32 +0000 (UTC), "yesmaybe"
<[email protected]> wrote:
> Please help me correct the radio group.
Doesn't this (test page) do what you want? Try it DW.
<?php
if ( isset($_POST['clicked']) && $_POST['clicked'] ==
'true' ) {
echo "Trip Type: ".$_POST['trip'];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<input type="radio" name="trip" value="BM"
/> Beijing to
Moscow</label>
<br />
<label>
<input type="radio" name="trip"
value="VM" /> Vladivostok to
Moscow</label>
<br />
<label>
<input type="radio" name="trip"
value="MB" /> Moscow to
Beijing</label>
<br />
<label>
<input type="radio" name="trip"
value="BB" /> Beijing back to
Beijing</label>
<br />
<label>
<input type="radio" name="trip"
value="Mongolia" />Only
Mongolia</label>
<br />
<label>
<input type="radio" name="trip"
value="Direct" />Tranzip
Direct Options</label>
<br />
<label>
<input type="radio" name="trip"
value="unsure" />
Unsure </label>
<input type="submit" name="Submit"
value="Submit">
<input name="clicked" type="hidden"
id="clicked" value="true">
</form>
</body>
</html>
Steve
steve at flyingtigerwebdesign dot com

Similar Messages

  • Form/Radio Button/Email Question

    How can I fix the form on http://www.cec-waterjet.com/Contact/index.html so that it sends an email to the contact whose radio button is selected?

    The script you have now should work, it's just not very secure. I meant find a different script where, instead of entering the actual email address in the recipient field, you entered a key or index that points to the address that's been entered somewhere in the script or configuration file, so the email address isn't anywhere in the HTML. I've got an (old-ish) PHP script that works that way here:
    http://www.mindpalette.com/scripts/index.php#NMAnchor
    ...but if you need another CGI script like you've already got, I don't have any specific recommendations, sorry. It was just a suggestion :-)
    I removed your code from your message #2 to try to prevent that from getting spam harvested.

  • Form Radio Buttons or Checkboxes not created in Acrobat 9 Pro

    If this needs to be placed in another forum, please just let me know.
    I am using Acrobat 9 Pro - current version - 9.4.3.
    I am using Word 2010
    I am running Windows 7
    I have created a simple form in Word.  Using the guidelines from the white paper - Acro9_designforms.pdf provided by Adobe, those fields where I want a radio button insert a checkbox instead when running the Form Wizard in Acrobat.
    My sample is exactly the same as in the sample used in the white paper.
    I used a circle symbol from the Wingdings font, as recommended by Adobe.
    Salutation
    O Mr.
    O Ms.
    O Dr.
    The end result is still a checkbox, even though it is a circle in the display.
    What am I doing wrong?
    I do not want to use LiveCycle Designer, as once the form is created in LiveCycle, the form fields can no longer be edited in Acrobat and I must maintain the ability to edit in Acrobat.
    Thank you for your assistance.

    Oh, the Wizard is a fabulous tool for basic forms.  And, since Adobe has given an extensive list of 'guidelines', which is what I am testing, I thought I would ask for feedback from those who do use it and from those who have had success in using it.
    The Wizard is mostly terrific, if you use the guidelines when setting up the source document.  It saves a lot of manual field creation and fixing later.  This one, though, is not working as expected.   So, I might be doing something wrong and the responses I seek are from those who have had success with the feature - not with manual workarounds, which of course we know can be achieved.  :)
    Nothing is "magic".  I don't think either I or Adobe are implying that it should be.  However, when they state a feature works in a certain way and I am not getting those results, I like to explore why.  Silly me.  hahaha
    The example I gave in my initial post is the only thing in the form, as I am testing the features for when I present this topic.
    I am merely trying to determine if others are having success (or not) when creating their document initially in Word (for example), using the guidelines that Adobe states for Radio Buttons being created.  If there is a certain font that someone is having success with other than those stated by Adobe, I would love to know. For me, so far, it is not.  If it's user error, then I would love to know from someone who has had success.
    Here is what Adobe states as part of their Radio Button form field guidelines when setting up a document in Word, for example:
    § Use circular objects or numbered buttons to in a single row or column to indicate radio buttons.
    § Use group labels to the left of or above each radio button group – otherwise they will default to check boxes. Field names are determined from the group labels and individual button labels from the text to the right of each location.
    § Use the following text labels to have radio buttons created automatically: Yes/No, M/F, Male/Female, Mr/Mrs/Miss/Dr.
    § Use one of the following group labels to have radio buttons created automatically: Salutation, Sex, Occupation.
    thanks

  • Acrobat 9-forms-Radio buttons print different than check boxes

    I am using Acrobat Pro 9 to create forms.
    I've used both radio buttons and check boxes (that are circles).
    Forms were designed in InDesign with Zapf Dingbats as the open circles to be filled in.
    I used radio buttons when the user had to pick one over the other.
    I used check boxes when there were multiple choices or I wanted the user to be able to uncheck a box. (I used the circle style so they would look like radio buttons).
    The radio buttons are printing differently than the check boxes. It looks almost like there is an overlay on top of the actual open circle created by Zapf Dingbats.
    I checked the "appearance" window and there is no border or fill color on the radio buttons (same for the check boxes).
    Under the <general> tab, <common properties> is visible. I'm assuming it should be in order for the radio button to appear on the form.
    I would appreciate any input as to how to fix this.
    Thansk!
    Maureen

    That's just the way radio buttons are, and one reason I rarely use them in preference to check boxes. If Adobe wanted to, they could allow you to use any appearance you want for both the selected an unselected state of a check box or radio button, but they've actually further restricted your options over the years.

  • Adobe Form- Radio Button!!

    Hi Experts,
    I am working on the Adobe Form in which the data is coming from the Backend RFC. So my DataSource is binded to the Bapi node.
    Now my requirement is to add Radio Button for which I have defined in the Dictionary SimpleTypes and binded an attribute to it.
    The problem is since my DataSource in the PDF Form is already binded to the Bapi node I cant get the data for the Radoi button from the attribute(Dictionary simpleType).
    Can somebody suggest me how to go about it in my case. Any useful Help will be given points.
    thanks,
    Vikram..

    Hi,
    You will have to define a value node and then copy values from model node to value node. This way you can define additional attrbute apart from the atributes for data.
    Let me know if you have any problems.
    Regards,
    Ashutosh

  • Controling HTML form Radio Button

    I'm working on automating the check-in and check-out of items in a process queue, but the process queue is web-based. I can input usernames, lot IDs, passwords, and "press" submit buttons programatically by using ActiveX IWebBrowser2 properties (and related).
    Here's what I currently have, mostly stolen from a post from 2005.
    The Old Post:
    http://forums.ni.com/t5/LabVIEW/How-to-fill-out-and-submit-a-web-form-using-LabVIEW/m-p/1018248/high...
    As I said, I can input usernames and passwords and submit the form, but I am having trouble setting the value of a Radio button.
    Here's a snippit of what I'm trying, and my VI is attached. I've also attached the relevant HTML.
    Solved!
    Go to Solution.
    Attachments:
    web page radio button HTML.txt ‏2 KB
    WIPTrac experiments.vi ‏23 KB

      Hello,
    I have a html form compounds in two fields first and last name and a sibmit button, how can I control it in labview
    Attachments:
    form.png ‏60 KB
    forme.vi ‏19 KB
    form.txt ‏1 KB

  • Forms- Radio buttons

    Hi,
    I've got a form that has radio buttons included which work fine. But what I want is, when a particular radio button is clicked then a new sub-menu will appear, and there will be a different sub-menu for each radio button. Apologies if I haven't explained it that well but I will post any clarifications should you need them.
    Thanks.

    You want to do a search for javascript and dependant radio buttons.  You should be able to get a script pretty quick.
    Gary

  • Forms - Radio Buttons as check boxes which turn into circles - Need them to stay as check boxes.

    Hi
    I am working on some forms for Teachers Reports it is a generic document for student reports. I have set the document in Indesign 6 and edited the pdf form in Acrobat Pro.
    The form consists of Radio Buttons (Check Boxes) as they have to score the child between 1-4 and the teacher is only allowed to select 1 box from out of the 4 boxes (hence radio buttons) .
    The problem we are having is that there might be 2-3 teachers that have to write and score each child's in a certain section of the report and they might use a PC or MAC to do this.
    For some reason, some of the reports have changed the Radio Button "Check Boxes" to a "Circle" both in the PDF and when printing and they need it to be a Check box. (In indesign this was set to Check Box and to print as a Check box)
    Some how after the teachers have used different computers the check boxes have changed to circles and we need to change them back to check boxes but is there a way to change them without having to go "Forms" > "Edit" > "Select all circles" > "Properties" > "Options" > "Button Styles" > "Change to Check".
    But it is not changing to all of the reports on some.
    Is there an easier option can select properties and search the "circles" and change to "check boxes" for the whole document?
    I really don't want to have to go into each report and have to change each individually or export and import the data in the forms and the teachers dont want to have to rewrite each report.
    Someone please help!

    Are all of the teachers using Adobe Reader (or Acrobat), as opposed to something like Preview on tha Mac or Microsoft Reader on Windows? Preview is known to corrupts PDF form in a number of ways, including converting radio buttons to check boxes. Microsoft Reader causes other types of corruption. Also, if you create the fields in InDesign, it uses non-standard appearances for the various states and even Reader/Acrobat doesn't always set them in the way you might expect, so it's best to create them in Acrobat.
    Your description is a bit confusing since you're calling them radio buttons and check boxes at the same time. Can you clarify what the original field type is?
    It is possible to set the various field appearance properties with a script, which could loop through all of the fields and make the needed changes, but without more information about what's causing the changes and exactly what the changes are, it's hard to suggest anything specific.

  • Cant fill a form (radio button)

    Hey.
    I frequently need to fill a form and I cant do so with my Ipad because at certain point I need to select an option with a radio button and the Ipad doesnt recognize it. The form also has square box and there I dont have a problem, I can check it. But when it comes to the radio (circular) button, I cant hit it and fill it.
    Why is this so?
    Thanks.
    (Sorry for my poor english)

    Radio button can be selected using the Safari App on the iPad, but the website has to be at least somewhat coded for mobile viewing.  See if you can zoom in on the screen before tapping the radio button, this sometimes help.  If in the end, you are still unable to complete it, try another browser like Chrome.  Some websites don't play nice with mobile devices and touch screens so you may get mixed results.  Apple uses Radio buttons in the forgot.apple.com website as well as many other I'm assuming and they all function fine from the iPad screen, so it is more than likely just the website you are utilizing.  Good Luck.

  • Code issue in php form - submit button not sending email

    Created a form that was originally supposed to open up to 2 pages depending on what was clicked. Clear would send you to an error page, and submit would send you to a thank you page. Decided that was a waste and so did not create the html pages. BUT, wanted the form info for the contact page.
    Here is the issue: it will not submit when submit is clicked. It clears when you click clear, but there's no email coming from the site via submit.
    Do I need to edit the php form code if I don't want the other pages? I've looked at what I have but I don't see if there is a form error or anything here. Here is the code for anyone who wants to have a look. Thanks in advance.
    <?php
    // get posted data into local variables
    $EmailFrom = "EMAIL FROM WEP PAGE - CONTACT - ";
    $EmailTo = "[email protected]";
    $Subject = "EMAIL FROM jennylowhar.com - CONTACT -";
    $name = Trim(stripslashes($_POST['name']));
    $telephone = Trim(stripslashes($_POST['telephone']));
    $email = Trim(stripslashes($_POST['email']));
    $comments = Trim(stripslashes($_POST['comments']));
    // validation
    $validationOK=true;
    if (Trim($name)=="") $validationOK=false;
    if (Trim($email)=="") $validationOK=false;
    if (!$validationOK) {
      print "<meta http-equiv=\"refresh\" content=\"0;URL=error.html\">";
      exit;
    // prepare email body text
    $Body = "";
    $Body .= "name: ";
    $Body .= $name;
    $Body .= "\n";
    $Body .= "telephone: ";
    $Body .= $telephone;
    $Body .= "\n";
    $Body .= "email: ";
    $Body .= $email;
    $Body .= "\n";
    $Body .= "comments: ";
    $Body .= $comments;
    $Body .= "\n";
    // send email
    $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
    // redirect to success page
    if ($success){
      print "<meta http-equiv=\"refresh\" content=\"0;URL=thankyou.html\">";
    else{
      print "<meta http-equiv=\"refresh\" content=\"0;URL=error.php\">";
    ?>

    I'm confused by that, but I know this works.
    $fname=STRIPSLASHES($_POST['fname']);
    $lname=STRIPSLASHES($_POST['lname']);
    $title=STRIPSLASHES($_POST['title']);
    $company=STRIPSLASHES($_POST['company']);
    $street=STRIPSLASHES($_POST['street']);
    $town=STRIPSLASHES($_POST['town']);
    $zip=STRIPSLASHES($_POST['zip']);
    $phone=STRIPSLASHES($_POST['phone']);
    $fax=STRIPSLASHES($_POST['fax']);
    $county=STRIPSLASHES($_POST['county']);
    $phone=STRIPSLASHES($_POST['phone']);
    $email=STRIPSLASHES($_POST['email']);
    $comments=STRIPSLASHES($_POST['comments']);
    $date=STRIPSLASHES($_POST['date']);
    $time=STRIPSLASHES($_POST['time']);
    $location=STRIPSLASHES($_POST['location']);
    $from="$email";
    $to="putemailhere";
    $subject="Submission from Contact Form";
    $msg= "This is a submission from yoururl.com.\n\n"
    . "Clients Name: $fname . $lname \n"
    . "Title: $title\n"
    . "Company Name: $company\n"
    . "Street Address: $street\n"
    . "Town:$town\n"
    . "Zip: $zip\n"
    . "Telephone: $phone\n"
    . "Email Address: $email\n"
    . "Comments: $comments\n";
    mail($to, $subject, $msg, 'From:' .$from);
    PS, go back and edit your origial post and REMOVE your email.
    Gary

  • Radio Buttons - Vertical versus Horizonal

    In WebDB 2.2, I was able to get my form radio buttons to go across the page rather than down by adjusting the input width
    of the row that they were on, making the width fairly wide. In portal, I cannot get this to occur.
    Looking at the HTML source generated, portal puts a <BR> at the end of each button option, and WebDB does not.
    Any way to accomplish this? Thanks.

    Hi
    You can achieve this custom forms. But the lov should be a static one. I am giving a sample below
    to explain better.
    Example
    Create a custom form based on scott.emp. Run the form and from the html source copy the radio button tags.
    Edit the form and goto the custom section and replace <TD><#DEPTNO.ITEM#></TD> with copied tags and remove
    the <br> tags. It would look like something below
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01" VALUE=" ">
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01"
    VALUE="10">ACCOUNTING
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01"
    VALUE="20">RESEARCH
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01"
    VALUE="30">SALES
    <INPUT TYPE="radio" NAME="FORM_0508231444.DEFAULT.DEPTNO.01"
    VALUE="40">OPERATIONS
    You might run into problems if you change the form, because you are changing the way forms usually works. This is not
    a documented way of rendering radio buttons. Everytime you edit the form to add or remove columns you might have to
    redo the above steps.
    Thanks,
    Sharmila

  • Radio Buttons w/ Multiple Values on a PHP Form

    Hi,
    I have an Online Registration form with several options that each have their own prices.  I want the form results to show the name of each option the user selects, and the total of all the prices combined.  My question is how can I do that when each radio button only allows you to attach one value?  Is there a way to somehow retrieve the option name and price as two separate values?
    <input name="option" type="radio" value="Cotton - $10" />
    <input name="option" type="radio" value="Suede - $15" />
    <input name="option" type="radio" value="Leather - Black - $20" />
    <input name="option" type="radio" value="Leather - White - $20" />
    For example, if they select 'Leather - Black - $20" I want to be able to retrieve one value of "Leather - Black" and another value of "20.00" (to add to the total price) rather than simply "Leather - Black - $20" in one value.
    Any help would be greatly appreciated!  I've only had to deal with one value for each radio button in the past.
    Thanks!
    Paul

    Yes you can do this.  If I were you I would eliminate the space in the value just to eliminate confusion.  Then when you process the variable use the Explode function ( http://php.net/manual/en/function.explode.php ) to separate the values in your string.  So if you eliminate the space your code would look like:
    $_POST['option'] = $option;
    $option = explode ("-",$option);
    print $option[0]; //This would print the material
    print $option[1]; //This would print the price
    The only trick is your first two options don't have a color.  So your arrays would be different.  To offset this I would recommend that you use the same format for all options and make some sort of null value if nothing will be added for one value in the array, ie: color.

  • Issue: Flash radio buttons & Php form

    I have a flash form which all of the fields are sending
    correctly
    through the php code. The flash radio buttons I added with
    the
    groupname == topic, doesnt send with the rest of the
    information that is being sent to the email. My question is
    how do I get
    the flash radio button info to submit with the rest of the
    form.
    The code for the send button on my flash file:
    on (release) {
    // send variables in form movieclip (the textfields)
    // to email PHP page which will send the mail
    form.loadVariables("form.php", "POST");
    ===============================================
    ===============================================
    Form.php:
    <?php
    $to = "[email protected]";
    $subject = "Contact Page Information for Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>
    Text

    Do you mean like this:
    <?php
    var topic;
    var listenerObject:Object = new Object();
    listenerObject.click = function(eventObj:Object) {
    topic = eventObj.target.data;
    trace(topic)
    groupTopic1_rb.addEventListener("click", listenerObject);
    groupTopic2_rb.addEventListener("click", listenerObject);
    groupTopic3_rb.addEventListener("click", listenerObject);
    groupTopic4_rb.addEventListener("click", listenerObject);
    groupTopic5_rb.addEventListener("click", listenerObject);
    groupTopic6_rb.addEventListener("click", listenerObject);
    groupTopic7_rb.addEventListener("click", listenerObject);
    groupTopic8_rb.addEventListener("click", listenerObject);
    groupTopic9_rb.addEventListener("click", listenerObject);
    groupTopic10_rb.addEventListener("click", listenerObject);
    groupTopic11_rb.addEventListener("click", listenerObject);
    groupTopic12_rb.addEventListener("click", listenerObject);
    groupTopic13_rb.addEventListener("click", listenerObject);
    groupTopic14_rb.addEventListener("click", listenerObject);
    $to = "[email protected]";
    $subject = "Contact Page Information for Hope Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>

  • Radio button data to php form

    I set up a survey, and I need the info from the radio button
    groups to send to a php form that will email me the results. So far
    I have not been able to get it to work. All I have so far is the
    code below attached to the submit button. I had a working contact
    form that I am trying to add radio buttons to, but they do not pass
    their info like the input text boxs do. I am a beginner with
    actionscript so I am having trouble finding where to get this to
    work. I have all my peramiters set on each radio button too. I just
    do not know what script to add to what I have so it will pass the
    data over to the php form.
    I have the survey as one MC which is inside a scroll pane if
    that matters. What I have so far can be seen here.
    http://ebinx.com/carrand/freestuffswf.swf
    Thanks

    bump

  • PHP Form Validation: Radio Buttons

    Hey everyone -
    I'm trying to do two things here with an addition to one of
    my forms using
    PHP.
    1. Attempting to validate if one of the radio buttons has
    been selected.
    2. Displaying which radio button is selected once the page is
    reloaded
    (checking for validation errors). That is - if they've
    selected a radio
    button but didn't fill in the other area - I want the radio
    button they've
    already selected to be actually "selected" once the page
    reloads.
    Here is the series of radio buttons:
    <input type="radio" name="subject" id="subject1" value="1"
    />
    <label for="subject1" class="labelbold">I wish to
    contact you regarding
    website design</label><br />
    <input type="radio" name="subject" id="subject2" value="2"
    />
    <label for="subject2" class="labelbold">I wish to
    report a technical
    error</label><br />
    <input type="radio" name="subject" id="subject3" value="3"
    />
    <label for="subject3" class="labelbold">I wish to
    report an error with the
    copy</label><br />
    <input type="radio" name="subject" id="subject4" value="4"
    />
    <label for="subject4"
    class="labelbold">Other</label><br />
    This is how I'm validating my checkboxes:
    if($_POST['confirmbox'] == false) $error[] = "Check the
    Privacy Policy
    Agreement Box";
    However, using "false" doesn't seem to matter with the radio
    buttons. So,
    how can I get the radio buttons to validate that ONE was
    selected and how
    can I show that selected button on a page reload (I'm
    thinking I may need to
    dynamically generate the value=""....<?php...?>....?).
    Thanks!
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================

    Hello there -
    After no replies - I decided to strain my brain (ha-ha) - and
    finally
    figured out the solution to the problem.
    For the curious - I added this to each <input...>
    field:
    <?php if($_POST['subject'] == "1") echo'
    checked="checked"';?>
    And then for each <input...> I changed the "1" to the
    corresponding value
    each field was given.
    Have a wonderful night. :)
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Proud GAWDS Member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "Shane H" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hey everyone -
    >
    > I'm trying to do two things here with an addition to one
    of my forms using
    > PHP.
    >
    > 1. Attempting to validate if one of the radio buttons
    has been selected.
    >
    > 2. Displaying which radio button is selected once the
    page is reloaded
    > (checking for validation errors). That is - if they've
    selected a radio
    > button but didn't fill in the other area - I want the
    radio button they've
    > already selected to be actually "selected" once the page
    reloads.
    >
    > Here is the series of radio buttons:
    >
    > <input type="radio" name="subject" id="subject1"
    value="1" />
    > <label for="subject1" class="labelbold">I wish to
    contact you regarding
    > website design</label><br />
    >
    > <input type="radio" name="subject" id="subject2"
    value="2" />
    > <label for="subject2" class="labelbold">I wish to
    report a technical
    > error</label><br />
    >
    > <input type="radio" name="subject" id="subject3"
    value="3" />
    > <label for="subject3" class="labelbold">I wish to
    report an error with the
    > copy</label><br />
    >
    > <input type="radio" name="subject" id="subject4"
    value="4" />
    > <label for="subject4"
    class="labelbold">Other</label><br />
    >
    > This is how I'm validating my checkboxes:
    >
    > if($_POST['confirmbox'] == false) $error[] = "Check the
    Privacy Policy
    > Agreement Box";
    >
    > However, using "false" doesn't seem to matter with the
    radio buttons. So,
    > how can I get the radio buttons to validate that ONE was
    selected and how
    > can I show that selected button on a page reload (I'm
    thinking I may need
    > to dynamically generate the
    value=""....<?php...?>....?).
    >
    > Thanks!
    >
    > --
    > Shane H
    > [email protected]
    >
    http://www.avenuedesigners.com
    >
    > =============================================
    > Proud GAWDS Member
    >
    http://www.gawds.org/showmember.php?memberid=1495
    >
    > Delivering accessible websites to all ...
    > =============================================
    >
    >
    >

Maybe you are looking for

  • Save pdf with crop and bleed marks in Photoshop cc 2014

    ! !Hi, I used to save PDF for print with crop marks in Photoshop by setting them up when using "save as". Don't have that option any more in CC 2014. Is it a new way to do it or I have something turned off? Thanks! 

  • Tax tables in PO

    Experts, Since the printed Purchase order default report does not include tax in it, i want to make a customized report which i have done so The Ebusiness suite taxations etup has been done BUT i cant find the tables which hold the tax information du

  • I can't update my podcasts! (error 39)

    Hi, I can't update any of my podcasts after I downloaded ituned 7.1 (the newest one) and it says that an unknown error has occured (error 39 . Please can you help me! thanks, chocular1

  • How soon did your iPhone ship?

    Hi, For those of you who ordered the new iPhone (5) during the "available 3-4 weeks" how long after you've place the order did your iPhone ship? Reason I'm asking this is because I've read from numerous (trusted) sources that the "big three" in the U

  • Help End of Movie

    Hi all Im hoping someone will be able to help me. I have 8 seperate movies to publish to html and flash. They are called from 'menu.html' After the movie has finished - I want it to go back to the menu. This is easy with absolute paths, but the final