Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








How To Use Radio Buttons And Check Boxes.


hi,
i need to make a form that send to an email address data posted in the form. i need to use some radio buttons and check boxes but i dont know how...
is there someone that can help me please ?
i will attach the files(fla and php file to see exactly what i try to do)

Thank you !




FlashKit > Flash Help > Flash General Help
Posted on: 02-19-2005, 04:04 PM


View Complete Forum Thread with Replies

Sponsored Links:

Radio Buttons Check Boxes Help Plz
Hi everyone!
I'm back at it!
I solved the multiple input field checking script with some help from a lot of people!

and now I am wondering if I can add something else..

Is there any way I can have a check box or a radio button that acts like a variable? So I can also say in my script:

if checkbox1 is clicked,
+1 to the variable score...

??
any info would be cool!
thanks!
- Leland

View Replies !    View Related
Radio Buttons, Check Boxes
Help. I am trying to put radio buttons and checkboxes in a form that currently only has text boxes. It sends the data to a php form. I can't find any examples of the actionscript needed to make them work.

View Replies !    View Related
29 Radio Buttons And 2 Check Boxes
Hi, using AS1 my goal is to pass via URL to cusine_type.asp the value pairs. I have 29 radio buttons in the main stage and are numerated by component name. Two checkBoxes are called 'D_IN' & 'D_OUT'. I'm Trying to send the users radio selection from the group, plus a value if checkbox is ticked, either or both., like so:

Code:
getURL("/option1/cusine_type.asp?formVar="+k+"&IN="+w1+"&OUT="+w2, "_self");


Any ideas as to the coding problem? the issues is getting the radio button value - k. it seems like this loop is not working:

Code:
for (k=1;k<29;k++) {
formdata.k=k.getState( );
}

can you not iterate thru a loop with .getState property ?

The whole code:



Code:
on (release) {
var k=0;w1=0;w2=0;

formdata= new LoadVars( );
for (k=1;k<29;k++) {
formdata.k=k.getState( );
}
formdata.D_IN=D_IN.getValue( );
formdata.D_OUT=D_OUT.getValue( );

if (D_IN.getValue() == true) {
w1=1;
}
if (D_OUT.getValue() == true) {
w2=1;
}
getURL("/option1/cusine_type.asp?formVar="+k+"&IN="+w1+"&OUT="+w2, "_self");
}

View Replies !    View Related
Using Radio Buttons Or Check Boxes
Hello All- I am new to the forum and have been programming in C+ at an intermediate level.
Using MX and flash CS3

Question?
I am trying to set up a program that
1. Gives a user a selection of multiple radio buttons
2. Depending on which buttons they select the movie/function will call/get a certain movie.
3. Display the result..
Example in Pseudo Code:
if radio buttons 1,4,8 selected then play or load this.swf or event

I dont need actual code JUST ACTIONSCRIPT THEORY....unless someone wants to give me code too, then I would be willing to give some original music from my music archive(had a couple of hits in USA in '98 so the music is quality Professional)....that goes for anyone...if you need a specific clip for your site,program, etc...I just ask for credit

View Replies !    View Related
HELP Radio Buttons And Check Boxes
I am doing an interactive survey that is due next week. I need to use radio button and check boxes to capture YES or NO values to a variable. How do I do this?

View Replies !    View Related
How To Keep Picked The Check Boxes And Radio Buttons
Hi,

I have problems with this: I have to navigate through pages with check boxes and radio buttons, but when I go back or forward the information disappears. I think it could be solved assigning variables to that components, but if that´s so, wich is the script to make it.

There are similar questions to mine in the MX forum, but they are all unanswered.

Thanx in advance for the answer.

DAVID

View Replies !    View Related
Getting Variable From Component Radio And Check Boxes
Topic says it all really I am creating a form (using components) and want to pass the variables out but I can't see how the radio buttons work, there is no where to set the variable name and the same with check boxes.

Sorry I am quite new to all this!

View Replies !    View Related
Radio Groups / Check Boxes + Coldfusion :(
Heya guys
Thanks for Looking!


Basicly my problem is Flash Radio Groups + Coldfusion.... I know how to send it if it was just 1 radio button...

For Example:

Flash Side:

1) ::Created Radio Button::
2) Gave it the instance name of "question1"
3) added a button that takes you to frame blah
4) in frame blah i use Loadvaribles(....,post)

Coldfusion Side:

1) Created a Query
2) Used Insert Into ::database:: funcion

Example:
<cfquery datasource="YourDSN">
INSERT INTO USUERS(
question1

)
VALUES(
'#question1#',

)
</cfquery>


As per Easy-CFM Tutorial :http://tutorial88.easycfm.com/


...Works fine....


__________________________________________________

Now, if i wanted to use a radio group... would i have to give each member of the group an instance name?? if so that would mean i would have to do some kinda checking weather it was "pressed" or not?..



If, i use check boxes it gets even more of a hassel. because check boxes im assuming that each has to have its own instance name..

Check Box's / Radio Buttions
What i think it should do but i dont know how is.
Radio Button
1) in flash determ which one has been selected
2) send that value over to coldfusion

In other words treat the group as a single varible?... would that work?... :quest:

Check Box's
1) Check which box's are check off ,
2) iether concadinate the checked off box's values, or have 1 slot in the database for each check box.. which to me seems a bit much
3) if concadinateing , assisgn a null value to that instance of the box(thats not check off) , such that when its concadinated its.

Example:
<hello,null,mom,null,i,null,miss,null,you>



I know its alot to look at
and i do thank you for any assistance or tutorals you could refer me to.. iv just been banging my head over the door for the past few days trying to figure this out

If ya want im attaching a link of my .fla so ya can see what im trying to do

ComputerLab-Survey-2004.fla

(if worse comes to worse Combobox's are a mans best friend ) hehe
~Peter

View Replies !    View Related
Flash To Php Form With Tick Boxes Or Radio Buttons?
any one have a flash to php form with tick boxes or radio buttons??

i need a tutorial for this desperatly!!!

PLEASE HELP!!

View Replies !    View Related
Flash To Php Form With Tick Boxes Or Radio Buttons?
any one have a flash to php form with tick boxes or radio buttons??

i need a tutorial for this desperatly!!!

PLEASE HELP!!

View Replies !    View Related
Flash To Php Form With Tick Boxes Or Radio Buttons?
any one have a flash to php form with tick boxes or radio buttons??

i need a tutorial for this desperatly!!!

PLEASE HELP!!

View Replies !    View Related
Dynamically Created Radio Buttons And Text Inside Input Boxes
I have been working on some code that will create input boxes dynamically set up to look like table. The code looks like this:


Code:
//attach header movieclip for NA
naHolder_mc.attachMovie("naHeader", "naHeads",getNextHighestDepth(), {_x:95, _y:8.4});
//code to create multi array through for loop
var row:Number = 15;
var col:Number = 15;
var depth:Number = 0;
var rowArr:Array = new Array(row);
var i:Number;
var j:Number;
for (i=0; i<row; i++) {
rowArr[i] = new Array(col);
for (j=0; j<col; j++) {
rowArr[i][j] = "["+i+"]["+j+"]";
}
//trace(rowArr[i]);
}
//code to iterate through multi array elements
var outerArrayLength:Number = rowArr.length;
for (i=0; i<outerArrayLength; i++) {
var innerArrayLength:Number = rowArr[i].length;
for (j=0; j<innerArrayLength; j++) {
var tableFormat:TextFormat = new TextFormat();
tableFormat.font = "Arial";
tableFormat.bold = true;
tableFormat.size = 11;
tableFormat.align = "center";
_root.createTextField("NAr"+i+"_c"+j, depth,95+(33.5*j), 30+(i*20.7), 28.1, 16.2);
var _box:TextField = _root["NAr"+i+"_c"+j];
_box.type = "input";
_box.selectable = true;
_box.restrict = "DdEeNnXx";
_box.border = true;
_box.multiline = false;
_box.maxChars = 1;
_box.textColor = 0xff0000;
_box.setNewTextFormat(tableFormat);
depth++;
trace(_box);
//trace(rowArr.length);
}
For a couple of days now I have been trying to create radio buttons along with the input boxes that will sit on the left side of the text boxes 3 on each row that have the labels D, E, and N. So far I have come up with nothing. I also need to have the row headers placed in the first column of the input boxes saying NA 1, NA2, NA 3, inside the input box. Does anyone have an idea on how to do this or where I should start?

I have been able to create radio buttons by using the import mx.control.radiobutton code and then createClassObjects class but don't know what type of loop to use to align the 3 radio button on the yaxis of each of the rows.

View Replies !    View Related
How Do I Dynamically Create Radio Buttons And Text Inside Input Boxes
I have been working on some code that will create input boxes dynamically set up to look like table. The code looks like this:


Code:
//attach header movieclip for NA
naHolder_mc.attachMovie("naHeader", "naHeads",getNextHighestDepth(), {_x:95, _y:8.4});
//code to create multi array through for loop
var row:Number = 15;
var col:Number = 15;
var depth:Number = 0;
var rowArr:Array = new Array(row);
var i:Number;
var j:Number;
for (i=0; i<row; i++) {
rowArr[i] = new Array(col);
for (j=0; j<col; j++) {
rowArr[i][j] = "["+i+"]["+j+"]";
}
//trace(rowArr[i]);
}
//code to iterate through multi array elements
var outerArrayLength:Number = rowArr.length;
for (i=0; i<outerArrayLength; i++) {
var innerArrayLength:Number = rowArr[i].length;
for (j=0; j<innerArrayLength; j++) {
var tableFormat:TextFormat = new TextFormat();
tableFormat.font = "Arial";
tableFormat.bold = true;
tableFormat.size = 11;
tableFormat.align = "center";
_root.createTextField("NAr"+i+"_c"+j, depth,95+(33.5*j), 30+(i*20.7), 28.1, 16.2);
var _box:TextField = _root["NAr"+i+"_c"+j];
_box.type = "input";
_box.selectable = true;
_box.restrict = "DdEeNnXx";
_box.border = true;
_box.multiline = false;
_box.maxChars = 1;
_box.textColor = 0xff0000;
_box.setNewTextFormat(tableFormat);
depth++;
trace(_box);
//trace(rowArr.length);
}
For a couple of days now I have been trying to create radio buttons along with the input boxes that will sit on the left side of the text boxes 3 on each row that have the labels D, E, and N. So far I have come up with nothing. I also need to have the row headers placed in the first column of the input boxes saying NA 1, NA2, NA 3, inside the input box. Does anyone have an idea on how to do this or where I should start?

I have been able to create radio buttons by using the import mx.control.radiobutton code and then createClassObjects class but don't know what type of loop to use to align the 3 radio button on the yaxis of each of the rows.

View Replies !    View Related
Read Variable From Asp To Check Radio Buttons
I have two radio buttons, "company" & "person" (in the "data" field)& instance name "company", "person". They have a group name "inform". How can i, depending on the outcome from an asp file, select each one of them and display different things?

View Replies !    View Related
Check Boxes And Ratio Buttons
I'm trying to put a form together in Flash using ASP.
I can get the values from the Input Text Boxes but I don't know how to get the values from Radio Buttons, Check Boxes or Combo Boxes.
I will appreciate any help.
Thanks.

View Replies !    View Related
Flash Combobox, Check Box, Radio Buttons To Wok With Php For Email
Hi i'm a newbee in flash web designing can you help me out???? I'm making a reply form consist of text field, check buttons, combo box. think my acton script and php code has a problem. Can somebody help me out??? Thank you very much

View Replies !    View Related
Contact Form, ASP.NET, Text Boxes, Check Boxes
Hello,

I have to do a Contact form in flash with , text boxes, check boxes and.. IN ASP.NET

could any one help me with that?

give any sample or advice ?

I will really appriciate this

View Replies !    View Related
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

View Replies !    View Related
Radio Boxes
Could someone please explain how to call a javascript; from an swf, that is speaking to an applet from a radio box, combobox or both.

eg. I have an application that is a drawing app. which imports a jpeg into the applet; some of the javascript abctions are
to change a colour:
window.document.JRedLine.setColor(0x00FF00);<this is from a button and works>
To change text size:
window.document.JRedLine.setSize(8);
<from either a radio box or other as above>
No worka for me.


Oh won't somebody help me.

Cheers.

View Replies !    View Related
Deselect All Radio Buttons In A Radio Button Group
how do you do it? --like if you want to reset all the fields in a form.

thanks.

View Replies !    View Related
Radio Check Box
Hi,
I have a couple of radio check box copmponents
ChangeHandler set to BandSelect in the parameters dialog

on my timeline I have
Code:
BandSelect = function(){
LowSet = lowSelectCheckBox.getValue();
HighSet = highSelectCheckBox.getValue();
trace(LowSet +"low");
trace(HighSet+"high");
}
I expected to get a true or false value returned for each trace as in
truelow
falsehigh

instead I get
lowlow
high

where am I going wrong?
mark

View Replies !    View Related
Check Radio Button
Checking Radio Buttons?

--------------------------------------------------------------------------------

How would I check for a radio button(UI component) to be true/false, and then run some code based on that? I know that I would place the code in a conditional, but how would I check the value?

View Replies !    View Related
Check Boxes
How to write the action script so that when the distintive boxes are check, certain things or else nothing happen.
thanks

View Replies !    View Related
Check Boxes
How do I make check boxes? For example, I want to have a clip from a record play, then ask two questions:

Do you like this song? With check boxes for Yes or No
Would you buy this song? With check boxes for Yes or No

In a follow up question, after the user has given selected their box, I'd like to have a "submit" button where it e-mails me their response.

View Replies !    View Related
Check Boxes
I am trying to create check boxes, radio buttons, etc in a Flash form. Does anyone know how this is done?

View Replies !    View Related
Check Boxes
Anyone know about using Check Boxes on a form? I have a CGI script to handle the form, but when the user submits, the name, email and the other text boxes work fine, but none of the check boxes that I have attached variables to (as per tuturial) are recognized.
I know the CGI script I use can handle the variables , cos to check it I tried the same variables on a HTML form , and when submitted they went through OK.
So how do you get Flash to recognize the variables and actually submit them with the other details?

View Replies !    View Related
Check Boxes - Again
OK..I have simple form, 2 input-text boxes and 1 check box. The check box is a movie clip with 2 'states'. Click once, go to frame 2, click again back to frame 1. But if you apply a variable to each frame, or to the button release action, these variables are not exported when the user presses Submit. I know it's because they are 1 level down from the main stage within a MC. If I place a button onto the main stage and add a change variable on Release (just to test it!), it does work and the variables appear in the resulting e-mail.

So how do you get the variables within the movie clip to be 'recognized' on the main stage?? (after which they will obviously be exported)

I have trawled no end of websites for tutorials on Check Boxes, and they all basically tell you how to create the MC and thats it!

PLEASE HELP!!

View Replies !    View Related
Check Boxes
hi,

I need to insert some space between the checkbox and its label..can someone suggest me a way,

thx,

Ricky.

View Replies !    View Related
Check Boxes?
Hey,
I was wondering what coad i'de put in for a button to have it not "goto next frame" unless a checkbox is checked, like one of thoes "I accept" things. Thanks,

later,
rC

View Replies !    View Related
Check Boxes / PHP
I am using a form mailer with PHP on a contact page. I would like to have 3 or 4 check boxes that clients can check depending on what services they are interested in. The boxes are named box1, box2, and box3. How do I change my PHP code to send me their choices??

PHP code...

<?php
$name=$_POST['name'];
$message=$_POST['message'];
$subject=$_POST['subject'];
$email=$_POST['email'];

$to = "e-mail@e-mail.com";
$msg = "Name of sender: $name

";
$msg = "E-Mail: $email

";
$msg .= "Subject: $subject

";
$msg .= "$message

";

mail($to, $subject, $msg, "From: My web site
Reply-To: $email
");

?>

View Replies !    View Related
Check Boxes
I have a problem. I am tyring to set up a questionaire that has 3 sets radio buttons (question 1, 2 and 3).

When the user checks a button group, then they should move to a specific point in the timeline. For Example, clicking

Question 1, b button
Question 2, a button
Question 3, c button

Would take them to frame 10 on the timeline.

How could I do this.

Thank-you for any help.
-BP

View Replies !    View Related
Check Box And Radio Button Form
Hi all I am khader and i miss to ur help in this case.

i have from contain 2 checkboxs and 3 radiobuttons i need send the value of the checkbox i selected and the radiobutton , realyy i don't know how can i deal with them.
so i need to send it values to PHP file and read it from the PHP file

Plz help me in this case

thanx
Khader

View Replies !    View Related
Check Box And Radio Button Form
Hi all ,

I am khader and i have problem to load a value of the checkbox and radio buttons so how i can send the or how i can fet the value of the checkbox button and radiobutton in the PHP file .

Thanx

View Replies !    View Related
Check Box And Radio Button Form
HI i am khader i wanna to aske how can i get the value of the checkbox button and radio button from form and receive it in PHP file or Asp file i need the value of the checkbox which i pressed and the same for radio button


Khader

View Replies !    View Related
Check Boxes In Flash 5
Hello,

I am looking for some advice on a project I am doing.
The concept behind the Flash Movie is simply this. I want to compile a list of about 25 article titles on a page, each having a checkbox next to the title. The user needs to be able to check the titles they need printed, scroll to the bottom, hit a print button and then have the articles spit out the printer. Sounds easy enough.

I have a pretty good knowledge of Flash, movie clips, basic action scripts etc., I am just a little rusty form being out of the loop for a couple years. I am thinking ideally the articles would be movie clips, my main problem is coming up with the check boxes??

If anyone has some advice for me to help me get back in the game I would be very grateful. Thanks.

~~David

View Replies !    View Related
Check Boxes - Flash MX
Can anyone tell me how to have a checkbox stay checked. I have 5 pages in a script and check boxes on each page, however, when I check the boxes on page one then go to page two, if I was to go back to page one the checks are gone.
I know it is probably something to do with the Change Handler.

Please inform me how to keep them checked.

Thank you,

Jason

View Replies !    View Related
Multiple Check Boxes
Hi,

I am trying to make some kind of form.. As you know, in forms generally, they ask you what are your interests, and they give you thousands of choices (like computer games, soccer, etc etc.)

In flash, you can put up a lot of check boxes with the components, but how can you GROUP them ? Is there nothing like

code:
checkboxgroup.getSelectedItems ;


?? I know there is something similar in a combo box.. But that's not what I need.

Thanks,
Manojo

View Replies !    View Related
Form With Check Boxes - PHP
Really sorry to be asking what I thought would be very simple... maybe it is and I'm the simple one.

Please can someone point me in the right direction on how to get the check box component sending a true or false to PHP?

Cheers
Shane

View Replies !    View Related
Check Boxes For Forms
how do I incorperate check boxes into my website for interactivity. I am trying to create ahyperlink to a form website but i do not want the button to function unless the agreements box is checked. i can do it in html but how can you do this in flash. any help will be greatly apreciated

View Replies !    View Related
Controlling Check Box From Radio Button Component
I have a radio button that when clicked, needs to set a checkbox to true.

Here is my code:

radiofax.setChangeHandler("myRadio");
function myRadio(component) {
if (_root.generate.radiofax.getLabel() == "Fax") {
_root.generate.fax.setValue(true);
}
}

radiofax is the radio button component and faxcheck is the fax checkbox.

Generate is my movie clip that the components resides in.

View Replies !    View Related
How To Create Dynamic Check Boxes?
I'm creating a survey form using Flash MX. I have a part which is a group of check boxes that user could choose, and the number of choices may grow dynamically according to a database table. Can this be done? Please advise.

View Replies !    View Related
Flash Forms & Check Boxes
Hey I have a form that submits information that gets sent to my email address.

I however would like to include check boxes for faster selection on some parts, but when I include them I get this in the email

FUIComponentClass:

[type Function]

FCheckBoxClass:

[type Function]

Where in the text boxes I get the proper content.

I have several check boxes that I would like to have (about 9 in all) but do not know 'how' to impliment them with variable names and such.

Any help would be appretiated.

View Replies !    View Related
Check There Is No Duplications In 5 Input Boxes.
I'm have a bit a problem with a flash form;

I have 5 input text boxes and a submit button.

I want to be able to check there is no duplication of text in any of the 5 text boxes when the user clicks submit.

This all needs to be done in Flash 5.

Thanks

View Replies !    View Related
Check Boxes In Tree Component Help
Has anyone ever tried incorporating check boxes into a tree component. So for example each "folder" on the tree would have a check box next to it that is useable?? If so can someone direct me to some info on how to go about doing this?????


I would really appreciate any help

View Replies !    View Related
Check Boxes In Php Email Forms
I am putting together a flash email response form in my site using flash/php. Thanks to flashkit it is working and I have emails coming in off it. I am now trying to add a checkbox to the flashform. I have used the component one in flash, given it a name (sendinfocheck)and then in my php file I have added the following to my $emailbody code...



Sender Wants More Info: $sendinfocheck
"

this mimicks the working input text var name based stuff that is currently working in the form/code.

Is there another bit of code I need to put in?
I haven't been able to give the checkbox component a variable name because flash doesn't offer the option...

Thanks a lot for any help
Mark

View Replies !    View Related
Set Style For Disabled Check Boxes
I'm trying to set the style for a check box, works fine when the check box is enabled, but once disabled the check box reverts back to its default disabled style.

How do I change the style for disabled check boxes?

Here is the code I used for defining the style and setting it to the checkbox:

Code:

var msg_frmt:TextFormat = new TextFormat("Verdana",10,0xFFFFFF,null,null,null,null,null,"left",null,null,null,null);

var chkbox:CheckBox = new CheckBox();
chkbox.setStyle("textFormat",msg_frmt);

View Replies !    View Related
PHP Form Check Boxes Problem...
Hi!

I've used this tutorial: http://www.cfzone.net/showDetail.asp...orm2/index.htm

Direct link to the check boxes page of the tutorial:
http://www.cfzone.net/showDetail.asp...orm2/page9.htm

Everything works fine and I get the information in my email
except from the checkboxes, they're blank...i've checked spelling and so on and I can't find anything really...

i'm stuck....

On the first frame inside my check box mc i have this:

ActionScript Code:
/:boende = "";

and on the check box buttons I have this:

1st checkbox:

ActionScript Code:
on (release) {
    /:boende = "Ja";
    gotoAndStop(2);
}

2nd checkbox

ActionScript Code:
on (release) {
    /:boende = "Nej";
    gotoAndStop(3);
}

the PHP


PHP Code:



<?
 
   $to = "myEmail@email.com";
   $email = htmlspecialchars($_POST['email']);
   $msg = "Name of sender:        ".htmlspecialchars($_POST['name'])."
";
   $msg .= "subject:            ".htmlspecialchars($_POST['subject'])."
";
   $msg .= "message:            ".htmlspecialchars($_POST['message'])."
";
   $msg .= "e-mail:                 $email

";
   $msg .= "phone:                ".htmlspecialchars($_POST['phone'])."
";
   $msg .= "boende:               ".htmlspecialchars($_POST['boende'])."
";
   

  mail($to, $subject, $msg, "From: Snökite
Reply-To: $email
");

?>




that's pretty much it...would be very greatfull if you could enlighten me a bit!

View Replies !    View Related
Basic Example On Check-boxes Using AS3.0 In Flash
Hi all,

I need a basic example containing 3 or 5 check-boxes and should display the names of check-boxes which are
selected in a text-box.

Thanx a lot...

View Replies !    View Related
Sending E-mail With Check-boxes.
Hello,

I know it's been a few threads about this already, but I haven't really got an answer. I have followed the tutorial Flash-Based Email Form Using PHP here at Kirupa, but now I want to add checkboxes to it. How do you do that? Can anyone help me? What kind of AS code and PHP code can I use to get the components to work?

This is the code for the submit-button:

Quote:




on (release) {
// send variables in form movieclip (the textfields)
// to email PHP page which will send the mail
form.loadVariables("email.php", "POST");
}





The code attached to the form:


Quote:




onClipEvent(data){
// show welcome screen
_root.nextFrame();
}




And finally, the php code:


Quote:




<?php

$sendTo = "mail@example.com";
$subject = "My Flash site reply";

$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-path: " . $_POST["email"];

$message = $_POST["message"];

mail($sendTo, $subject, $message, $headers);

?>




I truly appreciate all the help I can get!

View Replies !    View Related
Flash Form With A Few Check Boxes...
I have flash form with a few input text boxes and a few check boxes. It sends but I receive all "undefined".
I have this code on my submit btn--
on (release) {
if (company eq "" or contact eq "" or address eq "" or city eq "" or state1 eq "" or zip eq"" or phone eq"" or email eq"")
{
stop();
} else
formData = new LoadVars();

formData.company = company.getValue();
formData.contact = contact.getValue();
formData.address= address.getValue();
formData.phone = phone.getValue();
formData.email = email.getValue();
formData.addinfo = addinfo.getValue();
formData.individual = individual.getValue();
formData.group = group.getValue();
formData.medicare = medicare.getValue();
}
if (mailList.getValue() == 1)
{
formData.mailList = 1;
}
else
{
formData.mailList = 0;
}

formData.sendAndLoad("email_request.php", formData, "Post");

_root.gotoAndStop(42);

and I have my php code--

<?
include 'init.php';


mail ("htrain26@yahoo.com", "All Type Accounting Contact Us Form",
"
The following is input from the request info page.
Please respond to $name at $email in 2-3 business days.


-----------------------------Basic Information----------------------


company: $company
contact: $contact
address: $address
phone: $phone
email: $email
addinfo: $addinfo
individual: $individual
group: $group
medicare:$medicare

Please contact $name immediatly via phone.","$name
");

any help would be much appreciated,
thanks,
hutch

View Replies !    View Related
Using Check Boxes To Produce A Result
Hi,
Lets say we have 6 check boxes.
ex: 24vac, 24vac/dc, tristate, on/off, modulating, auxswitches.
If someone checks 24vac, on/off, and auxswitches (3 boxes) then a part number of dc24-44 would populate. Depending on which boxes are checked a different part number would populate.
What is the best method to do this. We would rather not call data from an ASP page.
Thats about it
Thanks again!!!!!!
Tom

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved