Reseting A Form...validating A Form
i have an address book online. Users can add/edit/delete at will. All great, but i need to validate a few of the buttons. Thus far, if a user adds an entry, opon the lvConfirm, the form visualy resets with the original text ("Name", "Number"). That is great, but lets say the user then decides to click the update button...well, while the form says name and number, a duplicate entry is entered. Worse, if instead the user clicks delete, it will delete the last entered entry....not desired...any ideas on how to validate this form so after an enter/update/or delete the forms variables are cleared?
Code: var lvGet:LoadVars = new LoadVars(); var lvConfirm:LoadVars = new LoadVars(); var lvConfirmSearch:LoadVars = new LoadVars(); mcAddEntry.onRelease = function() { if(inputName.valid!=true || inputNumber.valid!=true){ txStatus.text="not valid entry"; }else{ lvGet.leaderName = newName; lvGet.leaderNumber = newNumber; lvGet.sendAndLoad(rootURL+"insertEntryToPhonebook.php", lvConfirm, "GET"); } }; lvConfirm.onLoad = function(success) { if (success) { leaderlist.load(rootURL+"getphonebook.php"); inputName.text = "name"; inputNumber.text = "number"; dragger._x=0 selectedDays=[]; lvGet.leaderName="" lvGet.leaderNumber="";
} }; //______________________________________________________________________________edit entry mcUpdate.onRelease = function() { if(inputName.valid!=true || inputNumber.valid!=true){ txStatus.text="Please update at least one field"; }else{ lvGet.leaderName = newName; lvGet.leaderNumber = newNumber; lvGet.Id=leaderId;
lvGet.sendAndLoad(rootURL+"editEntryById.php", lvConfirm, "GET"); } };
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-18-2006, 03:11 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Validating A Form
Ok, basically i have an email form that does this:
- Validates fields if they are not filled in and displays error
- Sends email if it is filled
But... before i put the validator on, it went to a success message, but now it doesn't.
All that you do is fill in name, email, telephone and message and click submit and it emails
Attached is the FLA, if anyone could explain how and why this wont work id be grateful.
http://www.jasonmayo.co.uk/preview/golpys/booking.fla
Ok heres the code...
Form Movie Clip
Code:
onClipEvent(data){
gotoAndStop(2);
}
Actions Frame
Code:
stop();
form.name="";
form.email="";
form.phone="";
form.message="";
Submit Button
Code:
on (release) {
if(form.name == "" ){
gotoAndStop(3);
}
if(form.email == "" ){
gotoAndStop(3);
}
if(form.phone == "" ){
gotoAndStop(3);
}
else {
form.loadVariables("booking_submit.php","POST");
}
}
Reseting Form Field
I've created a simple form with one input field for viewers to submit an email address to join a mailing list. It works great, the only problem is after they click the submit button, the input field (message) doesn't reset OR my dynamic text field (mailstatus) thanking them for joining. Can anyone help?
this is the actionscript for my button:
on (release) {
subject = "Mailing List";
this.loadVariables("http://www.djbreak.com/simplemail.php", "POST");
}
this is my php script:
<?php
$email ="breakgetnice@aol.com";
$subject = $HTTP_POST_VARS['subject'];
$message = $HTTP_POST_VARS['message'];
mail($email, $subject, $message);
echo "mailstatus=Thank you for joining!&thescript=done&";
?>
Flash MX As1 ( Validating A Form)
I need this email validation to be like this:
If email is not 16 digits long, then dont send form, and yeild a result of : INVALID ENTRY or what I have in the code below. Can someone help me out?
fscommand("allowscale", "false");
//
// set some variables
//
mailform = "mailform.php";
confirm = "Processing Data";
action = "send";
//
// and focus on variable fname
//
Selection.setFocus("fname");
//
// validate email function
//
function validate(address) {
if (address.length>=16) {
{
{
{
return (true);
}
}
}
}
return (false);
}
//
// form check
//
function formcheck() {
if ((((email == null)) || (email.length<1)) || (email == "ERROR! Address not valid")) {
email = "ERROR! Address not valid";
action = "";
}
if (!validate(email)) {
email = "ERROR! NUMBER not valid";
action = "";
}
if (fname == null) {
fname = "ERROR! Name required";
action = "";
}
if (lname == null) {
lname = "ERROR! Name required";
action = "";
}
if ((validate(email)) && (email != "ERROR!") && (fname != "") && (lname != "")) {
action = "send";
loadVariablesNum(mailform, 0, "POST");
gotoAndPlay("wait");
}
}
stop();
Validating Contact Form
Hi all,
I have the following code in Flash:
stop();
Code:
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
sender.onRelease = function() {
senderLoad.yourName = yourName.text;
senderLoad.theEmail = theEmail.text;
senderLoad.theMessage = theMessage.text;
senderLoad.sendAndLoad("send2.php",receiveLoad, "POST");
}
receiveLoad.onLoad = function() {
if(this.sentOk) {
_root.gotoAndStop("success");
}
else {
_root.gotoAndStop("failed");
}
}
However, I need a field validation added, that checks if the field has been left empty and preferably checks if the e-mail input has been properly formatted using an "@" for example.
I am not an Actionscripter and when I use a function like above, how would I go about incorporating something like this into the code I already have:
Code:
on (release) {
if (Number(initial_name) == 100 and Number(initial_email) == 100 and Number(initial_comment) == 100) {
loadVariablesNum("send2.php", 0, "POST");
gotoAndStop("success");
else {
_root.gotoAndStop("failed");
}
}
}
Any suggestions very much appreciated.
Thanks!
Validating Flash Form
Hi all,
I know how to validate an email address in a form, but i'm stuck on how I validate that the user has entered in:
1. A telephone number
2. A post code
Is there a simple method
Many thanks in advance
Validating Form Fields
Hi All,
I am using Flash 8;ActionScript 2.0.
I have a form with serveral input fields. I want to validate these fields. For example make sure the email input is in the correct format, that the telephone input has only numbers, etc.
All of the tutorials I have looked at attach the AS to the submit button. I do not want to do this. What I'd like to set up is have AS check the input field entry to make sure it's correct PRIOR to the submission of the form.
Is this possible?
This is the AS for the form with no validation:
tl = this;
initF();
stop();
//Tabs
nameTF.tabIndex = 1
emailTF.tabIndex = 2
companyTF.tabIndex = 3
phoneTF.tabIndex = 4
messageTF.tabIndex = 5
//End Tabs
sendBtn.onRelease = function() {
if (checkFormF()) {
sendEmailF();
} else {
tl.gotoAndStop("errorFrame");
}
};
function checkFormF():Boolean {
if (nameTF.text == "Name" || companyTF.text == "Company" || emailTF.text == "E-mail" || phoneTF.text == "Phone" || messageTF.text == "Message" || nameTF.text == "" || companyTF.text == "" || emailTF.text == "" || phoneTF.text == "" || messageTF.text == "") {
return false;
} else {
return true;
}
}
function sendEmailF() {
sendLV = new LoadVars();
receiveLV = new LoadVars();
receiveLV.onLoad = function(s) {
if (s) {
tl.gotoAndStop("thankyouFrame");
}
};
sendLV.name1 = nameTF.text;
sendLV.email = emailTF.text;
sendLV.message1 = messageTF.text;
sendLV.phone = phoneTF.text;
sendLV.company = companyTF.text;
sendLV.sendAndLoad("mailer5.php",receiveLV,"POST");
}
function initF() {
nameTF.text = "Name";
companyTF.text = "Company";
emailTF.text = "E-mail";
phoneTF.text = "Phone";
messageTF.text = "Message";
}
label_01 = "Name";
label_02 = "Email";
label_03 = "Company";
label_04 = "Phone";
label_05 = "Message";
nameTF.text = label_01;
emailTF.text = label_02;
companyTF.text = label_03;
phoneTF.text = label_04;
messageTF.text = label_05;
//
this.onEnterFrame = function() {
nameTF.onSetFocus = function() {
if (nameTF.text == label_01) {
nameTF.text = "";
}
};
nameTF.onKillFocus = function() {
if (nameTF.text == "") {
nameTF.text = label_01;
}
};
//
emailTF.onSetFocus = function() {
if (emailTF.text == label_02) {
emailTF.text = "";
}
};
emailTF.onKillFocus = function() {
if (emailTF.text == "") {
emailTF.text = label_02;
}
};
//
companyTF.onSetFocus = function() {
if (companyTF.text == label_03) {
companyTF.text = "";
}
};
companyTF.onKillFocus = function() {
if (companyTF.text == "") {
companyTF.text = label_03;
}
};
//
phoneTF.onSetFocus = function() {
if (phoneTF.text == label_04) {
phoneTF.text = "";
}
};
phoneTF.onKillFocus = function() {
if (phoneTF.text == "") {
phoneTF.text = label_04;
}
};
//
messageTF.onSetFocus = function() {
if (messageTF.text == label_05) {
messageTF.text = "";
}
};
messageTF.onKillFocus = function() {
if (messageTF.text == "") {
messageTF.text = label_05;
}
};
};
Your help is much appreciated,
Scott
Validating Form Fields
Need some help here.
Has anyone ever scripted an AS to validate form fields?
I'm looking to validate that _root.name contains only letters and _root.age contains only numbers. i'm also looking for an email validating script?
i've tried to keep the script simple in some cases but doesn't work.
when trying to validate that _root.name has only letters, i used typeof but then realized that all my fields are string therefore it wouldn't work.
all this is being send to a database. would it be easier if i get the developer to validate the forms from his end of things?
Advanced Form Validating In JavaScript.
I hope this isnt too off topic, but I figured anyone profficient in ActionScripting might be able to help me out on this.
I'm having some problems getting my form to validate properly for the 'Age' field. An explanation and some help would be greatly appreciated if anyone knows.
The idea is for the form to provide an error dialogue if the Age field is blank or contains a number that is less than 13 (13 and above are accepted). It works fine if you put 1, 10, 11 or 12. However if you put a single digit such as 2 through 9 if reads this as acceptable. I'm guessing it relates to the fact that these numbers are in the tenths place and the script doesnt understand the decimal system, but really I'm not sure.
Here's a link to the form:
http://www.eckounlimited.com/unplug...ster/index.html
Here's the source:
<html>
<head>
<script language="JavaScript">
<!--
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_valida
teForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- You must specify a valid email address.
';
} else if (test!='R') {
if (isNaN(val)) errors+='- '+nm+' must contain a number.
';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (val<min || max<val) errors+='- Sorry, you must be at least 13 years old to register at Ecko.com. Please have your parent or legal guardian register your information for you.
';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.
'; }
} if (errors) alert('Warning: Invalid submission. Please observe the following...
'+errors);
document.MM_returnValue = (errors == '');
}
//-->
</script>
</head>
<body marginwidth=0 marginheight=20 leftmargin=0 rightmargin=0 bottommargin=0 topmargin=20 bgcolor="#660000" text="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF">
<BASEFONT FACE=ARIAL>
<FORM Action="http://www.ecko.com/cgi-bin/yform.cgi" Method="post" onSubmit="MM_validateForm('First Name','','R','Last Name','','R','Email','','RisEmail','Age','','RinRa
nge13:99999');return document.MM_returnValue">
<table width="320" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td><font face="Arial, Helvetica, sans-serif" size="1" color="#666666"><b><font color=#b30113 size=2><font face="Arial, Helvetica, sans-serif" color="#FFFFFF" size="1">This
survey is about you, the Ecko clothing buyer. Please complete
this questionnaire by filling out the information in the
spaces provided. Filling this out today will register you
as a member of Ecko.com and allow us to keep you updated
on our new developments, products, and adventures. Thank
you for your continued support of Ecko.<br>
<br>
Please fill in the form below.</font></font><font color="#FFFFFF" size="1"><br>
<font face="Arial, Helvetica, sans-serif" color="#FF0000">Fields
marked with * are required.</font></font></b><font size="1"><br>
<font color="#FFFFFF"><br>
*First
Name:<br>
<input type="TEXT" name="First Name">
<br>
<br>
*Last
Name:<br>
<input type="TEXT" name="Last Name">
<br>
<br>
Street
Address:<br>
<input type="TEXT" name="Address">
<br>
<br>
City:<br>
<input type="TEXT" name="City">
<br>
<br>
State/Province:<br>
<input type="TEXT" name="State">
<br>
<br>
Zip
Code:<br>
<input type="TEXT" name="Zip">
<br>
<br>
Country:<br>
<input type="TEXT" name="Country">
<br>
<br>
*E-Mail
Address:<br>
<input type="TEXT" name="Email">
<br>
<br>
*Age:<br>
<input type="TEXT" name="Age">
<br>
<br>
*Gender:<br>
<select name="Gender">
<option value=" " SELECTED><font face="Arial, Helvetica, sans-serif">Select One</font></option>
<option value="M"><font face="Arial, Helvetica, sans-serif">Male</font></option>
<option value="F"><font face="Arial, Helvetica, sans-serif">Female</font></option>
</select>
<br>
<br>
Race:<br>
<select name="Race">Highest level of education completed: <option value=" " SELECTED><font face="Arial, Helvetica, sans-serif">Select One</font></option>
<option value="African American"><font face="Arial, Helvetica, sans-serif">African American</font></option>
<option value="White"><font face="Arial, Helvetica, sans-serif">White</font></option>
<option value="Asian/Pacific Islander"><font face="Arial, Helvetica, sans-serif">Asian/Pacific Islander</font></option>
<option value="Hispanic/Latino"><font face="Arial, Helvetica, sans-serif">Hispanic/Latino</font></option>
<option value="Native American"><font face="Arial, Helvetica, sans-serif"> Native American</font></option>
<option value="Other"><font face="Arial, Helvetica, sans-serif">Other</font></option>
</select>
<br>
<br>
Highest
level of education completed:<br>
<select name="Edu">
<option value=" " SELECTED><font face="Arial, Helvetica, sans-serif">Select One</font></option>
<option value="Graduated college"><font face="Arial, Helvetica, sans-serif">Graduated college</font></option>
<option value="Attended college"><font face="Arial, Helvetica, sans-serif">Attended college</font></option>
<option value="Some high school"><font face="Arial, Helvetica, sans-serif">Some high school</font></option>
<option value="Still in grades 1-12"><font face="Arial, Helvetica, sans-serif">Still in grades 1-12</font></option>
</select>
<br>
<br>
How
did you find this page?:</font><br>
<select name="Referer">
<option value=" " SELECTED><font face="Arial, Helvetica, sans-serif" color="#666666">Select One</font></option>
<option value="TagCD"><font face="Arial, Helvetica, sans-serif" color="#666666">Ecko Complex TagCD</font></option>
<option value="ComplexMag"><font face="Arial, Helvetica, sans-serif" color="#666666">Complex's Homepage</font></option>
<option value="Ecko.com"><font face="Arial, Helvetica, sans-serif" color="#666666">Ecko's Homepage</font></option>
</select>
<br>
<br>
<input type="Submit" value="Register" name="Submit">
</font></font></td>
</tr>
</table>
<input type=hidden name="html_redirect" value="http://www.ecko.com/register/thanks.html">
<input type=hidden name="mail_recipient" value="register@ecko.com">
<input type=hidden name="mail_subject" value="Registration at Ecko.com">
<input type=hidden name="mail_top">
<input type=hidden name="mail_listfields" value="First Name, Last Name, Address, City, State, Country, Email, Age, Gender, Race, Edu, Referer">
<input type=hidden name="mail_bottom">
<input type="hidden" name="data_filename" value="registration.txt">
<input type="hidden" name="data_fields_to_log" value="First Name, Last Name, Address, City, State, Country, Email, Age, Gender, Race, Edu, Referer">
<input type="hidden" name="data_listvertical">
<input type="hidden" name="data_delimiter" value=" ">
</FORM>
</body>
</html>
Validating A PHP E-mail Form : Flash MX Pro
Does anybody have a php script that validates an e-mail address from a Flash form? I had the script, but prolly deleted it inadvertently.
Particularly, I'm looking for a php script to checks to see if an e-mail is valid or not. I'm using Flash MX professional...any help would be certainly be appreciated...
Flamboyant Flasher
[F8] Problems Validating Contact Form
i am having trouble validating a contact form. ON testing, i always get a false result, even if the txName or txEmail have values, the form reloads a blank and still traces "false"
Code:
var valid:Boolean=false
submit.onRelease=function(){
validateForm()
}
function validateForm() {
if (form.txName.text=" ") {
trace("no name")
}if(form.txEmail.text=" "){
trace("no email")
}else{
valid=true
}
sendForm()
}
function sendForm() {
trace(valid);
if (valid) {
trace("valid");
lvSend.user_name = form.txName.text;
lvSend.user_email = form.txEmail.text;
lvSend.user_city = form.txCity.text;
lvSend.user_note = form.txNote.text;
lvSend.sendAndLoad(rootURL+"contact.php", lvGet, "GET");
}
}
i'm sure the answer is somethign simple...but i have tried many variations to get this to work...anythoughts?
Flash Form+php(kirupa Tutorial)/messages Sent By Form Show Strange Characters
Flash form+php(kirupa tutorial)/messages sent by form show strange characters - uncorrect stressing for latin languages
I tested flash + php form (http://www.kirupa.com/developer/act...h_php_email.htm) , and noticed message field does not send messages correctly when words stressing is needed (á à , é , í , ó , ão ) ;
I received strange characters when typed stressed words :
á é i ó u ão à pão cão árvore ;
what has to be changed on the code to allow stressing ??
cheers
Flash Form Question : Sending HTML Form Values...
I'm trying to create a flash form version of an HTML form. It's basically just a voting drop down menu - user chooses "Yes", "no","maybe" from teh drop down and hits a submit buttons which would send the results to a CGI script though POST. I understand the submission aspect, but am not sure how to assign values to the drop down in the same way HTML does:
<option value="yes">
<option value="no>
...
Do I just set the combo box Data array to [yes,no,maybe]? If so, how is it to be sent?
thanks
Form Application, How To Make Not Clickable Thing In Parent Form
I am making a form application and in one form i have some child forms.
When i open (make visible) one of the child objects all the clickable items in the parent form are still working.
how can i "deactivate" them?
i have seen that it happens the same not only with parent-child forms but also with the "brothers" forms, even if the clickable items are not shown.
Pass Variable Form HTML Form To Flash
Hi,
I'm trying to figure out how to send what the user selects from a HTML drop-down menu to the Flash movie.
In this scenario, the user picks an email address from a drop-down list and this is sent to flash as a variable called 'eaddress' which is eventually used in the flash movie to send a message to this address.
Any help is much appreciated!
Glenn
Help: Form Mail (CGI-style Email Form) In Flash
Anyone have a nice .FLA file to share so I can get in and play with the AS?
I need to setup a CGI-style email submission (request info, etc) completely within the MX2004 pro environment--for a client.
I'm not completely fluent in AS2.0, but I can run with changing the fields and calls so long as the sample is not too complex.
Much appreciated.
How Do I Set Up Hidden Form Variables For A Flash Form.
Guys, I'm using the flashkit tutorial on "send e-mail in flash the easy way", or something like that. Problem is that I need to set variables for hidden input, but don't know where and how to pass them along to the script?
Thanks
Simple Form Troubleshoot For Form Mail
Hey guys...
I can't get the attached form to work no matter what I do. I have to use my host's form mail script. This file is loaded with a loadmovie command on level 3...if that matters.
thank you so much for your time...this is killing me.
tony
Convert HTML Form Into FLASH Form
http://www.bennyvo.com/test/
can someone look at this site and help me converting html form into flash form? is it possible?
thanks alots.
[F8] Flash Form Pops Up With The Php Url When Submitting Form
Hey guys,
I have a very minor issue here. I've created a contact form that uses a loadVars function to send the information to a php script and then on to my email. I've got everything working perfect except for the fact that when the user clicks submit it pops up a page with the address of my php script in order to run it. This is a bit annoying, so i was wondering if there was anyway to stop this from happening (but still run the script).
At the moment my code is:
PHP Code:
details_lv = new LoadVars ();
details_lv.userName = text2_mc.name_txt.text;
details_lv.userEmail = text2_mc.email_txt.text;
details_lv.userSubject = text2_mc.subject_txt.text;
details_lv.userMessage = text2_mc.message_txt.text;
details_lv.send("contact.php", "POST");
Any help would be appreciated,
Thx
Form Tab To Auto Scroll Form
I have created a long form that the user needs to scroll down to view and fill in. At the moment the user needs to operate the scroll bar with the mouse when they come to the end of the visible section. i would like the user to be able to tab through the text fields and the form to auto scroll up so the text field is visible.
Any ideas????
Flash Form Vs HTML Form
Hello Peoples,
The following HTML code produces a button that when clicked sends the user to my online credit card processor's site where the user can proceed with a transaction.
----------HTML CODE----------
<form action='https://www.casher.com/buyer/purchase' method='post'>
<input type='hidden' name='dis' value='435532' >
<input type='hidden' name='quantity' value='1' >
<input type='hidden' name='product_id' value='1' >
<input name="submit" type='submit' value='Click to pay thru casher.com' >
</form>
----------HTML CODE----------
So my question is: If I want to use a button in a flash piece to do the same thing as the above HTML button, what code do I apply to the button in flash ?
Thanks,
Reflex.
HTML FORM To Flash FORM
I'm tryin to convert an HTML password page into FLASH and haven't a clue where to start. The site is www.modernvisionphotography.com and the code for HTML is
<form name="pix" method="post" action="http://www.724pix.com/album.asp" onsubmit="return 724check();">
<input type="hidden" name="init" value="init">
<input type="hidden" name="code" value="458">
<input type="text" name="password" size="16" maxlength="30"><br>
<input type="submit" name="submit" value="submit">
The user types in their password via an input text field but i haven't an idea what to put in the submission button in flash.
Any leads? or ideas would be helpful! Thanks for your time.
[AS] [Form] Simple Form Check ?
Hi.
I got a form for my website and i want flash to check it wether any of the fields is empty.
This is what i got so far, but i does not do anything:
Note: i got 8 fields in my form with the vars: vname, nname, strasse, hnr, plz, ort, telefon and email.
ActionScript Code:
if (vname != "" && nname != "" && strasse != "" && hnr != "" && plz != "" && ort != "" && email.indexOf("@") != -1 || email.indexOf(".") != -1) {
loadVariables("http://www.incorp.de/info.php", "", "GET");
gotoAndStop(3);
_root.regid = 1;
} else if (vname == "") {
gotoAndStop(2);
reg.fehler = "Bitte tragen Sie einen Vornamen ein.";
} else if (nname == "") {
gotoAndStop(2);
reg.fehler = "Bitte tragen Sie einen Nachnamen ein.";
} else if (strasse == "") {
gotoAndStop(2);
reg.fehler = "Bitte tragen Sie eine Adresse ein.";
} else if (hnr == "") {
gotoAndStop(2);
reg.fehler = "Bitte tragen Sie eine Hausnummer ein";
} else if (plz == "") {
gotoAndStop(2);
reg.fehler = "Sie haben die Postleitzahl vergessen.";
} else if (ort == "") {
gotoAndStop(2);
reg.fehler = "Sie haben den Wohnort vergessen.";
} else if (email.indexOf("@") == -1 || email.indexOf(".") == -1) {
gotoAndStop(2);
reg.fehler = "Bitte prüfen Sie Ihre E-mail Adresse";
}
Why doesn't it work?
Flash/CGI E-mail Form -- Form Sends Info To E-mail? HELP Please (AIM/ICQ)
I am trying to make a flash file where you enter in information and then you click send and it sends the data in the form to my e-mail address. I tried customizing all of the cgi ones from the movies section of flashkit, and modifyied the cgi script accordingly. No matter what I've tried, I won't receive the information in my e-mail. For me, this matter is too hard to resolve over e-mail or a forum, so if you would like to, please help me out over instant messenger. I will be online under AIM name: blizzardmedia and ICQ number 64322480
Thanks for your help.
Form (Form + Script)
Hello. I am in need of help with creating a functional form. I have been working on making one work for a very long time except with no success. I am not understanding many of the tutorials, movies, and searching many places. All of the tutorials really never explained anything. I have searched just about everywhere for an answer, and this is my last resort.
I have made an example form, just a test and added a script I found but substituted the variables. Yet, it does not work.
I would like to know, what am I doing wrong? (Bit general question)
Also, when I open up the example script, it opens with SimpleText, change the necesary variables, and save it.
Is this acceptable, the script is just a text file?
Could someone fill some holes in for me?
Moving From Form To Form.
Ok total noob here.
Just started a form based project. My first form is a splash screen, which plays a animation. Whats the best way, at the end of the animation to goto the next form?
Also do I have to unload/load forms or can i just hide and unhide them.
Thanks in advance
Form In Flash, Tab Goes Off Form
Sorry - I really feel at a loss here as there is nowhere I can find to set up a control for the order in which you can move from one field to another. But as I test my form, and tab from one field to the next - the cursor goes from first to second field, then off the form to the menu bar, tab again and you end up in the third field of the form, tab again and you go off form to the next option on the menu bar, tab again and you go back to the last two fields in the form. What can I do to keep the cursor in the form going from one field to the next? PLEASE!?
PHP Form To Flash Form
Hello everyone, I have a form php that I want to convert to flash, but do not know how to do it, this it is the code.
Code:
<form action="www.ejemplo.com/algo" method="post" name="comment" enctype="multipart/form-data">
<p>Comentario</p>
<textarea id="cftext" name="text" rows="8" cols="50" class="formfield">Escribe tu comentario</textarea>
<input name="rate" id="cfrate" value="0" type="hidden">
<input name="system_content" value="function" type="hidden">
<input name="system_lib" value="algo" type="hidden">
<input name="system_name" value="algo" type="hidden">
<input name="system_type" value="algo" type="hidden">
<input name="system_cid" value="algo" type="hidden">
<input name="system_tpl_success" value="algo" type="hidden">
<input name="system_tpl_error" value="algo" type="hidden">
<br>
<p align="center"><input name="submit" value="POST COMMENT" type="submit"></p>
</form>
PLEASE, HELP ME!!!
AS2 Form Data To ASP Form
I've scoured the forum for a possible solution and nothing I've found seems to work. I have a form in Flash AS2 that I want to pass that data to an ASP page where it's processed, but it should also send the user to that page.
FLA has two form fields "userName" and "pword"
My actionscript looks like
buttonSubmit.onRelease = function() {
myVars = new LoadVars();
myVars.userName = regFields.userName.text;
myVars.send("login.asp","_self","POST");
}
I've even tried just using the getURL("login.asp","_self","POST"); method and I cannot get the variable info to send to the page.
I've also tried sendAndLoad too with no success as that won't send the user to the next page.
Tab In Form
I need to know how to use the tab to advance in my form. I've followed the tutorial found on this site and read the other posts and it wont work. I've come to the conclusion that its becasuse my form is in a movie clip. Then put on the main stage. So it somehow gets confused. What can i do? Any help?
Thanks
Twister
Form Help
where am I going wrong, I can get a html form to work, where am I going wrong with this flash form??
Scene 1
actions for frame 1
required = "";
data_order = "name,company,phone,submit_by,address,detail";
submit_to = "mail@jmcwebdesign.com.au";
automessage = "mymessage";
outputfile = "form1";
countfile = "form1";
emailfile = "form1";
form_id = "Web Form";
actions for submit
on (release) {
loadVariables ("/cgi-jmcwebdesign/bnbform.cgi", 0, "POST");
// Go to the confirmation frame.
gotoAndStop (50);
}
Help With Form
Hi
I need help with the actionscript required to "embed" the following form in a flash4 movie:
<form name="loginform" action="http://mail.bigmailbox.com/users/....../enter.cgi" method=post>
<input type=hidden name=js value=0>
<!-- TEXT FIELDS FOR USERNAME AND PASSWORD -->
<font face="verdana,arial" size=2>
Username:
</font>
<input type=text name=un size=12 maxlength="20">
<br>
<font face="verdana,arial" size=2>
Password:
</font>
<input type=password name=pw size=12 maxlength=15>
<br>
<font face="verdana,arial" size=2>
<input type=submit name=submit value="Log In">
<p>
<!-- LET USER CHOOSE IF THEY WANT TO VIEW FRAMES OR NOT -->
Use Frames:
<input type=radio name=fr checked value=1>
Yes
<input type=radio name=fr value=0>
No
</font>
</FORM>
I can probably addapt most of this "Form" to integrate it in a flash4 movie, but I'm not sure how to treat the "name" parts of the form, for the info to be transmitted correctly to the "Bigmailbox" cgi bin.
In html format, the following script is also placed just before the </body> tag:
<!--
ADD JAVASCRIPT HERE TO TEST IF USER IS USING A
JAVASCRIPT-ENABLED BROWSER AND
TO CLEAR THE FORM FIELDS FOR USERNAME AND PASSWORD
-- WITH THE FORM FIELDS CLEARED, NO ONE CAN LOG
IN TO THE USER'S ACCOUNT AFTER THEY ARE DONE
-->
<script language=javascript>
<!--
document.loginform.js.value = 1;
document.loginform.un.value = '';
document.loginform.pw.value = '';
//-->
</script>
Can you help?
Thanks in advance,
PHP Form?
Hi everyone,
Is there anyone out there how can explain me how to get a PHP form to work? Because my hair is starting to turn greyish...
thanks
Form
I created a form where a visitor can leave comments, their name, and their email address. I am sending the information to an email address via PHP. How can I make sure they enter a valid email address with their names.
What scripting can I use ?
[Edited by Alkapone on 09-04-2001 at 04:09 PM]
FORM TO ASP
I have a layerd movie that loads movies into different levels. I'm trying to debug an error with a form to mail asp script but can't get it. what nameing format is used by flash 5 when sending variables via POST?
please help
ASP / CGI Form ... Help Please
HI there,
Iposted this is general questions also as Its really got me stuck and i need help bad!
I have looked at several tutorials on the subject of feedback forms and being able to link them back through an email address ...
So far, I have been able to set the variables
(name, email, comments) and have the submitt button ready -
I have tried to set up an cdontsMAIL.asp page using code from a tutorial, but when i send the form, no email is sent to me with form details...
I copyied the asp code and changed all the relevent details to fit mine ... I copyed and pasted the code into notepad then saved as cdontsMAIL.asp and uploaded it along with the rest of my movie ...
The code behind the submitt button is onrelease, loadvariablesnum ("cdontsMAIL.asp", 0, "post")
can anyone shed some light on this please?
Or if there is another way of getting the form info. sent from the website to my email?
ANY TIME AND HELP IS GREATLY APPRECIATED!
thanx
G
Form Help...
I made my form image..and did all the variable and input text fields.....the two things I cant figure out..is
1. How can I have it so when the user hits the submit button the input fields go blank again?..Like ready for another "SUBMIT"?....
2. The code for the submit button has me messed up? I am using geocities for a freeserver untill al tests/bugs are ironed out....how do I get the submit button to work? What CGI script do I need? What exactly do I edit and where for the button code? Thanks. -whispers-
Form Help...
I have been searching for posts, tuts,...everything I can think of for some help on my form. I have tried all sorts of code for the submit button...and nothing works....Can someone guide me here...a specific explaination woudl be the best.
I have my files on brinkster.com (I am willing to move to any free server) I just want the directions of what to type in the code for the submit button....what I need for asp or CGI..or whatever... where to get a specific one CGI/ASP..etc. PLEASE!! Someone help! It has been weeks..and my form is still not working..THANKS! -whispers-
http://www25.brinkster.com/whispers007
Click on the contact button!! Thanks
Cgi For A Form
I have a form for my site. Eveything in it is ok. But I don't know how to make the cgi for it, or how to edit someone else's so that it will send it though a smtp. Please Help ME, Thank You
Boa743
Help With A Form
I created a multi-user login using FLASH 5, and was wondering if there was a way to enable using the TAB button to switch fields and the ENTER button after you embed the movie in HTML?
Need Form Help
I am working on the tutorial "Creating an Interactive Form in Flash" and in step 6 where you have to load variables it asks for "the web address of the form to mail script that i am using". Does anyone know how i can acquire this address?
|