Foser Posted June 30, 2007 Share Posted June 30, 2007 instead of doing <?php $_SERVER['PHP_SELF']; ?> can i just name the file name of that same file.? so im workign on index.php, and i want the action to be in index.php? or do i have to put PHP_SELF if i do some php in the file. Quote Link to comment https://forums.phpfreaks.com/topic/57815-solved-php_self-question/ Share on other sites More sharing options...
sKunKbad Posted June 30, 2007 Share Posted June 30, 2007 you can do either Quote Link to comment https://forums.phpfreaks.com/topic/57815-solved-php_self-question/#findComment-286449 Share on other sites More sharing options...
mmarif4u Posted June 30, 2007 Share Posted June 30, 2007 Also u can leave it blank. Like: <form method='post' action=''> For the same page. Quote Link to comment https://forums.phpfreaks.com/topic/57815-solved-php_self-question/#findComment-286451 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.