Forum Moderators: open

Message Too Old, No Replies

Simple Form Handling

For an inexerienced Flash User

         

Krapulator

2:44 am on Sep 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a form in flash which asks for an email address and then submits it to another page. The email field is called "sEmail" and the actionscript I have applied is as follows:

on (press) {
getURL("http://www.example.com/enquiries/email_add.asp?sEmail="+ sEmail, "PopUp");
}

However this is not sending the email address in the Querystring. It is simple requesting the page [example.com...]

Is there something obvious and simple that I am doing wrong?

Many thanks in advance.

firestarter

11:18 am on Sep 21, 2004 (gmt 0)

10+ Year Member



Hey there ....

U r not doin anything wrong. This should work. Just insert a trace, and check the output. like this:


on (press) {
trace(sEmail);
getURL("http://www.example.com/enquiries/email_add.asp?sEmail="+sEmail, "PopUp");
}

Now test the file. If u clic submit w/out entering anything, u'll get the output as *undefined*, and the popup will have the url

[example.com...]

Now type an emailid, and press submit. U should get the following:

[example.com...]

Hope this helped?

Regards.... Firestarter

Krapulator

2:39 am on Sep 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Firestarter.

on (press) {
getURL("http://www.example.com/enquiries/email_add.asp?sEmail="+_root.sEmail, "PopUp");
}

seems to work quite well too.

Theres certainly a lot more to flash than first meets the eye.