Form: Submits to self on any page?
Posted: Fri Jun 11, 2004 12:40 pm
I'm looking to work on my login script today for my site.... it is in the header of every page on my site.... check it out
http://www.bolt3.com/systems.php
So, the top right will be where they can login. So I know this is probably simple but I searched for a bit and haven't found a solid answer but how do I get the form to submit to itself regardless of what page it's on?
So if they login on systems.php it will submit to systems.php but if they are on forums.php it will know to submit to forums.php and not to systems.php
I'm putting the login check in the header so it will be on every page but I just need to know how to make a form submit to itself.
Is it PHP_SELF or something... I know it's probably quite easy.

http://www.bolt3.com/systems.php
So, the top right will be where they can login. So I know this is probably simple but I searched for a bit and haven't found a solid answer but how do I get the form to submit to itself regardless of what page it's on?
So if they login on systems.php it will submit to systems.php but if they are on forums.php it will know to submit to forums.php and not to systems.php
I'm putting the login check in the header so it will be on every page but I just need to know how to make a form submit to itself.
Is it PHP_SELF or something... I know it's probably quite easy.