FW: [PHP-DB] How to stop blank entries
| From: | Brunner, Daniel | Date: | Mon, 16 Apr 2001 17:49:52 +0000 |
| Subject: | FW: [PHP-DB] How to stop blank entries | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-8605@lists.php.net to get a copy of this message | ||
> 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: php-db@lists.php.net
> 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: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>
>