Thread: isset() help
View Single Post
Old Jan 23rd, 2008, 3:45 PM   #6
kishou
Programmer
 
Join Date: May 2007
Posts: 52
Rep Power: 2 kishou is on a distinguished road
Re: isset() help

Quote:
Originally Posted by Sane View Post
Thank goodness. ^_^

You had me worried. And while I'm here, to elaborate on kruptof's well-spotted catch: isset only checks to see if the variable exists. It's useful to stop a user from directly accessing the .php script (where no post data is being sent). In such an event, isset will return false for any corresponding $_POST keys.
lol. i think i'll just use if (empty ($_POST['comment')
ok now wth? i cant use print,echo, or die...
kishou is offline   Reply With Quote