Andrew Chernyack wrote:
I recommend the next variant
 if ($_POST["msg"] =="hi")

Why?

I've created an html file with form's action parameter as info.php that
contains phpinfo().
The result was

      PHP_SELF  /~adolf/info.php
      _POST["a"] dv fdsvz
      _SERVER["CONTENT_LENGTH"] 10


You see, _POST["a"]

That does not matter, both 'a' and "a" are strings. This solves it: if(isset($_POST['msg']) && $_POST['msg']=='hi') { // do something }

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to