Help With Form Submit
i searched and thought i found what i was looking for but couldn't get things to work so if someone could help with what i think is a simple problem for experienced scripters, i'd really appreciate it.
i have an html form that looks like this:
Code:
<FORM action="http://domain.com/article.asp?id=51&article=1" method=post>
<INPUT id=prod_type type=hidden value=View name=prod_type>
<INPUT id=prod_type type=hidden value=dispSub name=prod_type>
<INPUT id=ProdId type=hidden value=3 name=ProdId>
<INPUT type=submit value="Submit">
</FORM>
i need to duplicate this in my flash button. i tried these but neither of them works:
Code:
on (release) {
subscribe = new LoadVars();
subscribe.prod_type = "View";
subscribe.prod_type = "dispSub";
subscribe.ProdId = "3";
subscribe.send("http://domain.com/article.asp?id=51&article=1", "_blank", "POST");
}
and
Code:
on (release) {
var prod_type:String = "View";
var prod_type:String = "dispSub";
var ProdId:String = "3";
getURL("http://domain.com/article.asp?id=51&article=1", "_blank", "POST");
}{
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 09-10-2004, 02:34 PM
View Complete Forum Thread with Replies
Sponsored Links:
ASP Submit Form In MX
I have been playing with the ASP submit form which uses MX components from the MM website <a href="http://www.macromedia.com/support/flash/applications/creating_forms/index.html">here</a>. This looks to be exactly what I need, however, I can't find a place, in either the ASP script or the FLA, where I can specify the location (ie. email address) the form data is to be submitted to. The best option for me at this time would be able to get the script to send the form data to an email address. Any help would be greatly appreciated.
This is the ASP script:
[asp]
Dim reply_size, reply_quantity, reply_toppings, returnToFlash
reply_size = Request.Form("size")
reply_quantity = Request.Form("quantity")
reply_toppings = Request.Form("toppings")
returnToFlash = "reply_size=" & Server.URLEncode(reply_size) & "&reply_quantity=" & Server.URLEncode(reply_quantity) & "&reply_toppings=" & Server.URLEncode(reply_toppings)
Response.Write returnToFlash
[/asp]
View Replies !
View Related
How To Submit A Form?
Hi,
I have to submit a form that i have created in Flash. But when the form submits, the variables are to be sent to another website, and a page over there which should open.
I created two Input textfields and defined thier variables.
Created a button to submit. On the button i gave :
"
on(press) {
loadVariablesNum ("http://mail.myone.com/starsareus/what.pl","_self","POST");
stop();
}
"
When i press the button, nothing happens! Why not?
How do i do this? Basically i have to send the variables to a remote page on another server. How do i do this?
Thanks,
2Shy
View Replies !
View Related
Submit Form With CGI
Hi,
Just to let you know that I gave up using the php form. I am having a hell of a time trying to figure out how to make a good one that would work. I have found this tutorial and used the code in it. However, if I publish my work, the errBox don't seem to appear when I try to submit my form. In fact, nothing happen. The only one think that work is when I clear the data in the form. Here is the link I have been using for my form.
http://www.flashkit.com/tutorials/In...-778/index.php
So, if someone could guide me through the process, I would really appreciate it.
Thanks,
View Replies !
View Related
Submit A Form In .exe
Hi all,
I am creating an .exe file for a CD rom (wedding invitation) with a reply form. However, I am looking for an example or a tutorial on how to submit that form to my email. I have created all the components and given names and allocated them to groups ... and now, what is the actionscript to forward the information to me by email.
Another question is: for the people w/o Internet access, how can I make a button (similar to the Submit) button, that opens the same form ("reply.pdf"), that they can print it and send by post?
Thanks for any indication you may have!
View Replies !
View Related
Submit Form
hiya
i need a little help with a submition form
i need to know the complete script needed for the 'submit' button
i realise i asked this question a week ago but i couldnt find it
so please if anyone knows the direct script needed for the submit form it would be greatly appreciated
p.s. ive tried help tutorials but the explanation in all the ones ive tried seems to be in a format my computer doesnt recognise
thank you very much max
View Replies !
View Related
Submit Form?
wot is the action script 2 submit a form the an email adres?i meen if i hav a field 2 input info and then hav a submit buton...wot code do i need?thanks
View Replies !
View Related
Submit Form?
hey...long time since iv bin on...hopefully u guys will b as helpful as u wur b4....wel...wot i want 2 do is hav a form...for example a contact form...where there are blank input fields such as: name,email adres etc...i then want at the botum a submit buton...that wil then submit this information to a selected email adres...i can do the inuput boxes...i just need sum1 to help me with the submiting...eg...the actionscript wud b nice or any other help u have...thnxs guys...all hepl much appreciated....(sorry 4 my bad spelling!!!)
peace out...nd hav a gd new year!! (oh yeh...nd hope u all had a nice xmas!)
View Replies !
View Related
Submit Form
Hi!
I'm making a website, and i'm trying to create a "contact me"-template, where you write your name, your e-mail-adress etc. and a message. Then you click submit, and it's sent to me somehow
Does anybody know about a code that i can use for this?
I attach the file in case it's hard to understand what i mean.
Any response would be great!
View Replies !
View Related
'submit' Form
How do I create a form where visitors can type in an email address and click 'submit' to add their email address to my database to create a mailing list?
Thank you
View Replies !
View Related
[F8] Form Submit / PHP Help Please.
I have made a form with a variety of fields, checkboxes etc. using a single layer. I also have a "Submit" button on that layer. I created a second layer for actions and have the following script for the submit button:
Code:
submit.onRelease = function() {
myForm.fromName = Name.text;
myForm.fromEmail = Email.text;
myForm.submitForm();
};
The form seems to function correctly in so far as detecting when a user has not completed required fields etc., but when I hit the submit button nothing happens. The php file I'm using is as follows:
PHP Code:
<?php
//edit this line to include the email address of the form recipient between the quotation marks
//for example: $formrecipient = "you@youremail.com";
$formrecipient = "";
$headerStyle = $_POST["headerStyle"];
$titleStyle = $_POST["titleStyle"];
$bodyStyle = $_POST["bodyStyle"];
$heading = $_POST["heading"];
$headerFont = $_POST["headerFont"];
$headerSize = $_POST["headerSize"];
$headerColor = $_POST["headerColor"];
$bodyFont = $_POST["bodyFont"];
$bodySize = $_POST["bodySize"];
$bodyColor = $_POST["bodyColor"];
$orderArray = $_POST["orderArray"];
$varArray = $_POST["varArray"];
$layout = $_POST["layout"];
$titleFont = $_POST["titleFont"];
$titleSize = $_POST["titleSize"];
$titleColor = $_POST["titleColor"];
if($formrecipient == "")
$recipientEmail = $_POST["recipientEmail"];
else
$recipientEmail = $formrecipient;
$Subject = $_POST["Subject"];
$fromName = $_POST["fromName"];
$fromEmail = $_POST["fromEmail"];
$lineSpacing = $_POST["lineSpacing"];
$spamTest = $fromName;
$spamTest = urldecode($spamTest);
if (eregi("
",$spamTest) || eregi("
",$spamTest)){
die("Attempted spam!!!");
}
$spamTest = $fromEmail;
$spamTest = urldecode($spamTest);
if (eregi("
",$spamTest) || eregi("
",$spamTest)){
die("Attempted spam!!!");
}
$spamTest = $Subject;
$spamTest = urldecode($spamTest);
if (eregi("
",$spamTest) || eregi("
",$spamTest)){
die("Attempted spam!!!");
}
$parseLinks = true;
$headerStyleOpen = "";
$headerStyleClose = "";
$titleStyleOpen = "";
$titleStyleClose = "";
$bodyStyleOpen = "";
$bodyStyleClose = "";
if($headerStyle == "bold-underline") {
$headerStyleOpen = "<b><u>";
$headerStyleClose = "</u></b>";
} else if($headerStyle == "underline") {
$headerStyleOpen = "<u>";
$headerStyleClose = "</u>";
} else if($headerStyle == "bold") {
$headerStyleOpen = "<b>";
$headerStyleClose = "</b>";
}
if($titleStyle == "bold-underline") {
$titleStyleOpen = "<b><u>";
$titleStyleClose = "</u></b>";
} else if($titleStyle == "underline") {
$titleStyleOpen = "<u>";
$titleStyleClose = "</u>";
} else if($titleStyle == "bold") {
$titleStyleOpen = "<b>";
$titleStyleClose = "</b>";
}
if($bodyStyle == "bold-underline") {
$bodyStyleOpen = "<b><u>";
$bodyStyleClose = "</u></b>";
} else if($bodyStyle == "underline") {
$bodyStyleOpen = "<u>";
$bodyStyleClose = "</u>";
} else if($bodyStyle == "bold") {
$bodyStyleOpen = "<b>";
$bodyStyleClose = "</b>";
}
function makeClickableLinks($text) {
$text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_+.~#?&//=]+)', '<a href="\1">\1</a>', $text);
$text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_+.~#?&//=]+)', '\1<a href="http://\2">\2</a>', $text);
$text = eregi_replace('([_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3})','<a href="mailto:\1">\1</a>', $text);
return $text;
}
function wrapText ($String, $breakPoint) {
$newString="";
$lines=explode("
", $String);
$count=count($lines);
for($i=0;$i<$count;$i++){
if(strlen($lines[$i])>$breakPoint){
$str=$lines[$i];
while(strlen($str)>$breakPoint){
$find = 1 ;
$pos=strrpos(substr($str, 0, $breakPoint+1), " ");
if ($pos == false) {
If(1) {
$pos = $breakPoint ;
$find = 0 ;
} else {
$pos= strpos($str, " ");
if ($pos == false)
break;
}
}
$newString.="".substr($str, 0, $pos)."
";
$str=(substr($str, $pos + $find));
}
$newString.=$padStr.$str."
";
}
else{
$newString.=$padStr.$lines[$i]."
";
}
}
return substr ($newString,0, -1);
}
function array_search_r($needle, $haystack){
while (list(, $val) = each ($haystack)) {
if(is_array($val))
$match=array_search_r($needle, $val);
if($value==$needle)
$match=1;
if($match)
return 1;
}
return 0;
}
if($heading != null && $heading != "") {
$message = "<html><body><font face="".$headerFont."" size="".$headerSize."" color="".$headerColor."">";
$message .= $headerStyleOpen.$heading.$headerStyleClose."</font><br><font face="".$bodyFont."" size="".$bodySize."" color="".$bodyColor."">";
} else {
$message = "<html><body><font face="".$bodyFont."" size="".$bodySize."" color="".$bodyColor."">";
}
$arrOrder = explode(",",$orderArray);
$finalArray = array();
$fullFields = explode("~|~",$varArray);
while (list(, $val) = each ($fullFields)) {
$divideFields = explode("*|*",$val);
if($divideFields[1] != "undefined") {
if($parseLinks) {
$fieldValue = makeClickableLinks(stripslashes($divideFields[1]));
} else {
$fieldValue = stripslashes($divideFields[1]);
}
$finalArray[] = array($divideFields[0],$fieldValue);
}
}
for ($i = 0; $i < count($finalArray); $i++) {
if(is_string($finalArray[$i][0])) {
$place = array_search_r ($finalArray[$i][0], $arrOrder);
if(!$place) {
if($finalArray[$i][0] == $arrOrder[0]) {
$arrOrder[0] = $finalArray[$i];
} else {
$arrOrder[] = $finalArray[$i];
}
} else {
$arrOrder[$place] = $finalArray[$i];
}
}
}
//////////////////
for ($a = 0; $a < count($arrOrder); $a++) {
if( !is_array( $arrOrder[$a] ) ){
$finalArray = array();
$finalArray[0] = $arrOrder[$a];
$finalArray[1] = " ";
$arrOrder[$a] = $finalArray;
}
}
//////////////////
for ($i = 0; $i < count($arrOrder); $i++) {
for($b = 0; $b < $lineSpacing; $b++) {
$message .= "<br>";
}
$varValue = $arrOrder[$i][1];
$varValue = str_replace("
", "<br>", $varValue);
if($layout == "style2") {
$message .= "<font face="".$titleFont."" size="".$titleSize."" color="".$titleColor."">".$titleStyleOpen.$arrOrder[$i][0].":".$titleStyleClose."</font><br>".$bodyStyleOpen.$varValue.$bodyStyleClose."<br>";
}
else if($layout == "style3") {
$message .= "<font face="".$titleFont.""size="".$titleSize.""color="".$titleColor."">".$titleStyleOpen.$arrOrder[$i][0].":".$titleStyleClose."</font><br><br>".$bodyStyleOpen.$varValue.$bodyStyleClose."<br>";
}
else {
$message .= "<font face="".$titleFont."" size="".$titleSize."" color="".$titleColor."">".$titleStyleOpen.$arrOrder[$i][0].":".$titleStyleClose."</font> ".$bodyStyleOpen.$varValue.$bodyStyleClose;
}
}
$message .= "</font></body></html>";
$message = wrapText($message, 72);
$headers = "From: ".$fromName." <".$fromEmail.">
";
$headers .= "Reply-To: ".$fromName." <".$fromEmail.">
";
$headers .= "Return-Path: ".$fromName." <".$fromEmail.">
";
$success = mail($recipientEmail, $Subject, $message, $headers."MIME-Version: 1.0
"."Content-type: text/html; charset=iso-8859-1");
if($success) {
$emailsent = "sent";
} else {
$emailsent = "notsent";
}
print "&submittedVar=".$emailsent;
?>
This file came with EZForm Pro, a Flash 8 plug-in I purchased. My understanding is that all variables are supposed to be filled in prior to sending an email.
If I call the php file directly by browsing to it, I get the error message "notsent". I also have another php test script I have run from the same directory and it runs okay, so I am confident the Server side is setup correctly.
I think I'm not scripting the button correctly and it's not calling the php file, which is "formhtml.php3". Can someone please take a look at what I've done here and help out? This is driving me nuts.
Thanks
View Replies !
View Related
Submit Form
How can I submit a flash form contains name, company, email, and message fields to a script (php) to process and sends the formatted information through email.
Thank you in advance.
regards,
n
View Replies !
View Related
Submit Form
Hi
i have created a form on a movieClip in my flash movie, this form comprises of several fields with instance names and a button with
on (release) {
getURL("dbInsert.php", "", "POST");
}
clicking the button doesn't send the variables to dbInsert.php
what am I doing wrong?
View Replies !
View Related
PHP For FORM And SUBMIT
See my php script below. I have put it on a website that I have designed for a company. For now, I have put my own email address for the form information to come to. However, the form information does not come to my email???? Wondering where the error is in PHP? Would someone kindly help me. Mary Alice And my email is art.design@comcast.net. I have the files in a jpg showing how they look in Flash and in the php file. If you want, you may email me. I just have to solve this php situation. I need the form information coming to my email. Please tell me what is wrong with the Actionscripting or the PHP scripting.
Regarding the ActionScript 1.0/2.0, this is what I put for the FORM:
onClipEvent (data) {
_root.nextFrame();
}
-------------------------------------------------------------------------------
This is what I put for the SUBMIT button:
onClipEvent (load) {
form.loadVariables("analysisformphp.php", "POST");
}
-------------------------------------------------------------------------------
And regarding the PHP, I made a separate file for the PHP scripting. It is as follows:
<?php
$SendTo = "art.design@comcast.net"
$subject = "My AnalysisForm Reply";
$headers = "From: " . $_POST["household"];
$headers = "From: " . $_POST["water supply"];
$headers = "From: " . $_POST["softener"];
$headers = "From: " . $_POST["bottled water"];
$headers = "From: " . $_POST["comments"];
$headers = "From: " . $_POST["name/business"];
$headers = "From: " . $_POST["address"];
$headers = "From: " . $_POST["city/state/zip"];
$headers = "From: " . $_POST["phone"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
mail(recipient, subject, message, other headers);
mail($sendTo, $subject, $message, $headers);
?>
Attach Code
Regarding the ActionScript 1.0/2.0, this is what I put for the FORM:
onClipEvent (data) {
_root.nextFrame();
}
-------------------------------------------------------------------------------
This is what I put for the SUBMIT button:
onClipEvent (load) {
form.loadVariables("analysisformphp.php", "POST");
}
-------------------------------------------------------------------------------
And regarding the PHP, I made a separate file for the PHP scripting. It is as follows:
<?php
$SendTo = "art.design@comcast.net"
$subject = "My AnalysisForm Reply";
$headers = "From: " . $_POST["household"];
$headers = "From: " . $_POST["water supply"];
$headers = "From: " . $_POST["softener"];
$headers = "From: " . $_POST["bottled water"];
$headers = "From: " . $_POST["comments"];
$headers = "From: " . $_POST["name/business"];
$headers = "From: " . $_POST["address"];
$headers = "From: " . $_POST["city/state/zip"];
$headers = "From: " . $_POST["phone"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
mail(recipient, subject, message, other headers);
mail($sendTo, $subject, $message, $headers);
?>
View Replies !
View Related
Form Submit
Hey everyone, I'm working on a strange project, a form to submit from a different server.
I'm having a problem with the upload function of the form in flash, I think the code is ok, but flash don't send the path of the selected image, only the name, so I can't fill the file imput with javascript, is any way to show the path of the selected image in flash??
Thanks
View Replies !
View Related
Help With Form Submit
i searched and thought i found what i was looking for but couldn't get things to work so if someone could help with what i think is a simple problem for experienced scripters, i'd really appreciate it.
i have an html form that looks like this:
Code:
<FORM action="http://domain.com/article.asp?id=51&article=1" method=post>
<INPUT id=prod_type type=hidden value=View name=prod_type>
<INPUT id=prod_type type=hidden value=dispSub name=prod_type>
<INPUT id=ProdId type=hidden value=3 name=ProdId>
<INPUT type=submit value="Submit">
</FORM>
i need to duplicate this in my flash button. i tried these but neither of them works:
Code:
on (release) {
subscribe = new LoadVars();
subscribe.prod_type = "View";
subscribe.prod_type = "dispSub";
subscribe.ProdId = "3";
subscribe.send("http://domain.com/article.asp?id=51&article=1", "_blank", "POST");
}
and
Code:
on (release) {
var prod_type:String = "View";
var prod_type:String = "dispSub";
var ProdId:String = "3";
getURL("http://domain.com/article.asp?id=51&article=1", "_blank", "POST");
}{
View Replies !
View Related
Submit Form
Hi, I'm new in flash and this forum and would appreciate information on how to submit a form into an e-mail, what is the actionscript to put on the submit button. Thanks in advance.
chinolium2@hotmail.com
View Replies !
View Related
Help To Submit A Form
Hi. Hopefully a simple question for you.
I am simply trying to create a form. I have two boxes (called field1 and field2 for this example) and a submit button. All i need is to build the swf file so when i click the submit button, the values of the 2 text boxes are passed to a PHP page. The method should be POST rather than GET.
The thing i am stuck with is passing the values.
Can anyone point me in the right direction?
Thanks
View Replies !
View Related
Form Submit On Enter - HELP
I am having a problem that I cannot find supporting documentation for and can't make work no matter how much I fiddle with it:
I have a form in Flash 5, single text input field and a button to submit the form (GetURL) for a search query. I want to make it so the form will submit when the "Enter" key is pressed.
I've tried variations on the code provided in the ActionScript manual, but nothing seems to do this apparently simple thing...
Any suggestions would be appreciated.
View Replies !
View Related
Form Submit Button Help
ok, so I'm a n00b when it comes to flash, but I'm trying to learn...
I have a flash form with a submit and clear button, but the button is not working.. No idea why..
Basically what I need(could not find) the scripting code to pull another part of the flash doc.
Bsically I have a form, when you hit submit it checks the form to make sure it was filled out correclty and it it was it pops up a msg saying Thank you etc.
If you did not fill it out correctly it pops up a message and tell you to fill out the proper field according to whatever error..
Here is a screenshot of my form:
http://12.224.237.169/temp/flash.jpg
Here is my form in action:
http://12.224.237.169/contact_test.shtml
My code that I have:
Code:
on (release) {
if ((txtName == "") || (txtName.length<3)) {
setProperty ("popup", _visible, "1");
popup.message = "Please fill in your name";
} else if ((txtEmail == "") || (txtEmail.length<5)) {
setProperty ("popup", _visible, "1");
popup.message = "Please fill in you're email address";
} else if (buscarroba == (-1)) {
setProperty ("popup", _visible, "1");
popup.message = "Please fill in all fields";
} else if (buscapunto == (-1)) {
setProperty ("popup", _visible, "1");
popup.message = "Please fill in all fields";
} else if (message.length<10) {
setProperty ("popup", _visible, "1");
popup.message = "Please fill in all fields";
} else {
loadVariables ("contactar.asp", "", "POST");
setProperty ("popup", _visible, "1");
popup.message = "Waiting for server. . . ";
}
}
I have ASP, and PHP installed on the server.
Thanx for the help!
View Replies !
View Related
Form Submit Button
I am using a CGI script to handle the input boxes on a form.
But is there a way of preventing a page appearing that confirms your submission??
I know you have it open as _blank leaving your flash movie in place, but can even this new window be prevented?
I would like the details to be submitted then simply have a small MC appear on the screen to thank them and tell them its gone successfully.
Can this be done?? If so how?
View Replies !
View Related
Form Submit Action
OK..OK..I've given up on the check boxes, but I'm having problems with my submit button now, I'm using the action shown below:
loadVariablesNum ("http://cgi.xxxx.com/cgi-bin/sub/form.cgi", 0, "POST");
It works fine when I test it off my hard drive but will not work when its uploaded and tried on the net.
The form does work both off hard drive and on the net IF I use the GetURL action instead, but I wish to use the loadVariables action as it doesn't require a "confirmation" window opening up.
Anyone tell me why the the loadVariables doesn't work on-line? and if not, is there a way I can use the GetURL action but prevent the movie opening a confirmation window?
View Replies !
View Related
Submit Form And Variables
sory if this has been asked before just could not find it.
I need to send variables to a script but not pop open a new window or reload this one. I am not using text fields just variables from the movie
editMeetingId=room1
editMeetingRoom=12356
getURL("http://macdaddy:8080/servlet/reservationServlet?action=DELETE&id="+editMeetingI d+"&room="+editMeetingRoom+"");
this opens a new window
I have tried POST and GET with same resolts
thanx dave
View Replies !
View Related
Form Submit In Flash 5
Hi all,
I am trying to make a form on my site that allows the user to enter some information and comments and have that submitted. The idea I"m looking for is like the html coding <form method="post" action="mailto:who@ever.com" enctype="text/plain">
Any ideas on how to do this ?
Thanks
View Replies !
View Related
Help With Email Submit Form
Hey everyone.
I am looking for a solution to a problem.
_I need to create an imput field for email submission on my site. I will use the emails to send my e-zines and bulk emailings.
_Can it be done in flash without just launching the users email application?
_ Anyone know any good tutorials for an intermediate flasher?
View Replies !
View Related
Resume Submit Form
Anyone know where I can find a form to submit a resume that also allows you the ability to attach a file (you know like, "Please attch your Word or PDF resume)?
Any language would be fine, be it PHP, Javascript, whatever. But a Flash file that could do this would be awesome, beggers can't be choosers though.
Any help would be greatly appreciated.
View Replies !
View Related
Form Submit Button
i have a form, on it theres an email field, on the submit button i need some sort of action that make sure that theve entered a vaild email, in other words, an email address with @ in it.
View Replies !
View Related
Submit Info Form Help
i need a little help with a form im using for my current site
the formitself works fine it has several questions, age, dob etc.
i have a working clear button, but the problem is i cant seem to get the submit button to work
firstly i need to know the script for the submit button, and a small explination of how it works aswell if you can
ill submit the script im using in a wee while if you can help me from scratch then that would be great
thank you very much
Max
View Replies !
View Related
Submit Form Challenge
hiya got a tricky one i think
ok ive had created for me a submition form that still doesnt seem to work i think ive found out why, theres no script for it
ok the submission form is this one
I want the information filled in from the submition form sent to my direct email address
sales@federalwelder.com
is it possible to do this/ how do got about doing this/can you give me the script i need for this ?
muchly appreciated thanks a lot
View Replies !
View Related
PROBLEM With A Form Submit -PLEASE HELP
I'm using flash mx2004. trying to make a submit button to send the data to an email address. The code I wrote is this:
on (release) {
if (txtName ne "" and txtEmail ne "" and txtDetails ne "") {
loadVariables (mailto:"tyroneclark@hotmail.com", 0, vars="POST");
gotoAndPlay("valid");
else() {
gotoAndPlay("invalid");
}
end if() {
end on()
}
}
But when i check it for errors, it comes up with this:
**Error** Scene=Scene 1, layer=content, frame=1:Line 3: ')' or ',' expected
loadVariables (mailto:"tyroneclark@hotmail.com", 0, vars="POST");
**Error** Scene=Scene 1, layer=content, frame=1:Line 6: 'else' encountered without matching 'if'
else() {
**Error** Scene=Scene 1, layer=content, frame=1:Line 7: ')' expected
gotoAndPlay("invalid");
**Error** Scene=Scene 1, layer=content, frame=1:Line 9: Syntax error.
end if() {
**Error** Scene=Scene 1, layer=content, frame=1:Line 10: ')' expected
end on()
**Error** Scene=Scene 1, layer=content, frame=1:Line 9: Statement must appear within on handler
end if() {
**Error** Scene=Scene 1, layer=content, frame=1:Line 10: Mouse event expected
end on()
**Error** Scene=Scene 1, layer=content, frame=1:Line 11: '{' expected
}
**Error** Scene=Scene 1, layer=content, frame=1:Line 12: Unexpected '}' encountered
}
Total ActionScript Errors: 9 Reported Errors: 9
Can someone PLEASE correct my code?
Thanks for any help
Tyrone
View Replies !
View Related
Email Submit Form
does anyone have a good example (.fla)
of a flash form?
i'm trying to create a form where the
user enters name, contact, ect.....
and when they hit submit, the form
will email a few different addresses.
i'm assuming i need to use .php, but
its not nessassary.
any help would be much appriciated.
View Replies !
View Related
I Can't Get My Submit Form To Work..help Please?
Hi,
I was wondering if someone could help me to get my submit form on my website to work? I am working in Flash 5 and I used this tutorial on flashkit to create my form:
http://www.flashkit.com/tutorials/In...-807/index.php
The two problems that I have:
1) I cannot get the information contained in the submit form to be sent to the email address that is specified in the script. (I have tried both suggestions by Matthew in his tutorial by switching 'mailuser' to 'targetpage' and 'recipient' to 'redirect'. Neither of which seem to solve this situation.
2) I did not get the part in Matthews tutorial about setting up the script so that the 'thanks, your information has been submitted' message would open within the same flash movie. I know that right now it is setup to load into a 'thanks.htm' file. How do I get it so that it does NOT open an external window with a thanks message and the movie just will go to a different frame to tell the user thanks. Is that possible? If it is not possible and I have to have a thanks.html open then I need some help getting that to work. I created a thanks.html page and uploaded it to my server. I put the page in both my cgi folder and my html folder but the page wont come up when directed.
I have attached my .fla file. Can someone please help me with this?
thanks in advance...
View Replies !
View Related
Help With Submit Button/form
hi. im trying to make an input text field with a submit button.. what it would be for essentially would be for a person to type in their email address and hit send and have an email or message be sent to an email address with whatever was typed into the the text field... any ideas? thanks.
View Replies !
View Related
Submit A PHP & Javascript Form.
Hi,
I am trying to make a button that loads a secret website.
The code I was supplied with was
<form name="videoform" action="http://www.secret.com/cd/video.php" method="post">
<input type="Hidden" name="auth" value="Kr345rfTG123RfasdreWdcx890">
<a href="javascript: document.videoform.submit();">Click here to see video</a>
</form>
How on earth do I put all that into flash make and make a button? I am new to actionscirpting and I cant see how to do it. Please help.
View Replies !
View Related
Simple Form Submit
Heya, I have a form in flash with 3 txt fields and a submit button. When I fill in the lest text field, I would like for me to be able to press return on my keyboard and the form execute the submit button... I just cant remember how ><
Thx all
XFM
View Replies !
View Related
Submit Form To Email
Hi Guys!
I am trying to make a form where the user can enter a message and hit submit and the info is emailed to me. I have a book that explains this in Flash MX Pro and regular. I have Pro but for some reason I do not have the additional attachments for the WebServiceConnector that it is showing. So I attempted to do it through actionscript and no matter what i can not get it to work.
I created an invisible textinput for my "emailTo_txt" with my email in the text parameter. on an action layer I placed this code...
send_btn.onRelease = function() {
var targetLoadVars:LoadVars = new LoadVars();
var myLoadVars:LoadVars = new LoadVars();
myLoadVars.emailFrom = email_txt.text;
myLoadVars.emailTo = emailTo_txt.text;
myLoadVars.subject = subject_txt.text;
myLoadVars.message = message_txt.text;
myLoadVars.sendAndLoad ("http://www.forta.com/misc/flash2004tfts/submit_feedback.cfm", targetLoadVars, "POST");
targetLoadVars.onLoad = function() {
trace(this.success);
};
gotoAndStop("thankyou");
};
Does anyone know where I am going wrong?
Thanks!
View Replies !
View Related
Submit Form Button?
Let me cut straight to the problem. I'd like to make some type of a form that allows web users to click the submit button at the bottom and have the information entered into the input fields sent to an email address... but without it pulling up an email server or program on their end. A simple submit form button. I'm completely oblivious to what would be needed both in flash, and on the hosting site. Any and all help would be greatly appreciated. Thanks.
View Replies !
View Related
Submit Form Where To Put How To Changed It
HI to all, well i have a problem
i made that tutorial --> http://www.tutorialized.com/tutorial...-Easy-way/2318
in the send mail button, the scritp in that way :
on (release) {
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "contacto@imotionperu.com"; --for example i dont know what to put inside those ("@") (".")
}
else if (!FirstName.length) {
EmailStatus = "Please Enter your name before Sending";
}
else if (!ToComments.length) {
EmailStatus = "Please enter some text in you message";
}
else {
loadVariablesNum ("ASPMail.asp", "0", "Post");
EmailStatus = "Sending... one Moment .. or two.. sometimes it's faster then other times";
}
}
then i made the ASP page, but i dont, know where to put it, in the same folder of "Contacto" where is the form, or maybe in another folder in my host
and this is my ASP code
<style type="text/css">
<!--
body {
background-color: #000000;
}
-->
</style><table width="768" height="550" border="1" align="center">
<tr>
<td><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="768" height="550">
<param name="movie" value="contactenos.swf">
<param name=quality value=high>
<embed src="contactenos.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="768" height="550"></embed>
</object></td>
</tr>
</table>
<%
FirstName = Request.form("FirstName")
LastName = Request.form("LastName")
City = Request.Form("City")
Email = Request.form("Email")
Company = Request.form("Company")
Comments = Request.form("Comments")
HearAbout = Request.form("HearAbout")
strName = "Contacto"
strEmail = "contacto@imotion-peru.com"
strSubject = "Información, Consultas"
strBody = ToComments & HearAbout & Company
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.RemoteHost = "contacto.imotion-peru.com"
Mailer.FromName = FirstName
Mailer.FromAddress = Email
Mailer.AddRecipient strName, strEmail
Mailer.Subject = (strSubject)
Mailer.BodyText = strBody
if Mailer.SendMail then
Response.Write "_root.Mail.EmailStatus=Complete - Your mail has been sent"
else
Response.Write "_root.Mail.EmailStatus=Failure - Your mail was not sent - errors"
Response.Write Mailer.Response
end if
%>
sorry for the large post, if someone can help me i'll be gratefull
P.D> the idea is to receive the in my email the form info
View Replies !
View Related
How To Submit Form From Flash To Php
hi,
i have a search keyword field in my flash and the logic is
the result will be displayed in my search.php which is outside the flash file already.
my problem now is, i dont know how to do it.
is this something similar to a html form code
Code:
<form action="search.php">
<input textfield name="" value>
</form>
?
need help please.
hope you could help me with this.
thanks!
View Replies !
View Related
Auto Submit Form
how do you use flash to open a web page
fill in either blank info or something for the subject and message
and submit the from on that web page
ex.
Open up a myspace message window,fill in the message [none]
and submit that to the user
??? any help is greatly appreciated
View Replies !
View Related
Form Submit Button
Do you guys know what code should I write for a submit button in a form?
I've used input text and variables for each text field, and I have the button but i don't know how to send the information of this variables to my mail: asmarin23@yahoo.com.mx
you can see the site at this url:
http://www.planetafunbec.com/inscribete.htm
Thanks
View Replies !
View Related
Submit Form In Flash 8
I'm having an issue wherein, I'm trying to create a form in Flash 8, but some reason it's not working as it should. I followed some exercises out of a book and created their site, and the code worked like a charm. When I tried the code out on my own site, it decided it wasn't going to work. On the contact.fla form (under Book Exercises in the link I provided below) the submit button shows up, and all is well. On the vanilla-chai_01.fla file (found under Vanilla Chai), no submit button shows up. And I cannot for the life of me figure out why.
If anybody could take a look and tell what's wrong, I'd greatly appreciate it. The issue has stumped fellow classmates, and even my professor. He suggested simply starting over, which I did. That didn't seem to solve the problem, either.
I have the file located on my server at http://www.vanilla-chai.nu/files/presentapril18.zip
View Replies !
View Related
Help With Creating Submit Form
Hello. I'm working out of Flash 8 right now on a template that my brother sent over to me. I need help with the scripting on how to submit the form. It consists of the three basic areas: name, page, and message. I'm not sure on the proper steps on how create the submit form so that people who visit my website can fill out the form and then have it sent to my e-mail.
The .FLA file can be found at: http://www.knghoops.com/HelpSubmit.fla
Thanks in advance!
View Replies !
View Related
Submit Picture With Form
Hey everyone,
I've searched the forums and I'm having a hard time finding any information on creating a form that collects a users data and then allows you to submit a picture. I'd like the user to be able to click a Browse button, locate the image and then submit the form with the data and image. All of this would then be emailed to me.
Could anyone offer any suggestion? Is this even possible?
Thanks,
View Replies !
View Related
Email Submit Form
Can anyone explain the steps to creating a simple submit email form. Not a long detailed form just a simple email input space and a submit button. how do I create and connect it to an email to retrive user info. tks
regards
ken
View Replies !
View Related
|