PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
there was a sticky topic on this, but I dont see it now.
Anyway, you are probally using a newer version of PHP with register_globals to off. To get the value you need to use $_POST['username'], as you are sending the data through a form. To get data via the url like example.com/index.php?action=dothis, then the code $_GET['action'] would return "dothis".
I'm very sleepy right now so I hope that made sense.
Thanks - Did not know about that but in that case how is IIS6 managing this without $_GET[] etc. All this time I was using $username in IIS6 ?
Thanks a lot
You must have had register_globals turned on on your other server, this has nothing to do with the web server being used and everything to do with how PHP is set up.
You might want to note not to be using $_GET for a login form since the data passed will be jotted down in the history of the browser thus raising security problems.