Text Submit With PHP
ok the problem I'm having is I'm loading an exturnal swf into a movie and I'm trying to submit its info from it... I have it loading in level2 but for some reason the componant function wont call it. the code I'm calling is the"// Button actions for "Submit" " where it says _level2.id.name_txtanyone have any other solutions?if needed I can attach the FLAthanks,Aaron// Set tab ordermessage_txt.tabIndex = 1;// Button actions for "View Entries"function view() {gotoAndPlay("loading");}// Button actions for "Clear"function clear() {message_txt.text = "";}// Button actions for "Submit"function submit() {name = _level2.id.name_txt.text;message = message_txt.text;message_txt.text = "";gotoAndPlay("sending");}// Stop the moviestop();
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 07-08-2005, 10:24 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Validate Text And Submit The Text On To A New Field
Hi am having problem wiht my validation
im tryin to validate a text, which does the action below:
function validateMessage () {
var arr = []; // create an empty array
var msg = msg.text; // set var to the current text field
arr = msg.split(" "); // split each word into our array
if (arr.length > 10) { // if the array is longer than 10
// return a value of false to var istrue
} else { // if the array is less 10
// return a value of true to var istrue
}
but if i try to use the on realse method which send the text on to new screen and i use GotoAndStop (frame) to send it to the next frame.
I tried this bu t im getting problem, i can't seem to make the validation work correctly, it should only allow you to go through if you enter less then 10 words, if not it would send out and error message which is
error_msg.text = "You've exceeded 10 words, Please Try Again"; // do something
Use Buttons To Submit Text To Input Text Help Please
i am want to make a movie for an interactive whiteboard where using a keyboard can be a pain, so i want to use a button to place a letter and then press enter on the stage.
but i am struggling to get going
i figure it has to be something like this
a_btn.onRelease = function () {
a = input_txt;
}
var a:String = "a";
but something is wrong and how do i do an enter btn
thank
i have so much to learn
Submit Input Text
how do I send the value (the content) of "input text" to asp server? or, what kind of script should be written on the submit button?
thanks
polus
Input Text Submit
Hi,
So this is what I am trying to do. See the HTML for the correct version. I want the flash file to do the same. I can only get it to go to the url but not submit.
Can anyone help?
thanks so much
Submit Text Field
I'm making a tutorial video and on the end I would like a page that says "Any Quetions?" with a text field where the user can type their question, and a field to enter their own email so we can reply. When the submit button is pressed the text needs to be sent to someone at my company via email or something like that. How can this be done? I can't find a starting point for this in tutorials. Please Help! Thanks in advance.
How Do I Submit Input Text?
Hello,
I am currently making a flash myspace. I almost have everything done except the comment box.
For all you people who have made a comment box on myspace you know that you have to add quite a lot of HTML variables and such to the code.
But I am stuck with making it in flash.
This is my regular code for the comment box.
Code:
<form method="post" action="http://collect.myspace.com/index.cfm?fuseaction=user.confirmComment">
<input type="hidden" name="friendID" value="84759643">
<textarea name="f_comments" wrap="VIRTUAL"></textarea>
Now how do I do that in flash? I have my input text made with a variable called "comment" and a button made. All I need help with is the actionscript itself.
Thank you,
Artem
How Do I Submit Input Text?
I am currently making a flash myspace. I almost have everything done except the comment box.
For all you people who have made a comment box on myspace you know that you have to add quite a lot of HTML variables and such to the code.
But I am stuck with making it in flash.
This is my regular code for the comment box.
Code:
<form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment">
<input type="hidden" name="friendID" value="57844960">
<textarea name="f_comments"></textarea>
</form>
Now how do I do that in flash? I have my input text made with a variable called "comment" and a button made. All I need help with is the actionscript itself.
Thank you,
Easah
How Do I Submit Input Text?
I am currently making a flash myspace. I almost have everything done except the comment box.
For all you people who have made a comment box on myspace you know that you have to add quite a lot of HTML variables and such to the code.
But I am stuck with making it in flash.
This is my regular code for the comment box.
<form method="post" action="http://comments.myspace.com/index.cfm?fuseaction=user.ConfirmComment">
<input type="hidden" name="friendID" value="57844960">
<textarea name="f_comments"></textarea>
<input type="submit">
</form>
Now how do I do that in flash? I have my input text made with a variable called "comment" and a button made. All I need help with is the actionscript itself.
Thank you,
Easah
Submit Text For Ticker
I recently saw a website that had a very nice ticker, you could write something in an INPUT TEXT FIELD, Submit it, and then it would be displayed for about 5 secons in a near window. Does anybody knows how to do this?
Using Enter Key To Submit Text Answer?
I have an activity in which the user submits an anser into a text field - my question is: Is is possible to use the enter key to submit the answer?
Thanks in advance
Ol
Email Submit Via Imput Text
i'm trying to set up a system where the user inputs his email into a input box and clicks a button to send their email to a predeterminded adress so they can be contacted later.
[f8] Submit Data To Text File
Hey!
I was wondering if anyone could give me a hand.
I want to be able to have people submit their name and e-mail address on my site, then have the information stored in a simple text file on my server, so that i can retrieve the data and use it to for various promotions, i know this will involve using php, but i wondered if anyone could just give me a little pointer on where i could find more out : )
Thanks in advance,
Regards,
Curt.
Input Submit To Dynamic Text
I want to have a user type something into an input box...
press enter...
and print what they just wrote on the input box in a dynamic text box. I also want to have the input box cleared out when enter is pressed... I have a submit button with the following on it
ActionScript Code:
on (release, keyPress "<Enter>") {
command += newline;
command += input;
input = "";
}
Any ideas why this doesn't work....
Just for any help this may bring (to show it's not the button or whatever)
the following script does work (well not the input part) but does print out an unchanging sting on a newline
ActionScript Code:
on (release, keyPress "<Enter>") {
command += newline;
command += "some random junk"
input = "";
}
Help... if you can thanks
Can A Submit Button Submit 2 Different Forms?
Can a sumbit button submint 2 emils with different info on one click?
say one set of information to the user 1 containing data A
and one set of information to user 2 containing data B
Thanks -
ZG
Clearing Input Text Field Upon Submit
Hello:
I have a button that submits input text field data to a text file. Once that button is pressed, how do I clear the data from the text field?
Thanks!
Text Fields - Pressing <enter> To Submit And...
Hello,
Regarding text fields, such as a login screen like at hotmail.com... is there any way to get flash to load the text field --ready to be typed in-- with the cursor flashing in the "user name" field? Also, once the password has been entered, is it possible to add a script that will allow you to merely press <enter> to submit the login info withOut having to add a submit button in order to use an "on (key<enter>) {"?
thanks for your input!
Submit Form Vars That Need To Be Sent To A Text File
I have a submit form with 3 variables (name,profession and email address).
I wonder if it is possible to save them in a text file in the server (each time a client suscribes) using only Action Script.
Or maybe send an email with that info ( so I can later put it in a file).
Is this possible?since I don´t know anything about PHP.
Hope you can help me.
Thanks in advance for your time and help.
[F8] Input Text Field To 'submit' On 2nd Return?
Hello there.
I've looked and looked for a solution to this and ALMOST got it working, but it's not behaving reliably enough.
I've got an input text field that I want to limit to 2 lines. I've set Selection.focus to the text field so you can just start typing when the field appears. If you press enter, you jump down to the second line (in the same field). If you press enter again, you 'submit' your text. This all works as intended - unless you click on the text field before typing. If you do that, when you hit enter the FIRST time it submits the text.
Currently I'm counting the occurences of '
' using indexof and submitting the text if the count is 2 or greater. Why it submits after 1 return, I do not know.
Is there a more elegant way to just 'get' the number of lines (rows) in an input text field (in AS2)?
If so, cheers in advance.
Submit Form Including Ui Component And Input Text
aaaargh!
I've been working with the example from macromedia (the one called order_form.fla) on UI components in a form and am completely frustrated. I have altered their example to submit to my existing cgi script and can get the UI combobox component to work but cannot get a simple Input Text field to pass the data to the cgi!
My action script is included below. I'm sure that it is a simple oversight on my part but I'm at a loss as to what's wrong. I've simplified the example to see if I can get it working. I have only two fields that I'm working with right now - "State" and "firstname". "State" is a combobox and only includes a few numbers right now for demo purposes - it submits data fine. "firstname" is a simple "input Text" box with an instance name of "firstnameIn" and a variable name of "firstname" - it does not transmit the input value to the cgi. I don't need replyData to do anything other than show that the form data has been received by the server - no need for feedback.
I just can't see where I've screwed up! Can you help?
Action Script:
//
// Change the value of sumbitURL to the URL
// of the CF or ASP file on your server.
//
submitURL = "http://216.130.169.5/cgi-bin/autodebt.cgi";
function onReset() {
StateIn.setSelectedIndex(0);
message_txt.text = "";
submit_btn.enabled = true;
}
function onSubmit() {
// Create a new LoadVars instance for the form data
formData = new LoadVars();
// Initialize formData variables:
formData.firstname = "";
formData.State = "";
// Gather the order information into a LoadVars instance.
formData.State = StateIn.getValue();
// Create another LoadVars instance to receive the server's reply
replyData = new LoadVars();
// Initialize reply variable.
replyData.State = "";
// Specify a function to call when this new instance receives the reply.
replyData.onLoad = handleReply;
// Submit the order data
formData.sendAndLoad(submitURL, replyData, "post");
// Tell the user what's happening.
message_txt.text = "Submitting request, please wait...";
}
function handleReply(success) {
if (success) {
message_txt.text = "Your request was received:
";
} else {
message_txt.text = "There was a problem submitting your order. The server may be down or not responding.";
}
}
How Can I Have Input Text Fields Submit To Email On A Button?
im self tought amature flash designer and the last piece to my website is having all designated input text fields go to my email on the one touch click of a designated "send" button.
i cant figure it out. basically what i have is multiple input text fields all in one keyframe that i want from the click of my send button go to my email within flash. any help would be greatly appreciated.
if you want to see what im talking about goto www.parkagencywest.com and see the "financing" section. as of now the send button doesnt do anything
Compound Conditional Input-text With Submit Button Problem
I'm sure I have this almost right but it won't work - I have searched but can't quite find the solution. I'm sure it is really simple so any help is greatly appreciated.
It is for an educational interactivity derived from these rules:
Quote:
Quantity Ordered/Discount Applied
300 – 350 = 7%
200 – 299 = 5%
100 – 199 = 3%
Less than 100 = No discount
In the animation there are 4 text input boxes (input_'x') each with their own submit button (submit_'x'_btn) beside them. The pupil will enter a 'quantity' number into each box, hit the submit button and a movieclip will play to represent the '% discount' resulting (say, five_mc).
So here is my pidgin code so far, it should make sense as to what I want to happen.
Code:
submit_1_btn.on (release) {
if (input_1<=350 && input_1>=300) {
_root.seven_mc.play();
} else if (input_1<=299 && input_1>=200) {
_root.five_mc.play();
} else if (input_1<=199 && input_1>=100) {
_root.three_mc.play();
} else if (input_1<100) {
_root.nodisc_mc.play();
}
If someone can sort that into woarkable code I would be very thankful, and for bonus points an 'Invalid Entry' rule would be amazing.
Thanks in advance
Scott@AOKLearning
edit: nearly forgot,
Flash8 Pro
Win XP
must be published in Player 7
Auto Submit From Flash Form Cfinput Text Field
I have a Flash Form in ColdFusion 8 that consist of a CFInput Text field, and a CFGrid. When the user scans a barcode, I want the form to validate that there is a value, then submit the form (without using a submit button).
Since I'm still a newbie at ActionScript 3.0, I was hoping someone could shed some insite. Should I use the onBlur action in the cfinput tag? What actionscript commands do I need to force a submit?
Text Field For Entering Emaill Address And Submit Button
Can anyone tell me a straight forward way to create a text field (where a user can enter an email address). Then, to the right of the text field would be a button that says "Sign me up!" . Then the user hits this button and an email is sent.
Parse "submit" Text On Contact Page?
I have a contact page on my flash site (www.amberbutler.com) that sends me an email generated via PHP. I do not have access to the code as it is provided by my host (godaddy). All the flash side does is name the variables and send them to the form. Then, I get emails like this:
Quote:
ad: <TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="futura" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">genes</FONT></P></TEXTFORMAT>
email: <TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="futura" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">erasedforprivacy@yahoo.com</FONT></P></TEXTFORMAT>
message: <TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="futura" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="futura" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">CUTE. I am proud of you amber!! i love you.</FONT></P></TEXTFORMAT>
name: <TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="futura" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">Kelsy</FONT></P></TEXTFORMAT>
As you can see, it's rather difficult to read but I don't have a clue where to begin fixing it. If it was just a few of the same character, sure, but I don't know how to parse out all of that. Any suggestions?
Thanks,
sogj
How To "clear" Text Fields On Clicking Submit?
so i have a login and password area.
when the user clicks login or submit.... I need to know how I can get the fields to clear.
here is my AS **NOTE: I have given my text boxes variables called "one" and "two"
Code:
stop();
this.clientEnterBtn.onRelease = function() {
if (clientId.text == "" || clientPass.text =="") {
gotoAndStop (31);
} else {
getURL("https://mylinkforthedatabasegoeshere.asp", "_blank", "POST");
}
}
Thanks for the help!
ZG
Submit Help
Hey, I was wondering if any of you know how to have text feilds sent to an e-mail with a click of a button. If that is not able to be done, how can i have infomation sent to a spot where it is seperated from the accual program. Thanks for the time!
P.S. the fla. is too large to poast
Submit PHP
When I build a sumbit form where do I plug in the PHP, so it's in a database - then routed to my e-mail?
what is the code look like for all that stuff:
-The Actionscript for the submit button.
-The PHP for for the info. or actionsript (not sure)
-form input - click submit - to it ending up in my e-mail
what goes on?
Thanks for your time,
JT
ATL
Submit
Hey, If u wanna find a place to submit yr flash cartoons for publicity go here www.fantasymage.com an awesome flash site. Just send an e-mail to flashadmin@fantasymage.com with yr name and the flash title.
Help With Submit
can someone help me with my flash form submit?
i've tried and search on google but couldn't get it to work for the last 2 days.
i have a link that pops up a survey form with radio buttons and text input but when i hit the submit button nothing happens.
here is my actionscript for the button.
Code:
stop();
submitURL = "http://thecandidgroup.com/ces/mailer.php";
function onSubmit() {
// Create a new LoadVars instance for the form data
formData = new LoadVars();
// Initialize formData variables:
formData.referred = "";
formData.contact = "";
formData.temp = "";
formData.greet = "";
formData.doc = "";
formData.question = "";
formData.refer = "";
formData.surveyor = "";
formData.certificate = "";
// Gather the order information into a LoadVars instance.
formData.referred = referredGroup.getValue();
formData.contact = contactGroup.getValue();
formData.temp = tempGroup.getValue();
formData.greet = greetGroup.getValue();
formData.doc = docGroup.getValue();
formData.question = questionGroup.getValue();
formData.refer = referGroup.getValue();
}
// Create another LoadVars instance to receive the server's reply
replyData = new LoadVars();
// Initialize reply variable.
replyData.reply_referred = "";
replyData.reply_contact = "";
replyData.reply_temp = "";
replyData.reply_greet = "";
replyData.reply_doc = "";
replyData.reply_question = "";
replyData.reply_refer = "";
replyData.reply_comments = "";
replyData.reply_surveyor = "";
replyData.reply_certificate = "";
// Specify a function to call when this new instance receives the reply.
replyData.onLoad = handleReply;
// Submit the order data
formData.sendAndLoad(submitURL, replyData, "post");
// Tell the user what's happening.
message_txt.text = "Submitting survey, please wait...";
function handleReply(success) {
if (success) {
message_txt.text = "Your survey was received:
";
message_txt.text += "referred by: " + replyData.reply_referred + newline;
message_txt.text += "contact: " + replyData.reply_contact + newline;
message_txt.text += "temp: " + replyData.reply_temp;
} else {
message_txt.text = "There was a problem submitting your survey. The server may be down or not responding.";
}
}
Submit Name Button
hi,
i'm trying to add a submit button that should pick up the value of a field (email address) that the user should fill and send it to a url where there's a database to collect these email addresses (the client has provided me with the url that should take care of the adding process); what is the best way to do that? keeping in mind that i don't want to use "get url" and send them to another page once they submit, i want to move to a different frame in the same fla movie.
any help would be very appreciated.
Submit Forms
Greetings,
I was wondering if someone could send me a tutorial or point me in the directions for Flash submit forms. This is like my last hump and I cannot seem to get ahold of. But anything will be appreciated..
Submit Forms
Hi everyone.
Can anyone point me to somewhere where i can learn how to put together a submit form. Unless someone can explain via this message board.
Thanks
Submit | Reset
I can't get my submit and reset FLASH buttons to work when embeded in my PHP form. Here's what I have for the submit button:
on(release){
getURL("handleForm.php","","POST")
}
And this for my reset button:
on(release){
input = ""
textarea = ""
}
But it only send me empty variables everytime. These buttons work when I place them in my Flash form, but not when embeded. Can anyone point me in the right direction??
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]
How To Submit Variables From Swf To Swf?
hi all
i have there a prob with my dynamic flash
i open the movie with index.swf?link=thislink...
so in the first pic is some action script that choose 1 of 3
other movies to load this into the current index.swf...
but in this moment i lost my link variable from the html object tag ...
how i can give this variable from the index.swf to the loaded swf
thanks for help
forgive me my english im german :P
Hit Return To Submit
can someone please tell me how to assign the return button to act as though i've clicked on a submit button?
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
Submit Email
Hi how I submit email
Nothing special just text feild and submit button
so once emailaddress was typed in in textfeild and submit button is pressed it send email to my emailaddress
can anyone upload fla that would be great
Submit Button..
hey, does anyone out there know the answer to this??
how the hell do ya connect a submit button
like this:
name _____________
e-mail ____________
comments____________
____________
___________
Submit
Then all the above info is sent to your e-mail!
I really want this for my personal site does anyone know?
Thanks.
Submit Page
How do I get my submit page to work? i need all the help I can get.
Here is the file and the way I want it to look.
Thanks,
Submit Button
All I want to do is create a submit button with only one input text (email) and I want it to be sent to me via email. Also is there any way of doing this without using php, cgi or asp?
thanks, em
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,
Help (submit Forms) ...:)
hey.. everyone:
I´m a flash user, not a very good one.. but, i like it a lot, anyway i would like to make a mailing list in my site, but i dunno how to make a data base, or a submit form, who could help me with that.
I also would like to know what you people think of my site,
speed-addicction
thx,
Gabriel Lopez.....
SpEeD.............
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!
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
Submit Button?
Now what i am doing is there are a lot of items on a list, and then whenever a person is done checking items (they have to check 8) then the person clicks the SUBMIT button and it submits the results to me but it doesnt take them to an email. Just in review, after a person selects items that they want it and they click SUMBIT and it sends a message to my email or something saying what the person chose. Its sort of a poll that only i can get the results of. Is this possible and if so how do i do it. Sorry to be so demanding but i really need help.
Submit Button
I'd love a little help with this order form I am constructing.
The user fills in the fields, which sets variables, 33 of which I'd sent to an email address when the user hits the submit button on frame 3.
I'm sure it's simple, but I have never had to do it before.
I've sttached the .fla, please help.
|