pcw Posted March 1, 2009 Share Posted March 1, 2009 Hi, I have got a page called 'logged-in.php' with a form and some links on. This page is located in the 'templates' directory. The 'templates' directory is in the 'software' directory. Now when I use the form or click a link in 'logged-in.php', and the form action or file is located in the 'software' directory, the form action is http://www.mysite.com/software/templates/whatever.php instead of http://www.mysite.com/software/whatever.php What would I need to put in the form action, or link to go to the correct path? I would just type it but I need to install this on several servers. Link to comment https://forums.phpfreaks.com/topic/147462-solved-php-directory-path-in-link-help/ Share on other sites More sharing options...
jackpf Posted March 1, 2009 Share Posted March 1, 2009 If you put ../ it goes to the previous directory level. Is that what you're looking for? Link to comment https://forums.phpfreaks.com/topic/147462-solved-php-directory-path-in-link-help/#findComment-774026 Share on other sites More sharing options...
pcw Posted March 1, 2009 Author Share Posted March 1, 2009 Thats the one. Why is it always more simple that what I think? lol Thank you Link to comment https://forums.phpfreaks.com/topic/147462-solved-php-directory-path-in-link-help/#findComment-774027 Share on other sites More sharing options...
jackpf Posted March 1, 2009 Share Posted March 1, 2009 It always is. No problem. Link to comment https://forums.phpfreaks.com/topic/147462-solved-php-directory-path-in-link-help/#findComment-774029 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.