PHP Form – Load Content based on option selected from dropdown

I have already asked a question regarding this issue here. The answers may not be what I am looking for, so I will try to make this question as detailed as possible.

I have a form which has 4 main pages.

First page asks for personal information. Clicking on Submit takes you to Second Page.
Second page has a dropdown list containing item numbers. Lets say, they are A, B, C, D, E.

When a visitor chooses an item and clicks submit, I want the next page to show content based on the item chosen above.

If visitor chooses option A, the page should load the html page a.html or php page a.php.

If he selects option B, the page should load the html page b.html or php page b.php.bAnd so on for other items, each one having a different page.

I don’t know PHP in detail. Trying to do this for a client and would really appreciate it if you can make your answer as detailed as possible.

Also, I building this form in a website on WordPress.

Thank you!!!

Read more here: PHP Form – Load Content based on option selected from dropdown

Leave a Reply

Your email address will not be published. Required fields are marked *