geminihk (Programmer) 22 Sep 09 21:09 said:
Thanks vicvirk.
Yes. I do know that. But would like to find any other option, because
1. i don't want to use javascript - what happens if the javascript is disabled?
Read what Mark said
geminihk (Programmer) 22 Sep 09 21:09 said:
2. query string - i don't want to show the details in the error message.
Read what Marks said (I actually suggested passing the actual values, but Mark had a good point as well).
The other option is to have the form on page1.asp to submit to page1.asp, do the validation and if all is good do what you need to do and redirect to page2.asp. If there are errors, write the valid ones to the db and don't redirect, rather fill the form in with the values that were entered.
What I don't understand in your scenerio is why you don't want to use session variables - this is exactly what session variables are there for - the javascript makes sense, but Mark summed that up - people are used to having a "not-so-easy" time when they turn off js.
It would be best to get one set of data (fully validated) otherwise a user could be making multiple requests to the db.
--------
GOOGLE is a great resource to find answers to questions like "how do i..."
If you don't know exaclty what you want to do or what to search on, try Google Suggest:
--------
I have recently been semi-converted to ensuring all my code (well most of it) works in both javascript and non-javasc