Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How to transfer parameters more efficiently?

    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

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    you can also incorporate client-side validation using javascript and at the same time do server-side validation using the technique you said.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New Coder
    Join Date
    Jun 2002
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Please give me some details

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


    Thanks

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts

    Re: Please give me some details

    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
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    New Coder
    Join Date
    Jun 2002
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks

    Thanks. that is really a good idea.
    Last edited by geqy; 07-04-2002 at 09:19 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •