
abockover
Deleted
Jul 13, 2000, 10:11 PM
Post #1 of 4
(589 views)
|
|
I am stumped! Please Help!
|
Can't Post
|
|
I am working on this script, it is a banner rotation program designed for my website. It uses ssi. When the program is executed, banners.cgi, a data file is read and a random line is formatted into HTML output... thus creating a random banner everytime banners.cgi is executed. When you go to banners.cgi?action=AddBanner, a form is displayed and you can add a new banner to the banner data file (banners.dat). I have added a password form field to protect the data file from being written to by anyone who does not know the password. When you click Add Banner, the form is submitted to: banners.cgi?action=WriteData. This sub checks the password field in the form. if the correct password is given, the data will be formatted and written in to the data file. if the password is incorrect, the program displays and error message. The problem... No matter what the password, the invalid password message is shown. But, if I go to... banners.cgi?action=WriteData&password=bobjingles the part of the program that writes the data to the data file is executed. This is what I do not understand. If you would like to see it in action, goto www.crevasoft.com/banners/banners.cgi?action=AddBanner To see the code, goto ftp://ftp.crevasoft.com/downloads/banners.cgi PLEASE HELP!!! Thanks, Aaron
|