| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Jul 2005 Location: U.S.A.
Posts: 655
![]() ![]() | PhP question Hey guys, I have a question, that is probably sooo simple, yet I cannot figure it out. Here's my question, why won't this code work PHP Code: -CP I knew it was going to be simple, I figured it out, my bad to anyone that has/had tried to help me, I put require, instead of include LOL -CP Hey guys, since I figured out that problem, guess what? I have another. I need to make it so that way if they do not fill out all of the fields, it says something like error: all fields not complete. ????: NamePros.com http://www.namepros.com/showthread.php?t=277978 -CP |
| |
| | #2 (permalink) | ||||
| NamePros Regular Join Date: May 2005 Location: England
Posts: 392
![]() ![]() ![]() |
PHP Code:
__________________ -Beaver6813.com - Web Developer Extraordinaire! | ||||
| |
| | #3 (permalink) | ||||
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,568
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The best way is to check the string length using strlen. ????: NamePros.com http://www.namepros.com/showthread.php?t=277978 PHP Code: | ||||
| |
| | #4 (permalink) |
| NamePros Regular Join Date: May 2005 Location: England
Posts: 392
![]() ![]() ![]() | None of the field values should be 0 anyway. Unless someones first name, last name, date of birth, gender or whatever is 0. And the password should definately not be 0. So in a way it checks that as well
__________________ -Beaver6813.com - Web Developer Extraordinaire! |
| |
| | #5 (permalink) | ||||
| Senior Member Join Date: Dec 2006 Location: England
Posts: 1,568
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=277978 Matt | ||||
| |
| | #6 (permalink) | ||||||||
| NamePros Regular Join Date: May 2005 Location: England
Posts: 392
![]() ![]() ![]() |
This conversation tells the user otherwise Ill mark this as resolved now
__________________ -Beaver6813.com - Web Developer Extraordinaire! | ||||||||
| |