Forum: PHP Nov 4th, 2009 |
| Replies: 10 Views: 327 Hey.
The isset (http://php.net/isset) and empty (http://php.net/empty) functions are also handy when validating form data. (or any data, for that matter) |
Forum: PHP Nov 4th, 2009 |
| Replies: 6 Views: 277 Hey.
What do you mean by "a message system"?
Like a blog, or like a messenger?
If it's a blog, there are probably hundreds of codes available online for you to choose from. Wordpress... |
Forum: PHP Oct 22nd, 2009 |
| Replies: 6 Views: 304 Agreed. Like I say, ideally these sort of bugs should be hunted down and fixed, even though the code may function without it. |
Forum: PHP Oct 6th, 2009 |
| Replies: 5 Views: 260 Hey.
I'm sorry mate, you are going to have to explain that a LOT better if you want us to be able to provide any sort of useful responses.
Try showing us the code you have, and tell us what... |
Forum: PHP Oct 6th, 2009 |
| Replies: 2 Views: 253 Hey.
Rather then doing if (!$text), try doing if (empty($text)).
Or, better yet, design your if statements so anything you don't expect falls through to the "else" clause:
$value =... |