i want to get the values like rent,apartment,banglore from the url and be stored in variables…. in the form i used post method.. based on this values the data searches the database and displays the result…
You can then explode on the slash to get the URL parts, but I think you need to clarify your requirements a bit more - will the URL always follow this exact structure? What happens if the URL has fewer elements? If the URL is not coming via rewrite, where is the value coming from?
@criterion9Feb 22.2010 — #I'd use mod_rewrite (assuming apache) and convert them into GET variables. That is probably the easiest way and doesn't require any extra coding in the application.