Jump to content

Code Question


kwdelre

Recommended Posts

Hello,

 

I am writing a very basic quiz program. I have three pages. The Quiz page. The Process page. And the Results Page.

I have the Quiz page's form "action" to the Process page where questions are checked and a score is determined. Then I want those results displayed on the results page. So basically I want to use the quiz page, and when it is submitted it should go to the Results page while having used the Process page.

 

Right now I have the Process page "included" on both the quiz and results page to use variables and stuff. And the form action is set to the Process page. What do I need to add to get it to do what I described above?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/216223-code-question/
Share on other sites

I'm not sure that you can do a post action to an included page.

 

You could, however, include the results page in the process page (that being the only include). Therefore, you go to the quiz page, it directs you to the process page upon posting results, and it includes (or rather, it displays) the results page.

 

 

Link to comment
https://forums.phpfreaks.com/topic/216223-code-question/#findComment-1123842
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.