I need a script that will allow users to log on to their account, i have tried to make one but had lots of problems, like it will match username but not password, wont print information. So i was wondering how i could get information from another cgi? Like i want to have a logon script where they logon and if sucessful it passes their username to account so it can search a file for their information for updating, how would i do this?

Hey wow! that is the exact problem I am tackling at the moment. I have previously made a script that works for updating information, but it only used one piece of info. to find the user's record. It could use email address, account number, or order number.

This go around, I want the user to be able to see multiple records. (It is really a different program for a different purpose. but why re-create the entire wheel). I have the logon procedure set and tested. Now I'm just working on the reading of a file. and more importantly the adding of a database record number to each record added. How the heck am I going to add a record number? I can't go on the account number anymore because there could be multiple records with the same account number. Oh well.

Enough rambling. Here is what I did for the password verification. I used Customer Number and SiteID(the password)

I created a file called userdb and filled it with test data.

101|site1 102|site2

This is the code I used The spliting of the variables from the login HTML page has just been completed. We pick up the code at that point.

#if the last read records still match then start failure loop if ($f_custnum ne $custnum or $f_siteid ne $siteid) {

#{insert web page failure notification here}

#end the script die;

#close the failure loop }

#die one more time just in case.. die;

Well now I'm working on reading in the records of the second database and handling multiple 'duplicates' if you will. To keep from having duplicates, I want to add those record numbers. (any ideas Sleuth?) Of course displaying out those record numbers with a hyperlink that will take you to the edit page is my ultimate goal.

Anyway, Thanks for letting me ramble on. (as if you had a choice....but of course you could have just skipped all of this nonsense.)