How do I pass forward a file or file name from a redirect page
I have a main Php page with 75% constant contents. I want to change the other 25% depending on what page calls the main page.<br />Example<br />
www.example.com/a.html<br />
www.example.com/b.html<br />
www.example.com/c.html<br />
<br />
The above pages use an html redirect code<br />
<br />
www.example/x/y/z/mainpage.php<br />
<br />
Pages a, b, and c are redirect pages to mainpage.php<br />
How can I how can I open storya.txt when someone clicks on ~.com/a in the mainpage.php or storyb.txt if they click on ~ .com/b ?<!--content-->An easy way to do this would be to put a variable into the url. Redirect to something like www.domain.com/whatever?page=a and then in the first few lines of the target page, put in a few lines of php code that will load the right content.<br />
<br />
<!-- CODE -->
Code: ( php )<!--content-->
页:
[1]