Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Flash4 and forms |
From: | Brian Clifton |
Date: | Fri, 6 Aug 1999 18:48:29 +0100 |
Just one more question to Nigel et al.
For the form at: http://www.omegadm.co.uk/testing/index-bc.htm
I use check boxes for each state selected. However for these variables to be passed to my
cgi script I have to give each one a different name e.g. State1, State2...StateN. In the
returned e-mail I therefore have to list all the variables whether filled in or not. This
is untidy if say only 1 or 2 are selected, as variables not completed leave blanks.
e.g. returned e-mail
Locations: Florida,,,,,,,,,NY,,,,,NE
Is there a way to append variables so that N selected states can be described by 1
variable? e.g. State = State + newState
That way the returned e-mail would look like:
Locations: Florida, NE
Or am I going about this the wrong way??
So far I trying the expression editor for each button (US State) as follows:
Set Variable: "state" = Eval (state) & "New_Selected_State_Name"
but only the last state selected is returned - not appended (it makes no difference if
the Eval statement is firs or last).
Any help greatfully received, Brian
> Brian,
>
> It isn't working because you are setting the value of recipient after you
> are submitting the data to the script. Flash scripting engine will follow
> the instructions in the order theu are given, so it's first submiting the
> data and then setting the recipient value, and this is not what you want.
>
> OK here goes a step by step.
>
> For the submit button use only
> On (Release)
> Get URL ("http://www.omegadm.co.uk/scripts/formh.pl", vars=GET)
> End On
>
> Remove all the set variables that are tied into the on (whatever) states
> Define the variables from the timeline. Select an appropriate frame on any
> layer of the timeline where the button is, that will be the main timeline,
> right ? Now add the following actions to the frame : Set variable
> recipient=brian@... The other variables will be set according to user
> interaction so they should be OK. Set variable floridabox=.... etc.
> Publish and test. It should work.
>
>
> Nigel
>
> ------------------------------------------------------------------------
> To UNSUBSCRIBE send: unsubscribe flasher in the body of an email to
> list-managershocker [dot] com. Problems to: ownershocker [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-managershocker [dot] com
>
>
>
>
---
Dr. Brian Clifton
Technical Director, Omega Digital Media Ltd
Phone: +44 (0) 1444 410202
Fax: +44 (0)1444 443220
E-mail: brianomegadm [dot] co [dot] uk
http://www.omegadm.co.uk/
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-managershocker [dot] com. Problems to: ownershocker [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-managershocker [dot] com
Replies
Re: FLASH: Flash4 and forms, Nigel Randsley-Pena
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]