1. No Profile Picture
    Devshed Newbie (0 - 499 posts)

    hai all,
    i m a perl cgi lover..
    i want to do one registration process .
    i need some help in getting the values..
    The process goes like this ...
    1. Click A Link to do Sign Up!
    2. Accept Rules and Regulations!
    3. Fill out the Form!
    4. Get Login Name and passwd
    5. Check Login and passwd
    6. Add to Database.

    Now my problem is i have to track all the values with a single CGI...
    How can i do this ?

  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    London, England
    Rep Power
    I assume what you mean is that you want to carry a session identifier and/or form fields for a particular user across multiple forms/pages.

    The first form can be static HTML but you're going to have to generate the rest from a script.

    You can then carry forward the results of previous forms using hidden form fields.

    <input type=hidden name=thisfieldname value=theirinput>

    You can accumulate several hidden fields across many forms just by reading the input from the CGI and outputting it as HTML hidden fields.

    A more complex method would be to use cookies to store this information.

    And remember, hidden fields aren't secret, they're just not visible to the user when viewing the HTML page. The user can always read them by viewing the page source.

IMN logo majestic logo threadwatch logo seochat tools logo