Disabled fields and passing information
Posted: Wed Feb 11, 2004 12:21 am
Ok heres my scenario:
On one page a user enters a name to search my database by and the results of which as well as the name typed in are displayed on the second page for the user to change accordingly.
Now on this second page i want to disable the text box containing the name typed in so that it cannot be edited because only the details associated with that name need to be edited.
I have tried to disable it by both making it simple a PRINT statement as well as changing the text TYPE to DISABLED TYPE='text' however in both situations the variable that stores the name becomes empty so when the user makes his appropriate changes and clicks 'continue' which then takes him to the confirmation page the name itself is not outputted, while all the changed information is.
So basically what im asking is how can i disable a text field on one page but have the information stored in it still pass onto the next one?
On one page a user enters a name to search my database by and the results of which as well as the name typed in are displayed on the second page for the user to change accordingly.
Now on this second page i want to disable the text box containing the name typed in so that it cannot be edited because only the details associated with that name need to be edited.
I have tried to disable it by both making it simple a PRINT statement as well as changing the text TYPE to DISABLED TYPE='text' however in both situations the variable that stores the name becomes empty so when the user makes his appropriate changes and clicks 'continue' which then takes him to the confirmation page the name itself is not outputted, while all the changed information is.
So basically what im asking is how can i disable a text field on one page but have the information stored in it still pass onto the next one?