If your posting a page to itself you can either use,
or,Quote:
<form method="post" action="<?php echo $PHP_SELF;?>">
where login.php is the file that this "<form method......." is actually in...Quote:
<form method="post" action="login.php">
Printable View
If your posting a page to itself you can either use,
or,Quote:
<form method="post" action="<?php echo $PHP_SELF;?>">
where login.php is the file that this "<form method......." is actually in...Quote:
<form method="post" action="login.php">
The first one is dynamically inserted, while the second one is hardcoded. So if you change the filename, the first one will still work, while the second one will fail. (Though this hardly ever happens that you would need to change the filename for any reason.)
Since the rendered output is same, there is no difference as far as client is concerned.
Pradeep :)