PDA

View Full Version : get current page URL


topvip
2006-10-18, 12:30 AM
Useful when a PHP script needs to call itself. Often used for form actions. Use the $_SERVER predefined variables to access and return the current URL of the page. <?php
echo $_SERVER['SCRIPT_NAME']
?>