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!!
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 09-20-2006, 01:49 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Radio Buttons On Flash Form?
I have crated a form which works no worries i also have check boxes. i have done thes as movie clips ie. yes/no states. i just cant get this information to send with the form. can any one offer help, i know im close!
many thanks
Radio Buttons In Flash Php Form
Hi pple,
referring to http://tutorials.flashvacuum.com/ind...?show=Email102, how do i go about replacing the radio buttons with graphics symbol? And where do i change so as to allow the AS to work. Been trying for ages but still can't figure out.
Thanks!
Help With Radio Buttons In Flash And Form
hello i have aproblem
with flash,, I want to make my form being sent to an email script
my input boxes are recognized fine, with there variables,
but for some reason i can't get my radio buttons to work fine,
if anyone has a sulotion to this here is my fla
http://members.rogers.com/lastdon00/help.zip
Please Help witha solutoin if possible wit hthe radio buttons to give themm a variable to be sent to email script
thanks
LD
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 = "Contactus@test.com";
$subject = "Contact Page Information for Today";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
$message .= "
";
$message .= "Subject: " . $_POST["topic"] . "
";
$message .= "Email: " . $_POST["email"] . "
";
$message .= "Name: " . $_POST["name"] . "
";
$message .= "Address: " . $_POST["address"] . "
";
$message .= "City: " . $_POST["city"] . "
";
$message .= "State: " . $_POST["state"] . "
";
$message .= "Zip Code: " . $_POST["zip"] . "
";
$message .= "Phone: " . $_POST["phone"] . "
";
$message .= "Message: " . $_POST["message"] . "
";
mail($to, $subject, $message, $headers);
?>Text
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
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.
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 !
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");
}
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
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?
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
Validating Radio Buttons And List Boxes
Hi
I am using Flash M2004 Pro to build a contact form using the new components. The problem is that when it comes to validating the form it work with "email.text" and "question.text" (which are text fields), but I can not get it to work with radio buttons or list boxes.
myButtonListener = new Object();
myButtonListener.click = function()
{
var selectedRadioButton = gender.selection;
var theSelectedItem = age.selectedItem;
if(email.text == ""){
var Alert = mx.controls.Alert;
Alert.show("Please enter your emaill address.");
}else if(question.text == ""){
var Alert = mx.controls.Alert;
Alert.show("Please enter your question.");
}else if (selectedRadioButton.label ""){
var Alert = mx.controls.Alert;
Alert.show("Please choose your gender.");
}else if (theSelectedItem.label == ""){
var Alert = mx.controls.Alert;
Alert.show("Please choose your age.");
}else{
myData = new LoadVars();
myRequest = new LoadVars();
myRequest.onLoad = function(message) {
trace(message);
};
//dataholder
myData.email = email.text;
myData.question = question.text;
myData.gender = selectedRadioButton.label;
myData.age = theSelectedItem.label;
myData.sendAndLoad("mailer.php", myRequest, "POST");
gotoAndPlay("submitted");
};
};
submitBtn.addEventListener("click", myButtonListener);
Thanks in advance
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.
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.
Help Me For Radio Buttons In My Form
Hey guys,
i've great a online application form, i put some text fields and radio buttons, when i click send and i receive the e-mail, i can see clearly what it's in the text filed, but nothing from the radio buttons, it's marked like this in the e-mail:
FUIComponentClass: [type Function]
FRadioButtonClass: [type Function]
FRadioButtonGroupClass: [type Function]
Program: [object Object]
how can i make it work........
Help me please
Radio Buttons Form Help
I have a simple need that I just can't find help on.
I have a small survey (5 radio buttons) only 1 question can be selected and when the submit button is pressed the results are sent to a php file. I need help with the radio button code to php action script. Anyone know where i can get help? Thanks in advance.
Help With Form Radio Buttons
I have already made a form and it is working, except the radio button data isn't being sent because I really have no idea on how to do it. Could you teach me how to get data with radio buttons. Here is my coding which is on a frame...
comments_txt.onSetFocus = function()
{
status_txt.text = '';
}
email_txt.onSetFocus = name_txt.onSetFocus = phone_txt.onSetFocus = comments_txt.onSetFocus;
status_txt.text = 'All fields required';
submit_btn.onRelease = function()
{
var email = email_txt.text;
var name = name_txt.text;
var comment = comment_txt.text;
var phone = phone_txt.text;
// are all the fields filled?
if (name == '') {
status_txt.text = "You need to fill in your Name.";
return;
}
if (phone == '') {
status_txt.text = "You need to fill in your Phone Number.";
return;
}
if (email == '') {
status_txt.text = "You need to fill in your E-mail.";
return;
}
// you should also validate the email address
if (comment == '') {
status_txt.text = "Please, don't forget your Message!";
return;
}
// yes, all fields filled
sendEmail(name, email, comment, phone);
// sending data...
status_txt.text = "Processing mail form...";
// prevent submitting again by disabling the button
this.enabled = false;
};
function sendEmail(name, email, comment)
{
var myData = new LoadVars();
myData.name = name;
myData.email = email;
myData.comment = comment;
myData.phone = phone;
myData.onLoad = function(ok) {
if (ok) {
status_txt.text = this.message;
} else {
status_txt.text = "There was an error. Try again later.";
}
submit_btn.enabled = true;
};
myData.sendAndLoad('contactform.php', myData, 'POST');
}
Here is my PHP coding...
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$comment = $_POST['comment'];
$phone = $_POST['phone'];
if (!isset ($name) || $name == '')
{
exit ('&message=Error! Name missing.&');
}
if (!isset ($phone) || $phone == '')
{
exit ('&message=Error! Phone missing.&');
}
if (!isset ($email) || $email == '')
{
exit ('&message=Error! Email missing.&');
}
if (!isset ($comment) || $comment == '')
{
exit ('&message=Error! Comment missing.&');
}
$comment = str_replace ("
", "
", $comment);
$to = 'myemail'; // replace with your email address
$subject = 'New message!';
$message = '';
$message .= "
";
$message .= "Name: $name";
$message .= "
";
$message .= "E-mail: $email";
$message .= "
";
$message .= "Phone: $phone";
$message .= "
";
$message .= "Comment:
$comment";
$sent = mail ($to, $subject, $message, "From: $email");
if ($sent)
{
exit ('&message=Success! Email sent. Thank you very much for your message.&');
}
else
{
exit ('&message=Error! Sorry... Try again later please.&');
}
?>
I have three radio buttons with the instance name of phonebtn, emailbtn, nonebtn. Parameters: Labels are phonecontact, emailcontact, nonecontact. Group name is contact.
Radio Buttons Form
Hello friends,
I need a flash form script to post, by php, in sql database. The php all right exists and it works very well but I need the flash form. The form must have 3 radio buttons . The radio buttons form is a part of pool system. I create aalso a form in html (to check the system pool) and it works. Now I need the simple form in flash yo poste the values (A, B or C) in aby php in sql . Some one could to help me?
Thanks !!
Use Radio Buttons To Change Form?
i have a form that i want to have change depending on what radio button the user clicks on...
i have the main form on frame 1 and if the user chooses for example the first radio button, i want the form to jump to another frame.
how do i do this???
there are a total of 5 radio buttons, each jumping to a different frame.
THANKS!
Feedback Form Via Php, With Radio Buttons?
Hi all
I am in desperate need of a quick solution. I used to do flash a few years ago, but havent done much of it in the last 12months+, and i need a feedback form that will have a text field for the user to put name, telephone and a few more, like address, sex, etc. Then i need to have 8 questions, that the user will be able to click a radio button to answer each one, so will be a) or b) answers for each of the questions. When they press submit, it will say thanks for your input, and the answers will be emailed back to me via a php file.
Can anyone help, otherwise I think I might get fired.
Rustler
How I Refer In AS RADIO BUTTONS In A Form ?
Please tell me how I refer in AS RADIO BUTTONS in a form ?
This is correct for a radio button group ?
senderLoad.budget_ch = budget_ch.text;
please tell me: above the "text" is ok ? If not what to insert ?
How I Refer In AS RADIO BUTTONS In A Form ?
Please tell me how I refer in AS RADIO BUTTONS in a form ?
This is correct for a radio button group ?
senderLoad.budget_ch = budget_ch.text;
please tell me: above the "text" is ok ? If not what to insert ?
Radio Buttons In Contact Form
Hi all,
I was wondering if someone could shed some light on this issue I am having. I have a contact form with 5 radio buttons labelled:
mr_rb
mrs_rb
ms_rb
dr_rb
other_rb
Next to the other radio button I have a textInput fields labelled other_txt. I am trying to write some ActionScript when the form loads the the other_txt is either hidden from view or disabled. When the user click the other_rb radio button the other_txt will then appear or become enabled with the focus in it so the user can start typing straight away.
I would be very grateful if anyone could help with this code as it really is starting to bug me.
Thanks in advanced
Email Form Using Radio Buttons
Hello! I hope someone can help me out with this one!! I will start off by saying that I don't know too much about action script, but i have created a Flash email form with just text fields that has worked. Now I need to create a form with three sets of radio button groups. I need to pass the variables to a php email script. Can anyone guide me through this?
HELP With RADIO BUTTONS NOT SENding Value To Form,
hello
i have made an email form with flash
but all the values BUT the radio buttons are not being send to the form
all the input text ones seem to work fine
but i can't figure out why the radio button groups are not
i have a whole bunch
please help
Passing Radio Buttons Variables (asp Form)
Hi Girls,Guys,Gurus!,
My problem:
I'm trying to create an ASP form with 3 radio buttons(10,20,30 km)
using Flash 5.
First I don't know how to assign a variable to a radio button,and the other thing is how the asp form should
look like(mtext04 = "number of kilometers: " & Request.Form("check") & vbcrlf ?).
All I have seen so far is how to put a dot in a radio button
but nothing else.
Any help will be really appreciate!
Einstein:Only 15% of our intelligence used,and 85% for Flash!
Adding Checkbox And Radio Buttons To Form
Hello all:
I am working with the attached form mailer (php), and would love to know how to add checkboxes, list boxes and radio buttons and such that will work with this form mailer.
Please review, and I would appreciate any feedback.
Kevin,
Adding Checkbox And Radio Buttons To Form
Hello all:
I am working with the attached form mailer (php), and would love to know how to add checkboxes, list boxes and radio buttons and such that will work with this form mailer.
Please review, and I would appreciate any feedback.
Kevin,
Radio Buttons / Variables/ Email Form Values
Hi,
I am not very proficient in actionscript at all. I just managed to find a perl script i was able to configure to get the results of a little (test) form i made back to me (this took me a week 24/7 !!!)
anyway, there are four input text boxes with variables named name, email, zip, colour. They return the expected values. (yay)
However i have two radio buttons whch i called them both memberGroup (which had labels and data values of yes and no) and i dont jknow whats going on there???This is what my form emails me:
__________________________________________________
name: celia
zip: 12778
colour: blueish green
FRadioButtonGroupClass: [type Function]
memberGroup: [object Object]
FRadioButtonClass: [type Function]
email: niinn@nanna.com
FUIComponentClass: [type Function]
__________________________________________________
Ive searched and searched forums and read MM tutorials but cant understand what is happening.
Is anyone able to explain the following:
2)what is the variable names of components? is it memberGroup (for my above example)?
1)getValue & getData? How do i use these. Can anyone give me examples.
Basically, the above is all my form consists of.
Thanks in advance for anyones patience in explaining this to me and helping me here
Francesca
Sending Email Form Data With Radio Buttons
Hey,
I have a a group of two radio buttons on an email form.
group name: system
label: Mac
label: Win
When a user clicks one of the two radio buttons, the label is assigned to a variable which will be transferred to an email. How do I go about this.
Also same kind of situation, except instead of radio button it is a combo box.
Thanks
POST Variables - Contact Form With Radio Buttons
Greetings,
I found this same querry in an archived post but the solution was not provided so I will make my own post.
I have a basic contact form. It contains the standard name, email, subject, and comments boxes. When you click submit it POST variables to a PHP form and then forwards info to email address with the PHP form. Pretty basic stuff.
Now heres my problem. I have been asked to include selections within the contact form. I have determined that the use of labled radio buttons will do the job. Each button will have its own label and the user can simply check which button he likes and then fill out the rest of the form and hit submit.
Forever Indebted,
Tick Tick Tick (counter Help)
Hey dudes, got a question for ya'll. I'm looking for some action script on how to make a counter? I know it's possible, but I need some help. Anyway if you guys could, drop me a line on how to make one, and if not in action script, some good sites? Alrighty thanks, peace, lataz...
~DeEvEs~
Flash Form With Radio Button
Someone send my an Flash Form in action Script and a PHP file with it. First it worked but lately it doesn't. I don't know what could be the problem, I post both codes.
If someone please can help me. I'll thanks a lot.
Attach Code
___________________
Action Script:
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
volver.onRelease = function() {
pooldeck_txt.text="";
copinglin_txt.text="";
patiosq_txt.text = "";
walkway_txt.text="";
outdoor_txt.text="";
name_txt.text="";
lastname_txt.text="";
company_txt.text="";
street_txt.text="";
mailing_txt.text="";
inca_txt.text="";
patio_txt.text="";
london_txt.text="";
sara_txt.text="";
manchester_txt.text="";
yorkshire_txt.text="";
devonshire_txt.text="";
cambridge_txt.text="";
winchester_txt.text="";
bristol_txt.text="";
city_txt.text="";
state_txt.text="";
zip_txt.text="";
phone_txt.text="";
fax_txt.text="";
cell_txt.text="";
email_txt.text="";
web_txt.text="";
where_txt.text="";
message_txt.text="";
gotoAndStop(31);
}
borrar_btn.onRelease = function() {
pooldeck_txt.text="";
copinglin_txt.text="";
patiosq_txt.text = "";
walkway_txt.text="";
outdoor_txt.text="";
name_txt.text="";
lastname_txt.text="";
company_txt.text="";
street_txt.text="";
mailing_txt.text="";
inca_txt.text="";
patio_txt.text="";
london_txt.text="";
sara_txt.text="";
manchester_txt.text="";
yorkshire_txt.text="";
devonshire_txt.text="";
cambridge_txt.text="";
winchester_txt.text="";
bristol_txt.text="";
city_txt.text="";
state_txt.text="";
zip_txt.text="";
phone_txt.text="";
fax_txt.text="";
cell_txt.text="";
email_txt.text="";
web_txt.text="";
where_txt.text="";
message_txt.text="";
}
enviar_btn.onRelease = function() {
senderLoad.pooldeck_txt = pooldeck_txt.text;
senderLoad.copinglin_txt = copinglin_txt.text;
senderLoad.patiosq_txt = patiosq_txt.text;
senderLoad.walkway_txt = walkway_txt.text;
senderLoad.outdoor_txt = outdoor_txt.text;
senderLoad.name_txt = name_txt.text;
senderLoad.lastname_txt = lastname_txt.text;
senderLoad.company_txt = company_txt.text;
senderLoad.street_txt = street_txt.text;
senderLoad.mailing_txt = mailing_txt.text;
senderLoad.inca_txt = inca_txt.text;
senderLoad.patio_txt = patio_txt.text;
senderLoad.london_txt = london_txt.text;
senderLoad.sara_txt = sara_txt.text;
senderLoad.manchester_txt = manchester_txt.text;
senderLoad.yorkshire_txt = yorkshire_txt.text;
senderLoad.devonshire_txt = devonshire_txt.text;
senderLoad.cambridge_txt = cambridge_txt.text;
senderLoad.winchester_txt = winchester_txt.text;
senderLoad.bristol_txt = bristol_txt.text;
senderLoad.city_txt = city_txt.text;
senderLoad.state_txt = state_txt.text;
senderLoad.zip_txt = zip_txt.text;
senderLoad.phone_txt = phone_txt.text;
senderLoad.fax_txt = fax_txt.text;
senderLoad.cell_txt = cell_txt.text;
senderLoad.email_txt = email_txt.text;
senderLoad.web_txt = web_txt.text;
senderLoad.where_txt = where_txt.text;
senderLoad.message_txt = message_txt.text;
//radioGroup.selectedData;
var mensn:String="";
senderLoad.mensn =radioGroup.selectedData;
/*if (rbsi.selected=true); {
var mensn:String="si";
senderLoad.mensn = mensn;}
if (rbno.selected=true); {
var mensn:String="no";
senderLoad.mensn = mensn;}*/
senderLoad.sendAndLoad("http://www.coimagen.com.pe/andes/find.php",receiveLoad);
}
//docident
receiveLoad.onLoad = function() {
if (this.sentOk) {
_root.gotoAndStop("mal");
pooldeck_txt.text="";
copinglin_txt.text="";
patiosq_txt.text = "";
walkway_txt.text="";
outdoor_txt.text="";
name_txt.text="";
lastname_txt.text="";
company_txt.text="";
street_txt.text="";
mailing_txt.text="";
inca_txt.text="";
patio_txt.text="";
london_txt.text="";
sara_txt.text="";
manchester_txt.text="";
yorkshire_txt.text="";
devonshire_txt.text="";
cambridge_txt.text="";
winchester_txt.text="";
bristol_txt.text="";
city_txt.text="";
state_txt.text="";
zip_txt.text="";
phone_txt.text="";
fax_txt.text="";
cell_txt.text="";
email_txt.text="";
web_txt.text="";
where_txt.text="";
message_txt.text="";
}
else {
_root.gotoAndStop("bien");
pooldeck_txt.text="";
copinglin_txt.text="";
patiosq_txt.text = "";
walkway_txt.text="";
outdoor_txt.text="";
name_txt.text="";
lastname_txt.text="";
company_txt.text="";
street_txt.text="";
mailing_txt.text="";
inca_txt.text="";
patio_txt.text="";
london_txt.text="";
sara_txt.text="";
manchester_txt.text="";
yorkshire_txt.text="";
devonshire_txt.text="";
cambridge_txt.text="";
winchester_txt.text="";
bristol_txt.text="";
city_txt.text="";
state_txt.text="";
zip_txt.text="";
phone_txt.text="";
fax_txt.text="";
cell_txt.text="";
email_txt.text="";
web_txt.text="";
where_txt.text="";
message_txt.text="";
};
};
_____________________
PHP:
<?
ob_start();
$destinatario="anibal@coimagen.com.pe";
$asunto="Find a Distributor - Andes Collection Site";
$cuerpo='<html>
<head>
<title>consulta</title>
</head>
<body>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr></tr>
<tr>
<td height="25" align="center" bgcolor="3f0c02"><span class="Estilo26"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">FIND A DISTRIBUTOR</font></strong></span></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="1" cellpadding="0" align="center">
<tr>
<td height="25" align="right" bgcolor="84532c"><span class="Estilo26"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Tell us about your project</font></strong></span></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <strong><span class="Estilo26"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Pool Deck Sq Ft: </font></span></strong></td>
<td width="49%" height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$pooldeck_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <strong><span class="Estilo26"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Coping Lin Ft: </font></span></strong></td>
<td width="49%" height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$copinglin_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Patio Sq Ft:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$patiosq_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Walkway Sq Ft:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$walkway_txt.'</font></td>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Outdoor Kitchen:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$outdoor_txt.'</font></td>
<tr>
<tr>
<td height="25" align="right" bgcolor="84532c"><span class="Estilo26"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Which pattern do you like?</font></strong></span></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Inca Pattern:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$inca_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Patio Pattern:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$patio_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">London Pattern:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$london_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Sara Pattern:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$sara_txt.'</font></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="84532c"><span class="Estilo26"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Which color do you like?</font></strong></span></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Manchester:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$manchester_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Yorkshire:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$yorkshire_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Devonshire:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$devonshire_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Cambridge:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$cambridge_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Winchester:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$winchester_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Bristol:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$bristol_txt.'</font></td>
</tr>
<tr>
<td height="25" align="right" bgcolor="84532c"><span class="Estilo26"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Information</font></strong></span></td>
</tr>
</tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">First Name:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$name_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Last Name:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$lastname_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Company:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$company_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Street Address:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$street_txt.'</font></td>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Mailing Address:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$mailing_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">City:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$city_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">State:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$state_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Zip Code:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$zip_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Phone:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$phone_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Fax:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$fax_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Cell Phone:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$cell_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">E-mail:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$email_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Web Site:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$web_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#CCA067"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Where did you hear about us?:</font></strong> </font></span></td>
<td height=25 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$where_txt.'</font></td>
</tr>
<tr>
<td width="51%" align="right" bgcolor="#C08E57"> <span class="Estilo26"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF">Message:</font></strong> </font></span></td>
<td height=75 bgcolor="#F2F2F2" align="left"><font size="2" color="#000000" face="Verdana, Arial, Helvetica, sans-serif"> '.$message_txt.'</font></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>';
//para el envio en formato HTML
$headers="MIME-Version:1.0
";
$headers.="Content-type: text/html; charset=iso-8859-1
";
//direccion del remitente
$headers.="From:".$nombre_txt."<".$email_txt.">
";
//direccion de respuesta, si queremos que sea distinta que la del remitente
$headers.="Reply-To: ".$email_txt."
";
//direcciones que recibiran copia
//$headers.="Cc: ssears@enter.net
";
//$respuesta = "http://www.coimagen.com.pe";
//derecciones que recibiran copia oculta
//$headers.="Bcc:
";
//////////////////////////////////
echo "sentOk=" . $sentOk;
///////////////////
if (mail($destinatario,$asunto,$cuerpo,$headers))
{
echo "<p><br><center><font face='verdana' size=+1 color='#990000'>Su consulta o pedido se envió con éxito... Gracias</font></center>";
echo "<meta HTTP-EQUIV='refresh' content='1;url=$respuesta'>";
}
else
{
echo "<p><br><center><font face='verdana' size=+1 color='#990000'>Error al enviar su comentario...</font></center>";
}
?>
<!--<script LANGUAGE="JavaScript">
setTimeout ("document.location.href='p_reservas.php';", 2000);
</script> -->
<?
ob_end_flush();
?>
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
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.
Form In Flash... ´problem With Radio Button´?
Hi people...
I´m trying to use on a form a radio button in flash...
Everything works well, but when I click on this radio, it set a variable that i need to load to a PHP script, but this don´t happens. I realized that this variable is inside of a MovieClip, of course =), and I understand that this variable only ´stays´ inside this MovieClip, so, i tryed the with or telltarget functions to transfer this variable to the main timeline to finally post it to the PHP script... but the f.. variable don´t transfer to the main timeline... someone knows how to do that???
[]´s
Assign Value To Radio Button In A Flash Form?
Hello All, I am writing a form in flash and want to pass to PHP. However, the radio button is not passing the value to the PHP. Only "[object Object]" is displayed. Here's the same question I found in the forum: http://board.flashkit.com/board/showthread.php?t=718946
Anyone by any chance has any idea about it?
Flash Radio Form To PHP Shopping Cart
Right, What I am trying to do is send a value from a radio form in a piece of flash, to be received and processed by a different page (a PHP page, which is a shopping cart),
I have written the actionscript function to take the values from the radio form using formData.sendAndLoad to the PHP, problem is, I need this to also act as a getURL so that the PHP page opens as well, to display the shopping cart. However when I do this, Internet Explorer just wants to Download and save the PHP page the Flash is pointing to.
Any Ideas?
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
Flash Form With Check And List Boxes
hi there, i am in a bit of a mix because i have a flash form with checkboxes and list boex and i am unsure how to relate them toi the form i am doing. i understand giving a text field a var name and lining that to the php/pl script which will use the same vars but in flashj how do i set a var for a checkbox or list box. i am very confused
any help would be grateful
Contact Form With Check Boxes? FLASH 8
I want to make a form where the user can check boxes...and fill out a mini form....how do i make the check boxes and with PHP how do i keep track of which ones they have checked?
Flash Form With Check And List Boxes
hi there, i am in a bit of a mix because i have a flash form with checkboxes and list boex and i am unsure how to relate them toi the form i am doing. i understand giving a text field a var name and lining that to the php/pl script which will use the same vars but in flashj how do i set a var for a checkbox or list box. i am very confused
any help would be grateful
URGENT Help With Radio Button/dynamic Text Form In Flash
Hiya!
its me again, the codeless wonder...
i have been asked by a client to mimic an html form routing to ASP in Flash... It will have 5 dynamic text questions to answer, and 5 radio button choices to answer.
Can anyone point me in the direction of resources for this? i have searched Flashkit and can't find the right thing... I have no idea how to send all the data to the right place, etc...
thanks,
j
|