Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Location
    United States
    Posts
    6
    Thanks
    2
    Thanked 0 Times in 0 Posts

    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.

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,105
    Thanks
    23
    Thanked 594 Times in 593 Posts
    Please do not double post. I sort of answered you in this thread Passing data from one page to the next

    Close this one and continue discussion in the link given. Double posting means you never know where the answers are given to you.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •