Hi all,
I have a link which I pass certain variables to a 'middle' page. This middle page needs to have some kind of switch statement which determinies which other page to pass these variables onto and then run a pdf from that data.
Basically, I have 3 php files, Level1.php, Level2.php and level3.php. Each of these has a different structure and would take me a year to build into one single file as it's a pdf output file.
So, from my index.php file, I click the link and pass Product Code (pc) and the Level (lv) to my 'middle' page which determines which 'Level' page to open and produce the pdf.
Its the middle page I need help with. Phew! took some time getting there!
So, could someone explain to me please, how this middle page would look, work, what is it I need to do, what would the switch case look like..?
I am fairly new to php, let alone switch cases.
I have my $_GET['pc'] & ['lv'] set at the top, but now I am stuck as to what step to take next...
Thanks in advance
regards
KC