;

PDA

Click to See Complete Forum and Search --> : sendformdata


simpelendidi
07-03-2003, 10:01 AM
I've used the sendformdata example of koolmoves to make a form in Koolmoves. I've also downloaded a mailingscript. But for my script to work I also have to set these variables. How can I set these in Koolmoves.

<input type="hidden" name="recipient" value="info@....com">
<input type="hidden" name="subject" value="E-mail via website">
<input type="hidden" name="redirect" value="../thanks.htm">

Bob Hartzell
07-03-2003, 12:36 PM
This question was previously asked. If I remember correctly, you create variables which are offscrean or invisible in some way.

simpelendidi
07-03-2003, 12:53 PM
I'll search for it.

johnie
07-03-2003, 06:29 PM
On the same Timeline that your send form data button is create a Actionscript on a frame like this;

recipient = "info@....com";
subject = "E-mail via website";
redirect = "../thanks.htm";

Really all there is to it.

simpelendidi
07-04-2003, 04:31 AM
I've tried it with the hidden textfields and it works. But I'll try this as well.

Thanks

johnie
07-04-2003, 11:40 AM
The reason why you used to make hidden text fields was KoolMoves got Dynamic text functionality before it got actionscript functionality.

When you create a dynamic text field inside KoolMoves you are really creating a Dynamic textfield and a cariable both with the same name. Inside of Flash you can choose to have a different variable name for your text field. To simplify things KoolMoves automatically assigns the same name to both text field and var.

What the above script does is; creates 3 variables with the values preset. This is the same thing that is happening with the hidden text fields except no text fields are created but just the vars.

When you send data what happens is the Flash Player sends all the vars on that timeleine to the server side script/ preconfigured web page either as a querry string (With Get) or as a data packet (with Post). It works as I have used it very often.

simpelendidi
07-04-2003, 11:42 AM
thanks for the info.