# Form information

**URL:** <https://forum.kirupa.com/t/form-information/23270>\
**Category:** programming\
**Created:** [June 15, 2003, 4:39pm UTC](https://forum.kirupa.com/t/form-information/23270 "2003-06-15T16:39:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drunken](https://avatars.discourse-cdn.com/v4/letter/d/a4c791/32.png) [@Drunken](https://forum.kirupa.com/u/Drunken)\
**Post date:** [June 15, 2003, 4:39pm UTC](https://forum.kirupa.com/t/form-information/23270/1 "2003-06-15T16:39:29Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 15, 2003, 4:50pm UTC](https://forum.kirupa.com/t/form-information/23270/2 "2003-06-15T16:50:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 15, 2003, 4:59pm UTC](https://forum.kirupa.com/t/form-information/23270/3 "2003-06-15T16:59:04Z")

</div>

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

But I have this problem in some flash forms! thks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 15, 2003, 5:11pm UTC](https://forum.kirupa.com/t/form-information/23270/4 "2003-06-15T17:11:54Z")

</div>

Aaah ow sorry :beam: 😛 Helped anyway 😛

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 15, 2003, 6:02pm UTC](https://forum.kirupa.com/t/form-information/23270/5 "2003-06-15T18:02:51Z")

</div>

Now i know i do that 😉

like this

```php

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]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 15, 2003, 6:03pm UTC](https://forum.kirupa.com/t/form-information/23270/6 "2003-06-15T18:03:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 15, 2003, 7:19pm UTC](https://forum.kirupa.com/t/form-information/23270/7 "2003-06-15T19:19:22Z")

</div>

```php

<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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 17, 2003, 9:13am UTC](https://forum.kirupa.com/t/form-information/23270/8 "2003-06-17T09:13:43Z")

</div>

yah jubba thks ! one more time 😉
