SirChick Posted January 16, 2008 Share Posted January 16, 2008 I have a form with this: <form name="" method="POST" action="test.php" id="Form1"> And this is placed in a file on a directory of: /test14/file.php Now if i hit submit on the for it goes to this url: /test14/test.php But "test.php" is in the main htdocs folder not a sub folder. How can i get it to tell it that so it doesn't check the same folder? Link to comment https://forums.phpfreaks.com/topic/86307-solved-help-with-directory-of-file/ Share on other sites More sharing options...
tapos Posted January 16, 2008 Share Posted January 16, 2008 You can use below <form name="" method="POST" action="../test.php" id="Form1"> the '../' indicate its parents directory. -- Thanks Tapos Pal http://tapos.wordpress.com Link to comment https://forums.phpfreaks.com/topic/86307-solved-help-with-directory-of-file/#findComment-440939 Share on other sites More sharing options...
SirChick Posted January 16, 2008 Author Share Posted January 16, 2008 Thankyou Link to comment https://forums.phpfreaks.com/topic/86307-solved-help-with-directory-of-file/#findComment-441010 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.