PDA

View Full Version : How to transfer parameters more efficiently?


geqy
07-02-2002, 10:50 AM
now I make a "user register module", the new user need to type in emailaddress, firstname,lastname, phone, address,password and other informations, near 20 items. (for our internal user)

Sometimes, they will forget some item. How can I only show the items they forgot after submit. and user only need to fill in it, and submit again.

The only way I find is to make a lot of "hidden field" in the second page and remember each item which user have answered.

Do you know some better way to do it? if you already have some example, it will be better!


Many thanks

glenngv
07-02-2002, 11:22 AM
you can also incorporate client-side validation using javascript and at the same time do server-side validation using the technique you said.

geqy
07-02-2002, 01:00 PM
Thank you for your reply, but I hope,
After submit, all the information , which have been answered, will not display.


Thanks

glenngv
07-03-2002, 03:12 AM
for each item in Request.Form
if request.form(item)<>"" then
response.write "<input type='hidden' name='"&item&"' value='"&request.form(item)&"'>"
else
response.write "<input name='"&item&"' value=''>"
end if
next

Originally posted by geqy
Thank you for your reply, but I hope,
After submit, all the information , which have been answered, will not display.


Thanks

geqy
07-03-2002, 05:17 PM
Thanks. that is really a good idea.