rv20 Posted May 22, 2009 Share Posted May 22, 2009 Usually you would <a> link to a file with a known extension like *.html, *.php for example but quite often i see source code linking to what i would call a directory like, <a href = /admin/site> click </a> whereas i would do <a href = /admin/site.html> click </a> or <form method = "post" action ="/admin/panel" > or i would do <form method = "post" action ="/admin/pane.php"> So if i was to try these methods in an html/php page then nothing happens the page doesn't try and navigate you just click and nothing, why then when i click a page that uses this method that had obviouly been setup to do so, it takes you to where it states, or it "form posts" to where it states. It is obviously a totally different method which i can't find out what or how to set this kind of system up. Quote Link to comment https://forums.phpfreaks.com/topic/159254-how-do-you-link-or-form-post-to-a-directory/ Share on other sites More sharing options...
Axeia Posted May 22, 2009 Share Posted May 22, 2009 A directory automatically looks up an index.html/.php/.jsp/.whateverTheServerIsConfiguredToLookUp. But the links you're often seeing are the work of mod rewrite or some creative use of apache's behaviour to go up a directory when it can't find a file. Quote Link to comment https://forums.phpfreaks.com/topic/159254-how-do-you-link-or-form-post-to-a-directory/#findComment-839931 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.