|
-
Dec 12th, 2008, 06:25 AM
#1
Thread Starter
Frenzied Member
Any difference between these two?
If your posting a page to itself you can either use,
<form method="post" action="<?php echo $PHP_SELF;?>">
or,
<form method="post" action="login.php">
where login.php is the file that this "<form method......." is actually in...
Last edited by Jmacp; Dec 12th, 2008 at 06:33 AM.
-
Dec 12th, 2008, 06:39 AM
#2
Re: Any difference between these two?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|