Forum Moderators: coopster
Basicaly I'm getting information from the db with one php page, getting that info with a javascript, and displaying the result on my main page. What I need to do now, is have it so a user can select an option, using a drop-down or something, on the main page, and use that option as part of the query. So...
user selects: Vancouver
posted to php file as city
php file $city = $_POST['city'];
query = 'SELECT * FROM $city';
This file then outputs xml, so I cant go to that page and have a redirect. I need everything to stay on the index page.
Any suggestions/magic?