Passing data from one page to the next
I am very new so please bare with me.
I know how to submit a form with POST and echo a page in php.
I have a feeling that i am missing a general concept though.
Lets say i have a start page where the user selects a brand of car; ford, Chevy etc. I want to load a second page called for example selectedCarCo.html that has generic items no matter the car selected and then selection specific data as well.
My question is I essentially need a method to get the selection from the first page to the second and load data based on that selection via AJAX or some other method.
Thanks for the help.
I would do this all server-side, as you describe it. No Ajax needed, you just pass the manufacturer in the POST string, and the page selectedCarCo.php (not html) looks in $_POST, finds "Chevy" and displays both the Chevy and the generic stuff. Pretty easy.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)