refreshing a page with form data

gesf

Active member
You can alway make something like (in the input's value):
Code:
<input type="text" name="t" value="<?php print isset($_POST['t']) ? $_POST['t'] : ''; ?>">
 
hats what gesf told you: by doing that you will need to post the info to the same page as you have deen on before and thereofre you will have all the data saved.

You can always try to make a doPostBack JS function.. in that case i will jsut say good luck: its a much harder way..hehe
 
well.. id is not such a usuall name actually... but what i ment was you have a field in your form that has a value attribute set to:

<input type="text" name="field_name" value="<?=$_POST['field_name']?>" />

but submiting the information to the same page as the form: you will automaticaly get the data back into the form.
 
Back
Top