Jump to content

How do you link or "form post" to a directory?


Recommended Posts

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.