RandomGuy
11-24-2005, 06:55 AM
Ok so I have a script, that is fed by a form on a page alters another web page of mines. I want the page to load, and then has a prompt for a username and password. Then when the password is correct, the CGI re-draws the whole form that feeds to the CGI.
To Recap...
User goes to prog.html
inputs a password... password is correct
HTML form shows, which enables him to submit data to the next CGI script.
What would the best way to do so... Would it be secure.
Say i used a POST form... and had the password field set to on. then i did something like
if param("password") = "jaklsdjas" then adsjkfljasf (this is psuedo... so its not actual code... but how would i code such a script) and would it be semi secure?
To Recap...
User goes to prog.html
inputs a password... password is correct
HTML form shows, which enables him to submit data to the next CGI script.
What would the best way to do so... Would it be secure.
Say i used a POST form... and had the password field set to on. then i did something like
if param("password") = "jaklsdjas" then adsjkfljasf (this is psuedo... so its not actual code... but how would i code such a script) and would it be semi secure?