Radio Button Forms
Hi there ,
I am using Flash MX and i use some sample flash files to build a form in flash with php. The question is how can i make a flash form containing radio button and chekboxes and get the form reasults to e-mail? The forms i create had only text variables,how can i put also these buttons and get the results in my email?
Thank you in advance for your time...
FlashKit > Flash Help > Flash ActionScript
Posted on: 04-25-2003, 10:59 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Forms/Radio Buttons
Help I'm not sure how to make the radio buttons info appear on the e-mailed form.
Help With Radio Buttons In Forms
I've created a form with a few different groups of radio buttons, two pull-down menus, and a bunch of input text fields. When the user clicks the submit button, the form results are emailed to me using a form-mail cgi script on my server. All the text fields work beautifully and it's returning whatever the user typed in those fields. But as far as which radio button was selected, as well as which option from my pull-down menus, NOTHING st all appears in the email I get. How do I tell the form to include the selected radio button values and menu values in the results I receive? I've scoured the net looking for answers and can't find a single one! Any help would be hugely appreciated, and if you need to see what I've got so far, I'd be happy to send you the fla file to look at. My email address is evilcarrot@evilcarrot.com if you'd like to see my fla file.
Thanks in advance!
Creating Forms / Radio Buttons
Hey,
does anyone know where there is a good tutorial OR a well structured FLA (to download) on how to create forms with radio buttons?
I am creating a basic form in FLASH 5 and I need to learn how to assign VALUES to each radio button and submit that value to a remote server.
It would be a bonus if anyone could tell me how to do this in a manner so the server could respond VIA XML in a DYNAMIC text field in another scene of the same SWF.
Thanks in advance!!
Flash Forms - Dropdown Menu And Radio Buttons
there are plenty of tutorials out there for flash email forms with input text fields, but does anybody know how to create a form including dopdown menus and radio buttons that you can actually submit through php?
Flash Forms - Dropdown Menu And Radio Buttons
there are plenty of tutorials out there for flash email forms with input text fields, but does anybody know how to create a form including dopdown menus and radio buttons that you can actually submit through php?
Dynamic Creation Of Radio Buttons In A Radio Button Group
Is there a way to dynamically add new radio buttons to a radioButtonGroup say from an xml file? I am looking for a similar functionality to what I would receive if I were to use a dataprovider for a comboBox (except I need to use radio buttons). Code samples are appreciated. Thanks
Make Button Work Only If A Radio Button Chosen?
Hi I hope you can help. I have a series of questions on different key frames. You advance by pressing a button. But I would like to make it that you need to attempt to answer and choose an answer from a radio button before the button allows you to move on. I could use a dynamx text box to produce feedback saying you must choose an answer. Could anyone help me with the code I would need to put on?
stockdill
Make Button Work Only If A Radio Button Chosen?
Hi I hope you can help. I have a series of questions on different key frames. You advance by pressing a button. But I would like to make it that you need to attempt to answer and choose an answer from a radio button before the button allows you to move on. I could use a dynamx text box to produce feedback saying you must choose an answer. Could anyone help me with the code I would need to put on?
stockdill
Radio Button
Can anyone help me with the use of radio buttons.
I would like to have radio buttons on a map and be able to choose two buttons then get a price for distance travelled.
A prime example of this would be a subway, where you choose the start station and then the end station and get the price for the journey after clicking a button called Get Fare.
I would be most grateful if anyone can help.
Just to let you know I'm a complete novice when it comes to radio buttons, so be gentle.
I posted this message in the newbies form but no-one has answered, I know it's simple but for the life of me I cannot seem to figure it out.
http://uk.geocities.com/larf2day/
Radio Button Help
Case is...
1. Got Multiple Answers (at least 4 per screen)
2. Only one is correct
3. After getting the correct answer, score adds 1
I really really need your help guys! Please, I need to know how to do this asap...
Radio Button HELP
I posted this on actionscript.org earlier, and still need some assistance.
I am using Flash MX, and have designed a page that, once the end-user selects their information via Radio Button, I want to send them to a certain part of the time-line to show them a video of how to setup their machine to their configuration.
I have added the screen as an attachment so that a visual reference can be used.
There are two groups of Radio Buttons, one set of three on the top, and one set of two on the bottom.
I understand that I need to use a function to get the information from the buttons, but that's where the difficulty comes in. I'm not sure how or where to start. =(
Any help on this would be greatly appreciated. Thanks a lot, in advance!
Radio Button Help
hi, i just about have my buttons all ready but something in the script is a little screwy.
i have a bunch of radio buttons in a parent clip and i have this script in the parent:
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
for (item in this) {
rButton = this[item];
if (rButton.getState()) {
loadMovie (rButton.getLabel()+".swf", "_root.anchor");
break;
}
}
}
}
Radio Button Help, Please
i am having a very tough time trying to use radio buttons on my flash form.
The form is processed by a java servlet. there are about 10 groups of radio buttons, each group having 2 radio buttons (Add and Remove).
the problem i have is when a user does not select either ADD or REMOVE from a particular set of radio buttons. what value is passed to my servlet when both radio buttons are blank?
I have a loop in my servlet that checks for null and "", but that doesn't seem to work. Here's the loop (just a portion of it):
int i=0;
String[] soft= new String[23];
if (req.getParameter("GCard")!="")
{
soft[i]=req.getParameter("GCard") + " Guard Card";
i++;
}
if (req.getParameter("PeopSft")!=null)
{
soft[i]=req.getParameter("PeopSft") + " PeopleSoft";
i++;
}
I have tried both the null and "" to see which one would work, they both do not work.
Here is how i pass the info from flash mx:
PeopSft = PeopSft.getValue();
GCard = GCard.getValue();
getURL("http://wegweb/servlet/FLnewuser.class", "_self", "GET");
}
Can anyone help me??? is there a way to set what gets sent to the servlet if both radio buttons are not checked?
THANKS!!
Radio Button If-else Help
Have a radio button test with 4 possible answers. Only # 1 (or in this array place 0)is corrct, and I want the "check1" movieclip to play, anything else checked, and "wrong" movie clip plays....
no matter what I press, the "wrong" movieclip plays when I validate...
What am I doing wrong..!!!!!!
Thanks...
Here's the code..:
stop();
btn1.onRelease = function() {
checkAns();
};
function checkAns() {
AnswerQ1=new Array(_root.A1.getValue(),_root.A2.getValue(),_roo t.A3.getValue(),_root.A4.getValue());
if (AnswerQ1[0] && !AnswerQ1[1] && !AnswerQ1[2] && !AnswerQ1[3]) {
init1 = {_x:45,_y:160};
_root.attachMovie("check1", "check1",20,init1);
} else {
init1 = {_x:45,_y:160};
_root.attachMovie("wrong", "wrong",21,init1);
}
}
Radio Button
hi,
I use Flash MX and need to increase the size of radio button
component.This may sound silly but i am not able to figure it out,
Thx,
Ricky.
Radio Button Help
I have radio buttons with tabs set... and if disable keyboard shortcuts is selected in testing mode.. it tabs from one item to the next... but the main issue is...
I want to beable to hit spacebar and enable the current radio button I am on... is this possible? if i select one of the Radios with my mouse... my tabs are gone and nothing tabs anymore... I have place 2 links at the bottom of this one is my .fla and the other is my .swf.. if anyone can help it would be much appreciated...
Thanks,
Carlos
www.techyhelp.com/flashattempt/Radios.swf
www.techyhelp.com/flashattempt/Radios.fla
once again i appreciate any help...
Radio Button To PHP?
Hi guys, me again
I just searched trought the hole forum about this one and didnt have any good awnser for it, i just found lots of ppl with the same problem...that i think could be easy ...(not to me of course )
Well, im trying to make a SIMPLE radio button question like
Gender?: ( ) male ( ) female
and send the data to a PHP script. The problem is, i dont know how to get this data into the php (ill send that to an e-mail).
Anyone know whats the code to flash and the script to php so it may work??? Going crazy out here....
Thanks in advance..
Radio Button
hi there, im really sorry but this question is not for flash but its for html. i didnt find n e html board here. dont u guys think there shud be html related message board also put up here. ok n e wayz my question is that if someone clicks on a radio button it shud go up the page where therz an achor tag define. for e.g
i have some text at top of the page. and my form is way bottom at the end of the page. now if some1 click on dat radio button he shud go at top of the page. so pls help me out in the script. thnx in advance.
Radio Button Help
I am trying to enable a function based on a radio button selection in flash MX. I would like to do so without a submit button...is that possible? I have 2 radio buttons in the same group.
If the user selects the 1st radio button, this will start the drawPole_fn(1)
if the second radio button is selected, this will start drawPole_fn(2)
What happens with my current code is drawPole_fn(1) is enabled, without any radio button selected. I would like the functions to start after a button is selected.
Here is my code:
function setPoleType_fn()
{
poleDesign=ControPanel_mc.poleDesign_rdo.getValue( );
if(poleDesign=="Standard")
{
drawPole_fn(1);
}
else
{
drawPole_fn(2);
}
}
Thank you for any help you can give!
Radio Button Value
Greetings
I'm trying get the value of a radio button group, ie, return the value of the selected radio button.
have tried the following:
PHP Code:
radioGroup.data
radioGroup.selection
radioGroup.selected
but nothing is returning the value of the selected radio button.
Have also tried
thanks
PHP Code:
if (_root.radioQuestion == "yes") {
myAnswer = "yes";
} else {
myAnswer = "no";
}
PHP Code:
if (radioQuestion.selectedData == "yes") {
myAnswer = "yes";
} else {
myAnswer = "no";
}
PHP Code:
if (radioQuestion.selection.data == "yes") {
myAnswer = "yes";
} else {
myAnswer = "no";
}
but nothing is working.
Can anyone tell me how to trace the value of the selected radio button?
thanks
Radio Button & PHP
I'm trying to make a form containing radio buttons work together with some text fields using php, i already have all the text fields working just need the radio buttons to work so i will only post the radio part.
for the 1st frame I have :
fscommand ("allowscale", "false");
mailform = "appraisal.php";
action = "";
stop ();
for the 1st radio button's Parameters I have:
Component:maleRadio
Groupname: gender
label placement: right
selected: false
and second radio button
Component:femaleRadio
Groupname: gender
label placement: right
selected: false
This is the part where I dont know what to do. I believe I need an action script around here to make it work, for the submit button i have:
on (release) {
if ((vemail.indexOf("@") != -1) && (vemail.indexOf(".") != -1) && (length(vemail)>5)) {
action = "Send";
loadVariablesNum("appraisal.php", 0, "POST");
nextFrame();
} else {
vemail = "Please enter email";
action = "";
stop();
}
}
Can you please help me or give me an example? i'll appreciate it, thanks.
Radio Button
Hi.
Does anyone know how to add a radio button to a web form in flash?
It needs to post to an asp file.
Thanks and Happy New Year.
Radio Button.... How Do I Do This?
I have a series of five radio buttons......it's a multiple choice question...that I need answered.
I want which ever one the user clicks to be recorded and then sent to a PHP script which will then in turn send it in an email.
I am also having them fill out a text field for their email , and the message they are sending.
But how do I do this? I am lost and would appreciate some help.
This is the PHP code....I'm using...
$sendTo = "devon@devontracey.com";
$subject = "My Flash site reply";
// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.
// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];
// now we can add the content of the message to a body variable
$message = $_POST["message"];
// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
?>
Radio Button
how can i set a radio button so that it isnt selectable, if i do
radio1.setEnabled(false);
it changes its apperance so it looks like you cant select it, but you still can???
Radio Button HELP Please
I am creating a quiz for a school project and I need help customizing radio buttons.
How can i change the color and size of the text? It seems impossible. Is there actionscript I can use?
Any help would be much appreciated. Thank you.
Radio Button Help
Hello,
I'm a teacher that's been trying to create a quiz for my students. I'm pretty new to flash so I don't know the syntax to this fairly simple task. Anyone who can assist I'd appreciate it as I only have a few more days to put this together before the rush of school begind again.
Basically I want to create 4 radio buttons. When a submit button is clicked, I'd like it to know the selected value of the radio button state so that it can be posted to an asp page.
So far I have fill in the blank fields that are sent to my asp page just fine. The radio button value however isn't coming through. Instead I get the following in the url: answer=%5Bobject+Object%5D
Now 'answer' is the name of the radio group. Each radio button within the group are labeled a,b,c,d. How do I get answer to equal what the label value is. For instance, if the student selects answer 'C' I'd like the posted data for the answer field to simply show: answer=c in the posted data url.
This is the syntax I'm using to post the data for test page:
on(press){
getURL("http://www.lbsc.edu/test5/result1.asp","","post");
}
Any help would be greatly appreciated!
How To Get The Value Of A Radio Button
Hi
I'm using the Radio Button component of flash and I drag and drop it on my scene.
I named the RadioButtonGroup as "test" but my problem is that I can't get the value of the selected button.
If I do:
Code:
trace(test.selectedData);
I get the following error message: 1120: Access of undefined property test.
But I set the RadioButtonGroup as test in the property panel of each button.
What's wrong?
Many thanks for your help
[F8] Need A Radio Button On
Hi,
I have started a quiz game where you have 4 options (A,B,C,D). To select the answer desired, the player must select one of the radio buttons. But I'm also trying to make it so you can press A,B,C, or D on the keyboard to select the radio buttons also -- the problem is my script won't work. I've tried a couple of codes from other posts, but they won't work either.
Help please.
(btw, I made a bunch of random attempts to make it work)
[F8] Radio Button Help
I set up an emailer form with radio buttons. Problem is that the input text fields and the radio button label do not appear unless the email form mc is placed directly on the _root timeline. If I place the email form inside another mc then place that mc on the _root timeline, it will not show the text for the radio button or input text. Thanks
[F8] Radio Button Help Please
Hello,
So I'm making an application that requires the user to make a selection on the first frame via a radio button. There will be multiple buttons (example)...
selection 1
selection 2
selection 3
Each Selection needs to load images from an external folder into the provided empty movieclips ON OTHER FRAMES. The problem is I don't know how to target a different frame and load the images. I obviously have to store the info in a variable. Does anyone have a good suggestion on how to apply it?
Here is what I have on the radio buttons to monitor the selection...
var rbListener:Object = new Object();
rbListener.click = function(evt_obj:Object){
if(radioGroup.selection == rb1){
trace("rb1");
} else if(radioGroup.selection == rb2){
trace("rb2");
} else {
trace("no selection");
}
}
// Add listener.ll
radioGroup.addEventListener("click", rbListener);
And this is how I currently load the images without a selection
loadMovie("sponsor/logoTest.jpg", _root.logo_mc);
Radio Button
Hi,
I want to make two radio buttons in my flash site,
how can I solve that?
thanks for any response...
Radio Button
Is it possible to make an radio button or 2 in flash mx? maybe with an actionscript.
I'm making a mailinglist with input text for email adress so far i get it but is it possible 2 make 2 radio buttons with subscribe and unsubscribe??
Can someone help me if it's possible how to do it?
Thanx Jos
Radio Button.... How Do I Do This?
I have a series of five radio buttons......it's a multiple choice question...that I need answered.
I want which ever one the user clicks to be recorded and then sent to a PHP script which will then in turn send it in an email.
I am also having them fill out a text field for their email , and the message they are sending.
But how do I do this? I am lost and would appreciate some help.
This is the PHP code....I'm using...
$sendTo = "devon@devontracey.com";
$subject = "My Flash site reply";
// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.
// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];
// now we can add the content of the message to a body variable
$message = $_POST["message"];
// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
?>
Radio Button Help Please...
My mind can't seem to digest how to make the radio buttons work, even after reading the action script guide in Flash MX...
please help me here, I'm VERY lost...
Situation:
Four choices, when the correct one is chosen, score adds 1 point.
Thanks. I really need this...
Radio Button Help
I was wondering if you are able to refer to the radiobutton groupname? I have about 10 radio buttons all with the same groupname and when I click on my next button, if none are selected an alert message come's up. But am I able to say: "if (groupname(radiogroup.selected == false));" Does the groupname have those sorts of properties??
Radio Button Help?
hey all,
just wondering how you work the radio button component so that i can have text appearing when a specific radio button from the group is selected and my submit button is pressed it will display the text and execute a function i have written...i know its to do with a listener and addEvent.
cheers in advance
Radio Button HELP PLEASE
I have an form that i made in flash, in this form i have included input text boxes and radio buttons. the problem i am having is when i receive the email sent by the form with all the input text box info but the radio buttons return is [object Object]. anybody else had this problem before? im using php to sent the info from flash using POST method. if anyone knows how to fix this please advise.
How To Get The Value Of A Radio Button
Hi
I'm using the Radio Button component of flash and I drag and drop it on my scene.
I named the RadioButtonGroup as "test" but my problem is that I can't get the value of the selected button.
If I do:
Code:
trace(test.selectedData);
I get the following error message: 1120: Access of undefined property test.
But I set the RadioButtonGroup as test in the property panel of each button.
What's wrong?
Many thanks for your help
How Get The Radio Button Value
people at forum, how can i get value from the radio button in flash ? i use the standard radio button that include in flash mx. i want to save the value in asp, using access database... thanks.
Radio Button
Is it possible to make an radio button or 2 in flash mx? maybe with an actionscript.
I'm making a mailinglist with input text for email adress so far i get it but is it possible 2 make 2 radio buttons with subscribe and unsubscribe??
Can someone help me if it's possible how to do it?
Thanx Jos
Radio Button Pt2.
Problem 1:
Now that I have the button menu set up I need the button to call a MC. So if u click on button 1 it will open MC one. When I click on button 2 it will close the first MC and open MC 2.
Problem 2:
Some of these MCs will have a form checkbox in them. When the user clicks on it I want it to stay checked. So let’s say in MC1 I have a check box and the user checks it. Then he/ she goes to MC2 and hits another checkbox then decides to go back to MC1 to uncheck the first checkbox and check another inside MC1. Is it possible to make the form info stick even while swapping out MCs?
Radio Button
I want to create a 5 button menu. In this menu I will have MC that has two frames that have labels (frame 1 – Grey, Frame 2 - Orange). I will drag that MC 5 times into the main timeline. I then would like to click on the first one and it turn orange then click on the 2nd one and have it turn orange while the first one goes back to gray (like a radio button). I have an example
www.deviatemedia.com/ww2/button_test.zip
I was working on but it is not working and I don’t know why (noob at action scripting)
Can anyone give me any insight?
Radio Button.... How Do I Do This?
I have a series of five radio buttons......it's a multiple choice question...that I need answered.
I want which ever one the user clicks to be recorded and then sent to a PHP script which will then in turn send it in an email.
I am also having them fill out a text field for their email , and the message they are sending.
But how do I do this? I am lost and would appreciate some help.
This is the PHP code....I'm using...
$sendTo = "devon@devontracey.com";
$subject = "My Flash site reply";
// variables are sent to this PHP page through
// the POST method. $_POST is a global associative array
// of variables passed through this method. From that, we
// can get the values sent to this page from Flash and
// assign them to appropriate variables which can be used
// in the PHP mail() function.
// header information not including sendTo and Subject
// these all go in one variable. First, include From:
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
// next include a replyto
$headers .= "Reply-To: " . $_POST["email"] . "
";
// often email servers won't allow emails to be sent to
// domains other than their own. The return path here will
// often lift that restriction so, for instance, you could send
// email to a hotmail account. (hosting provider settings may vary)
// technically bounced email is supposed to go to the return-path email
$headers .= "Return-path: " . $_POST["email"];
// now we can add the content of the message to a body variable
$message = $_POST["message"];
// once the variables have been defined, they can be included
// in the mail function call which will send you an email
mail($sendTo, $subject, $message, $headers);
?>
Radio Button
i'm posting again as i don't think i explained myself before... i have two radio buttons, yes and no... i want the variable of the yes or no to be sent to the php script, how do i do this and what do i need to add to the php script...
sorry for reposting a similar question
Radio Button
i have struck with the following task.
" I have a radio button, and message box component.
the message box component's visibility has been set to false.
The requirement is when the user clicks the radio button i
want the message box's visibility to become true.
i tried giving mouse event to the radio button, but it proved be useless.
do help me out ."
thanx
Radio Button
So I made a video player with a XML playlist
In the tutorial the RADIO buttons are used which seems comprehensible because it seems there are the only types of buttons to be able to have XML data embed.... or i don't know how calling that
My question is:
IS there a way to not use those AWFUL radio buttons and instead using my beautiful customized Buttons??
Thanks for your inputs
Forms And The Tab Button
Is there a way to be able to use the tab button on text fields in flash 5 when you create forms?
|