[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] How to keep values in input boxes once hwen page is reload????
Hi list;
I am just wondering how to keep values of texttbox on form if they are
not saved to DB.
I have page with form that has some textbox fields, checkboxes etc. What
is I am trying to work out is why when for exaple I enter some info in
the form fields, and one them is incorrect, my forms gets back, showing
error, whcih is all fine , but all fileds that I have already filled up
are empty (except those ones that are aready in DB).
How can I avoid that???? Whay my values are gone.
This is part of my form:
[set mv_data_enable]1[/set]
[tag flag write]evaluationdb[/tag]
[seti evaluation_id][counter etc/new.number][/seti]
<FORM ACTION="[process]" METHOD="POST">
<INPUT TYPE=HIDDEN NAME="mv_data_table" VALUE="evaluationdb">
<INPUT TYPE=HIDDEN NAME="mv_data_key" VALUE="evaluation_id">
<INPUT TYPE=HIDDEN NAME="mv_data_function" VALUE="insert">
<INPUT TYPE=HIDDEN NAME="mv_nextpage" VALUE=@@MV_PAGE@@>
<INPUT TYPE=hidden NAME="mv_form_profile" VALUE="evaluation_profile">
<INPUT TYPE="HIDDEN" NAME="mv_data_fields"
VALUE="evaluation_id,username..................>
My form here:
for example:
<INPUT TYPE="hidden" NAME="evaluation_id" VALUE=[scratch evaluation_id]>
<tr class="contentbar1">
<TD VALIGN="TOP" ALIGN="LEFT" BGCOLOR="#FFDD99">
<FONT SIZE="2" COLOR="#134582">[error name=company
std_label="Organization (*)" required=1]</FONT></TD>
<TD COLSPAN="2" BGCOLOR="#D7D7D7" >
<INPUT TYPE=text NAME=company VALUE="[value company]" size="52"
maxlength="50">
</td>
</tr>
etc........
<INPUT TYPE="SUBMIT" NAME="mv_click" VALUE="Register Now">
<INPUT TYPE="Reset">
[set Register Now]
mv_nextpage=ord/send_temporary
[/set]
Could you guys help???
It is very stupid that someone has just entered info on the page, and
now they are all gone....
Help please.
Alma