#1
  1. No Profile Picture
    chinnavi
    Guest
    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 ?

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

    Join Date
    May 2000
    Location
    London, England
    Posts
    251
    Rep Power
    15
    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.

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

    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