<BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR> on (release) { getURL("../cgi-bin/my_mail_form.cgi","_blank","POST"); <HR></BLOCKQUOTE>
A clean form would look like this:
On (Roll Over)
Begin Tell Target ("mailer interactive01")
Go to and Stop (3)
End Tell Target
End On
On (Press)
If (email eq "")
Begin Tell Target ("mailer interactive01")
Go to and Stop (4)
End Tell Target
Else
Set Variable: "param_recipient" = "your_mail_account@your_server.com"
Set Variable: "param_subject" = "message from whatever"
Set Variable: "param_order" = "name,email,message"
Set Variable: "param_database" = "flash_yourfilename.txt"
Get URL ("http://your_server.com/cgi-bin/your_forms.cgi", window="_blank", vars=POST)
Play
End If
End On
On (Roll Out)
Begin Tell Target ("mailer interactive01")
Go to and Stop (1)
End Tell Target
End On
But this is only part of it. Keep in mind that you need to "collect" your data first, that means the variables you have specified start at the beginning of the scene and stay until the last frame of the scene.
OK, let's say the users have to fill in 'name'. The name variable MUST exist until you trigger the form data to be sent to your cgi. Many people clear the data of the variables too soon, that means you should give some 10 frames extra after triggering the data, because of the delay while the browser opens up.
In addition you need a JavaScript that enables your FLASH to open up a new window in your browser (but only for online forms, not for offline forms).
It's very tricky, I know, but I hope this helps a bit.
jens g.r. benthien
designer
http://www.sacalobra.de
----------//--
If you don't know how to dream you'll never be a designer.
----------//--
--------------------//--
We can't solve problems by using the same kind of thinking we used when we created them.
--------------------//--
Bookmarks