Form information

Hy!

I have a form and when the user submit the information of that form the script verify is correctly fill and if don’t then as usually come back to user verify the errors.

I want that when come back to form, the information that users had fill appear, because the form is blank again

How can i do that ?

thks

:beam:

Put the info in variables in _root when the submit button is clicked. It’ll then verify the info, and if it is incorrect, it returns to the form. At the frame where the form is at, add the code

_root.nameinputfield = _root.name;
_root.emailinputfield = _root.email;
etc.

Of course, at the beginning of your movieclip you have to set these vars to [COLOR=BLUE]""[/COLOR] cuz otherwise it might display _level0.textbox or something like that. To do this, put this code in a frame before the form frame:

_root.name = “”;
_root.email = “”;
etc.

This will make the form display the text inside the variables.
Now all we gotta do is put the info in the vars when the button
is clicked.

For your submit button:

_root.name = _root.nameinputfield;
_root.email = _root.emailinputfield;
etc.

This should work. Haven’t got a chance to test cuz I ain’t got Flash here.

Hy thks for the help but this question is to php+html :stuck_out_tongue:

But I have this problem in some flash forms! thks

Aaah ow sorry :beam: :stuck_out_tongue: Helped anyway :stuck_out_tongue:

I think you would use cookies for that, but don’t ask me how …

Now i know i do that :wink:

like this



echo "<script> history.back(-1) </script>";


with this function the browser go to last page and with cookies i control is the error menssage if is visible or not!

8]

*with this function the browser go to last page and with cookies i can control if the error menssage is visible or not!


<input type="text" name="number" value="<? echo $_POST['number'] ?>">


if number is null, then it won’t show anything. if number is not null then it will show the value of the variable number.

just send it back with header or something like that and it should work fine.

yah jubba thks ! one more time :wink: