PHP Muliple Forms GET method Help Needed

by 2 replies
3
Basically i want to make the urls search engine friendly, I want the district name to come up in the url after the user chooses the district from the select menu(reason why i have set the above forms property to OnChange=href.blah).

But the problem I am facing is, once the user selects the district, its been redirected to lets say
localhost/state/district1/ which as an invalid page, i understand i should create a directory
on the server like state>district>index.php & then process the next form according to the values recieved,
but the problem is there are plenty of districs listed according to the state selected..
(yea its kinda complex)

I would like to process the forms back to back . Like if a user chooses a district,
the url should change, lets say a user selected 'district1' from the select options
The url should change from localhost/state/ to localhost/state/district1/ & then according
to the district it should goto next form, that is 'branch' form. I donno how to do that.. Somebody please help me..


Please somebody help me to sort this out.. have been playing around with it since 2days & din't successed.
I hope some warriors would me out.. Thanks
#programming #forms #method #muliple #needed #php
  • You're going to need to learn how to use mod_rewrite if you want to have data in the URLs. Basically, you'll strip part of the URL and send it back to the server as part of the query string. You'll use that data in your forms processing.
  • thanks for the clue SteveJohnson
    I figured out the way

Next Topics on Trending Feed