Hello!!
Use an If statement...
if (!$username=="")
exit
else
...
Or something like that
Change the !$username to (!isset($username))
Or something like that...
Just play around with the if statements...it works for me...
But I may be wrong...
Dan
--
From: DC
Sent: Monday, April 16, 2001 11:35 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] How to stop blank entries
Hi All
Firstly thanks to the people who have helped in the past with my
questions...
My issue:
I have a registration script which allows new users of a site to
become a
member.
All works very well BUT if a new user just hit enter on the blank form
then
a new account is created with all fields except the id field blank
allowing
anyone just to hit enter a gain access.
I have search the MySql docs, Php.net docs, this and other NG's but i
can't
find the solution to this.
And how can i carry forward the username to be shown on all pages
after
sucessful login.
I thank you in advance
Dave C
To email me remove the NOSPAM bit of my return email address
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail:
[EMAIL PROTECTED]
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]