toiditimtoi992 Posted October 30, 2010 Share Posted October 30, 2010 i am learning PHP , but i do not understand $_SERVER['PHP_SELF'] .help me. thank you Link to comment Share on other sites More sharing options...
boen_robot Posted October 30, 2010 Share Posted October 30, 2010 See relevant documentation. Link to comment Share on other sites More sharing options...
RobberBaron Posted October 31, 2010 Share Posted October 31, 2010 $_SERVER['PHP_SELF'] simply returns a pathname of the current page on the server being executed. So if you had a PHP script and needed to send a form to the same page you could use:<form action="<?php Echo($_SERVER['PHP_SELF']); ?>" method="post"> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.