A Simple Script #2
I need someone to write a script for me. It's a very simple one.
I intend to provide free email forwards, no ads.
This is how the script should work.
There will be a form first, with 2 fields.
1st one will be the user name for the email address @ my domain. 2nd will the user's real email address.
When the user clicks submit, the script will check a file called email.dat and see if the user name is already taken.
Each user name inside the email.dat file should be placed on each line.
If the user name is already taken, a message that says "User Name already taken, please choose another one." will show up.
If the user name is not taken, the script will bring the user to a "success" page, which can be set by me. And the script will email the results to me.
Then I'll set up the account.
Easy enough?
------------------
Goodbookmarks.com - Enjoy surfing the web once a day with us.
Submit Your Site Now!
Rob Pengelly posted this at 16:32 — 22nd December 1999.
They have: 850 posts
Joined: Jul 1999
O.k.
I just had to edit an older script I wrote to fit your needs.
Once you enter the email and username, it will check to see if the email is in the correct format, make sure the username isn't blank and make sure the username isn't in the database already. If there is an error(s) it will print out what they are.
If there are no errors, it will open up email.dat and print
$username:$email
and than print a success creen (which can be edited by yourself)
Someone will probably come a long with better code (Japhy ..) but if no one does, you can use mine (it has been tested and works on my machine.
------------------
An ostrich's eye is bigger than it's brain.
update
For some reason UBB is showing
®ister;
instead of
"&"register; (no space and leave out the quotes.
[This message has been edited by robp (edited 22 December 1999).]
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Rob Pengelly posted this at 19:15 — 23rd December 1999.
They have: 850 posts
Joined: Jul 1999
Forgot to say that it should be named
register.cgi
unless you want to change the name of it in the register sub html.
------------------
Elephants are the only mammals that can't jump.
http://www.thehungersite.com - http://www.therainforestsite.com
http://www.ratemymullet.com - Beauty is only mullet deep.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.