Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-06-2013, 08:55 PM   PM User | #1
BlueGhost79
New to the CF scene

 
Join Date: Oct 2012
Location: United States
Posts: 6
Thanks: 2
Thanked 0 Times in 0 Posts
BlueGhost79 is an unknown quantity at this point
PHP Concepts - page loading

Hi,
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 selectedPage.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.

Is the correct approach to POST my selection to a php page and then echo out the code for the page including the generic items? I feel there must be a better way where i can have a normal html page and then access the car selection some how via javascript and act accordingly.

Please advise, sorry not sure if this is a JS, php or general question.

Thanks for the help.
BlueGhost79 is offline   Reply With Quote
Old 01-06-2013, 11:43 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,498
Thanks: 18
Thanked 361 Times in 360 Posts
sunfighter is on a distinguished road
Please do not double post. I sort of answered you in this thread http://www.codingforums.com/showthread.php?t=285382

Close this one and continue discussion in the link given. Double posting means you never know where the answers are given to you.
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:50 PM.


Advertisement
Log in to turn off these ads.