Need Help with a Flash Contact form(Problem solved)

98stang

Newbie

Posts: 11

3+ Months Ago

I'm trying to get a flash contact form to work but it will not pass the variables to the .php file. The website is be hosted by GoDaddy and it's on a Linux Server. I've searched through the forums and looked at other topics but have had zero luck with it. Here is the code.

That should fix your "undefined" issue. I would however start learning to place your code on the timeline instead of attaching it to an object.

98stang

Newbie

Posts: 11

3+ Months Ago

First, I want to thank you graphixboy for responding(you're the first to do so and I've posted this on 4 forums).

You said something about putting on a timelines and I've had no experience with timelinies being that I don't know flash or .php that well. The Object I have it on is a movie clip that is used through the website so putting on the timeline would affect each part that movie clip it is placed at. Is there any other code I could use to make this work?

graphixboy

Control + Z

Posts: 1827

Loc: In the Great White North

3+ Months Ago

did you try what I posted above? Leave your code as is but put the path to the dynamic text field in front of the instance name. That should solve your problem. The timeline comment was for future reference to help you write better code.

98stang

Newbie

Posts: 11

3+ Months Ago

could you give me an example of what you mean?

graphixboy

Control + Z

Posts: 1827

Loc: In the Great White North

3+ Months Ago

look at my original post. I'm taking about adding the stuff in red to your existing code. However mine is assuming that your text fields are sitting on the main stage and not inside a movieclip.

first the flash: Your input fields will take up frame 1 and 2, and frame 3 will be a success page with a back button to frame 1. A submit button will gotoAndStop(2); so on frame 2 you will replace the submit button with a LOADING... image or something. Also place a dynamic textfield with instancename of alert on frame 1.

The input boxes are on top of the movie clips, not inside them. Should I remove the movie clips from the code? Also have variables set too (theMessage, theState, theName, theEmail) but the loadVariablesNum won't pass them to the .php

Ok new problem. When I run the .swf, type some things in the text boxes, and hit send, I get the email with everything in it. When I upload the .swf, I try it from the website and I hit send, and everything is blank.