Yakisoba
02-23-2005, 05:17 AM
Hi All,
I am fairly new to the CGI world, however I have spent the past couple of weeks studying CGI and Perl intensly through internet tutorials and the O`Reilly Programming Perl textbook.
Currently I am trying to develop a CGI program that will allow a user to logon to a website if there username is found in a pre-defined list.
I have been able to create a small program that will verify a single value (stored in a variable), but I dont know how to make a program that will check though multiple values.
Im not worried about security or practicality of the program right now, this will just help me get a greater understanding on how CGI works.
For this example I would have the user enter a UserName into a html textbox...once the "submit" button is clicked the CGI program will take that value and check it against a list (array/hash) that is contained in a notepad/excel document (Im still not entirely sure this is possible). If found (true) the user will be directed to a LoginOK.html page in not found (flase) they will be shown a LoginNoGood.html page. Nothing fancy.
I can envision what I need to do next, but I cant seem to get anything to work. If anyone could provide an example it would be greatly appreciated.
Thanks
I am fairly new to the CGI world, however I have spent the past couple of weeks studying CGI and Perl intensly through internet tutorials and the O`Reilly Programming Perl textbook.
Currently I am trying to develop a CGI program that will allow a user to logon to a website if there username is found in a pre-defined list.
I have been able to create a small program that will verify a single value (stored in a variable), but I dont know how to make a program that will check though multiple values.
Im not worried about security or practicality of the program right now, this will just help me get a greater understanding on how CGI works.
For this example I would have the user enter a UserName into a html textbox...once the "submit" button is clicked the CGI program will take that value and check it against a list (array/hash) that is contained in a notepad/excel document (Im still not entirely sure this is possible). If found (true) the user will be directed to a LoginOK.html page in not found (flase) they will be shown a LoginNoGood.html page. Nothing fancy.
I can envision what I need to do next, but I cant seem to get anything to work. If anyone could provide an example it would be greatly appreciated.
Thanks