Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Flash4 and forms
From: Brian Clifton
Date: Thu, 5 Aug 1999 18:09:52 +0100

Thanks for your kind help Nigel.

I think I am getting somewhere with understanding this! However I am having no luck. The
reason why I changed to GET, was that when using POST nothing happens - the browser (N4)
just sits there. There is no activity on the line and no error message. I was hoping the
GET method would help me track down the problem. Looks like I have just added to it!

On your suggestion, I have set the properties of the submit button as:
On (Release)
Get URL ("http://www.omegadm.co.uk/scripts/formh.pl", vars=POST)
Set Variable: "recipient" = "brianatomegadm [dot] co [dot] uk"
End On

I have set the properties of Florida as:
On (Roll Over)
Set Variable: "commentbox" = "Bla bla....."
End On
On (Release)
Set Variable: "floridabox" = "X"
End On

However I still get nothing. Netscape says 'Connect Host www.omegadm.co.uk contacted.
Waiting for reply....' but there is none. The script definately works with normal html
forms (both POST and GET) - we have about 10 sites which use it. It can be tested by
typing //www [dot] omegadm [dot] co [dot] uk/scripts/formh [dot] pl?recipient=youratemail_address [dot] co [dot] uk">http://www [dot] omegadm [dot] co [dot] uk/scripts/formh [dot] pl?recipient=youratemail_address [dot] co [dot] uk -
You'll just get a blank e-mail.

Any further help greatly appreciated.

Best regards, Brian


> Brian,
>
> First I'll explain what's happening and why it's not working.
>
> You are using .../formh.pl?recipient=brian... as your target url and you
> are also requesting that Flash send variables using the GET method.
> Further the submit button is on the main timeline.
>
> The GET method sends data back to the server by appending the url with a
> string that starts with a question mark then includes the data as name
> value pairs. Each pair is separated by & and name and value is separated
> by =. Some characters in the ASCII set are also converted to their hex
> representation.
>
> Now when the movie finds that you want to send variables using GET it
> takes the URL you gave it and appends the variables to it. This is what's
> causing the error because you've pre appended a variable already so the
> URL is sent with two starting points as indicated by two question marks.
>
> The correct way to implement what you are trying is to declare
> recipient=brian... as a variable in your Flash movie and not by placing it
> appended to the URL. So you only have to remove that part from the Get URL
> call and add a set variable action.
>
> If instead of setting send vars with GET you had set it to send vars
> using POST you would never have noticed the error, as in this case the
> recipient var would be sent using GET and all others would be sent using
> POST, this is not however a recommended practice.
>
> Nigel
>
> ------------------------------------------------------------------------
> To UNSUBSCRIBE send: unsubscribe flasher in the body of an email to
> list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com N.B. Email
> address must be the same as the one you used to subscribe. For info on
> digest mode send: info flasher to list-manageratshocker [dot] com
>
>



------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com


Replies
  Re: FLASH: Flash4 and forms, Nigel Randsley-Pena

Replies
  Re: FLASH: Flash4 and forms, Nigel Randsley-Pena

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]