Jump to content

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


rv20

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.