Need help with $_SERVER['PHP_SELF']
Posted: Mon Feb 25, 2008 11:52 am
Hey there, I'm having a problem getting $_SERVER['PHP_SELF'] to work properly. Im trying to attach it to a form... so I have it like this
But when I click on the submit button for the form it gives me an error and the URL looks like this
http://localhost/.'/currentpage.php
I can't for the life of me find a solution on the internet and was wondering if you guys had a clue on what was going on!
Code: Select all
$server = $_SERVER['PHP_SELF'];
<FORMS METHOD="POST" ACTION="$server">
http://localhost/.'/currentpage.php
I can't for the life of me find a solution on the internet and was wondering if you guys had a clue on what was going on!