PDA

View Full Version : problem with form


Billy T
12-11-2001, 03:36 AM
Hey all

I have a form that was working fine. The text boxes were on my main timeline with variable names such as name

The template file that my servers cgi script calls has

To: billyt@bigpond.net.au
Subject: CAB feedback form
Name? [name]
Location? [location]
Email adress? [email]
Comments? [comments]
FILEEND

All was ok. Now I want to add a check box so i put in a movieclip with a button in the first frame. This button jumps between the checked and unchecked states of the button. In the checked state I have a frame action that says

_root.joinmail = "yes";

in the unchecked state I have the frame action

_root.joinmail = "no";

and I added
Join Mailing List? [joinmail]
to the template file

but the damn information from this variable doesnt get sent to my email
:eek:

I tested my variable by putting a new text box in the main timeline and giving it the variable name joinmail and it correctly displayed yes and no.

Bit of a long winded question but can anyone see what i am doing wrong?

TIA

Jesse
12-11-2001, 08:29 AM
GET and POST send only the vars on one timeline. I think it's the timeline they're executed from but it may be _root only... are all your other vars on _root?

Billy T
12-11-2001, 08:40 AM
jess you're a champion

my form is in an external movie. I changed the path of variable to

_level0.content.joinmail = "yes";

and it worked :D :D

Thanks again

Jesse
12-11-2001, 10:00 AM
np :)