I'm writing a form and on submit it will go to an aspx page which will edit the values inserted by a user for every field.
for example -
UserID = "ABC"
Fname = "A"
Lname = "B"
and so on.
my form looks something like this -
<form id="f1" action="UpdateData.aspx" method="post">
<br />
<br />
<div>
Edit user information:
<br />
First name:
<input id="Fname" name="Fname" type="text" />
<br />
Last name:
<input id="Lname" name = "Lname" type="text" />
<br />
Email:
<input id="Email" name="Email" type="text" />
<br />
Age:
<input id="Age" name="Age" type="text" />
<br />
<input id="Submit1" type="submit" value="Edit!" />
</div>
</form>
when user submits the aspx page will edit the values to the values inserted by the user.
now, how do I handle blanks?
what if the user clicks on submit but only wrote a value for Fname? all other values will be updated into blank.
how can I avoid this? how can I retain the original value?
thanks!

New Topic/Question
Reply



MultiQuote





|