If the server already has the relevant information, then you don't need to include it in hidden variables. Certain applications do not take advantage of the session object, so the only way to maintain state infomation is via hidden variables, or the Query String.
FoxWeb Support Team
support@foxweb.com
Sent by Alan Harris-Reid on 02/06/2002 03:12:10 PM:
My original idea was to have the text input boxes display dimmed text when the form was in 'read-only' mode, then upon pressing an 'Edit' submit button, the form will refresh, but those fields which are editable would be in normal black text. I am looking for an easy way of doing this without having to manually disable each textbox.
What is the idea behind having the infomation repeated as hidden variables?
Many thanks,
Alan
It sounds to me like you should display the values as regular text and also include them as hidden variables:
<form....>
<input type="hidden" name="fname" value="<%=fname%>">
<input type="hidden" name="fname" value="<%=lname%>">
First Name=<%=fname%><br>
Last Name=<%=lname%><br>
<input type="submit" value="Continue">
</form>