php

hello

my problem regarding php project

the problem is that in project i have 4 page
1.php , 1a.php , 2.php , 2a.php

these four page come at random means from these page any one come first

so i want that if 1.php page come first then 1a.php page come and then conclusion.php.

if 1a.php come first then 1.php page come and then conclusion.php

if 2.php come first then 2a.php page come and then conclusion.php

and if 2a.php come first then 2.php page come and then conclusion.php

please suggest me code for that

Why are you doing this?

You can have a single page load dynamic content. So, why would you randomly have a page selected, when you could just change the content that is displayed on that page?

  1. Find a way to get the corresponding page number into a variable some how.
  2. Use a switch statement (you could use nested if statements, but a switch statement would be easier).
  3. Base on the page number that is generate the condition would simply use an include statement inside an iframe?
  4. Tada your done. :wink:

If you have any code, people here could help you even more.

Sponsor our Newsletter | Privacy Policy | Terms of Service