Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Multiple Pages with CGI

by sgifford (Prior)
on Mar 24, 2007 at 16:00 UTC ( [id://606419]=note: print w/replies, xml ) Need Help??


in reply to Re: Multiple Pages with CGI
in thread Multiple Pages with CGI

The only ways to get information to your script from a client are cookies, forms, and the URL. You can use cookies to create sessions, where you store the information on the Web server and just pass enough information to find the session data. You can use forms with hidden elements to pass information to your script that is not entered by the user. Forms which use the GET method will have the parameters show up in the URL; with the POST method the parameters will not be visible in the URL.

From your example, it looks like the user may be entering private information you don't want to show up in the URL. In that case, a good solution is to have the user enter the information into a form which uses the POST method, and make sure the server is using SSL so the data is encrypted, and so the browser is more careful with the information in its history.

Hopefully that will be enough to get you started.

Replies are listed 'Best First'.
Re^3: Multiple Pages with CGI
by need_help21 (Novice) on Dec 04, 2007 at 17:45 UTC
    Can you please explain the method in which user enters the information into a form...thanks !!
      Data from the form can come from user input from the various HTML input elements (textboxes, buttons, dropdowns, radio buttons, etc), or from data embedded in the HTML document by the server using hidden form elements, like this:
      <form> <input type="hidden" name="var1" value="val1"> <input type="hidden" name="var2" value="val2"> <!-- ... --> </form>

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://606419]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-24 20:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found