Click to See Complete Forum and Search --> : check before insert
I'm new to perl but i've managed to create a perl script that adds values from a html form to a text file, which works fine. The next step is to stop duplicate username's from being created. Is there a way of searching the text file before inserting?
Thanks
Charles
04-26-2005, 09:16 PM
It's easily done, but we need to know how your text file is laid out.
ok the perl scripts adds it like this:
print txt "-----------------------------------\n";
print txt "$FORM{'Forename'}\n";
print txt "$FORM{'Surname'}\n";
print txt "$FORM{'Email'}\n";
print txt "$FORM{'Login'}\n";
print txt "Password: $Password\n";
The text file stores data like this:
-----------------------------------
forename
surname
forname.surname@domain.com
forname.surname
Password: 75563844