Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Perry Jönsson
Jay Blanchard wrote: [snip] What is the difference between these two examples? Both works fine for me. 1. if ($_POST['submit'] == 'Login') { ... ... } 2. if (isset($_POST['submit']) { ... ... } [/snip] One is checking if $_POST contains a specific value, the other j

Re: [PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Perry Jönsson
Gerhard Meier wrote: On Mon, Nov 22, 2004 at 09:38:00PM +0100, Perry Jönsson wrote: 1. if ($_POST['submit'] == 'Login') { ... } This one is true if $_POST['submit'] is equal to 'Login'. 2. if (isset($_POST['submit']) { ... } This one is true i

[PHP] $_POST['xxx'] = "blabla" ?

2004-11-22 Thread Perry Jönsson
Hello, What is the difference between these two examples? Both works fine for me. 1. if ($_POST['submit'] == 'Login') { ... ... } 2. if (isset($_POST['submit']) { ... ... } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/u

Re: [PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread Perry Jönsson
Jon-Eirik Pettersen wrote: Perry Jönsson wrote: Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension ".inc" or ".php"? No, it does not. What it the purpose of the ".inc" file then? /Perry --

[PHP] include files, ".php" or ".inc" ?

2004-11-21 Thread Perry Jönsson
Hello, Does it make any difference if you include (include/require/include_once/require_once) files with extension ".inc" or ".php"? Best regards, Perry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php