/ Forside / Teknologi / Multimedie & design / Flash / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Flash
#NavnPoint
bentjuul 4251
molokyle 1978
Klaudi 1488
jhvp 1265
pallenoc 1160
katekismus 1020
Fnollerpi.. 790
slander 510
Dr.Disco 500
10  Flash77 500
Forms in Flash
Fra : Protitude


Dato : 10-09-01 04:06

Can someone guide me through how to tell a form to go somewhere through
flash making it is easy, but I don't get how you get it to go to a script or
even straight to an e-mail address..

Thanks

Miles
(please cc any responses to gizwex@gizwex.com thanks again)



 
 
Michael Peo (10-09-2001)
Kommentar
Fra : Michael Peo


Dato : 10-09-01 09:15

If you know how it is set up in flash, all you need to do is to
pass your variables to some kind of script that handles actual
sending of the mail. This script would be an asp-script,
php-script, perl-script ore something similar. In my experience,
non of them is better than the others, its just a matter of
"flavor", and what kind of scripts you are allowed to run on your
server.
The actionscript in the flash-movie would look something like
this (action on submit-button):

on (release) {
loadVariables ("myFormMail.asp", "", "POST");
}

...On the release of the buttons, ALL the variables on the
timeline were the button resides. With this in mind, its a good
idea to make a form-clip, to make sure you only send the vars of
the form to the script.
A good idea would be to validate the vars before sending them.
This is quite simply done by letting the submit-button have an
action that sends the playhead to a frame with a validationscript
instead of sending the vars straight away, something like:

on (release) {
gotoAndPlay ("validate");
}

The submitbutton sends the playhead to a frame with a label
called 'validate'. on this frame your validation-script resides,
and it will send the playhead to one of two frames - one that
sends the vars to the script, and one thats tells the user that
something is wrong with the form, and it wasnt send.

// Your validationscript goes here, setting the var 'validation'
to either 1 ore 0 (true ore false) and then at the end of it:
if (validation == 1) {
gotoAndPlay ("sending");
} else {
gotoAndPlay ("error");
}

There is a lot of different ways to validate the content of a
form, depending on what kinda information you wish the user to
enter, so i wont go into the actula validation details here. The
actionscript-snippet above just checks if the var 'validation' is
true (1), ore not... it does not preform the actual validation.

/peo
www.bandage.dk

"Protitude" <cyberbur_n@yahoo.com> wrote in message
news:a6Wm7.68327$c8.35344982@news1.denver1.co.home.com...
: Can someone guide me through how to tell a form to go somewhere
through
: flash making it is easy, but I don't get how you get it to go
to a script or
: even straight to an e-mail address..
:
: Thanks
:
: Miles
: (please cc any responses to gizwex@gizwex.com thanks again)
:
:



Jesper Stevnhoved (10-09-2001)
Kommentar
Fra : Jesper Stevnhoved


Dato : 10-09-01 14:49

"Protitude" <cyberbur_n@yahoo.com> wrote in message
news:a6Wm7.68327$c8.35344982@news1.denver1.co.home.com...

> Can someone guide me through how to tell a form to go somewhere through
> flash making it is easy, but I don't get how you get it to go to a script or
> even straight to an e-mail address..
>
> Thanks
>
> Miles
> (please cc any responses to gizwex@gizwex.com thanks again)



Hi!

Your 'send' button action:

on (release) {
   recipient = "your@email.com";
   return_link_url = "http:www.yourpage.com";
   redirect = "http://www.your redirectpage.com";
   subject = "formmail feedback from your page";
   getURL ("http://cgi.web.dk/cgi-bin/FormMail.cgi", "", "POST");// or
whatever script you use..//
}


You set your txtboxes to input txt, and name them as variables: (e-mail,
address, name e.c)

Jesper Stevnhoved
www.jspr.dk

/


--
Posted from dc2.co1-es.ip.cybercity.dk [212.242.13.86]
via Mailgate.ORG Server - http://www.Mailgate.ORG

Protitude (13-09-2001)
Kommentar
Fra : Protitude


Dato : 13-09-01 08:27

I'd like to thank everyone for their responses, I'm sure they'll be very
helpful when I get some more time to try them out..
I appreciate it in any case..

Thanks,
Miles


"Protitude" <cyberbur_n@yahoo.com> wrote in message
news:a6Wm7.68327$c8.35344982@news1.denver1.co.home.com...
> Can someone guide me through how to tell a form to go somewhere through
> flash making it is easy, but I don't get how you get it to go to a script
or
> even straight to an e-mail address..
>
> Thanks
>
> Miles
> (please cc any responses to gizwex@gizwex.com thanks again)
>
>



Søg
Reklame
Statistik
Spørgsmål : 177501
Tips : 31968
Nyheder : 719565
Indlæg : 6408522
Brugere : 218887

Månedens bedste
Årets bedste
Sidste års bedste