Online Advertising - Web Advertising - Remortgages - Loans - Xbox Mod Chip

PDA

View Full Version : Changing the way a get request is submitted from within a form


amel
Apr 25th 2008, 6:33 pm
Hi

Is there any way to change the way that a "get" form sets up the URL? If i have a form.

<form name="test" method="GET" action="/index">
<input type="text" name="id" value="2" />
<input type="submit" name="submit">
</form>

Is there a way to make that form submit to a URL of:
example.com/index/id/2 instead of example.com/index.php?id=2, and to not have it affect the way that the server variables are interpreted or the $_GET variable set up.

Any help would be appreciated...

Cybernaut
Apr 26th 2008, 5:49 am
This is not possible AFAIK. You can instead use POST method to avoid query strings in urls.