I'd suggest having a short script that takes the values in the form of
?a=1&b=2 and converts them into /1/2 then redirects the user there.
Something like this.. might work?
<?php
sort($_GET);
header('Location: http://'. $_SERVER['HTTP_HOST'] .'/'. implode('/', $_GET));
exit;
?>
On Dec 11, 2007 10:13 AM, Gordon Stewart <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I'm not sure whether to send this to a PHP forum, or an HTML forum -
> (I created all the scripts - in PHP)...
>
> I've got a script (already created by me), that parses the values
> from the URL..
>
> EG :- http://www.domain.com/value1/value2/value3/
>
> I want to create an HTML FORM which gathers small bits of info - For a
> subsection of my site..
>
> EG :-
>
> NAME1 (enter name1 here)
> NAME2 (enter name2 here)
> (submit)...
>
> What I want, is the URL to go to :-
>
> http://www.domain.com/option5/NAME1/NAME2/
>
> However, the FORM - submits the information ok - However it goes to
>
> http://www.domain.com/option5/?name1=(value1)&Name2=value2
>
> (which looks bad....)
>
> If I manually type http://www.domain.com/option5/value1/value2 - It
> works perfectly fine....
>
> I can probably work around the issue - Slightly altering the PHP to cope...
>
> However, is there a way in the system, to submit a form, & put the URL
> in the correct format ?
>
> (none that i know of)
>
> --
> G
> NZ community groups - [EMAIL PROTECTED]
> Freecycle Auckland :-
> http://groups.yahoo.com/group/AucklandFreecycle/