Iam making an app which has one index.php file. I also have these other pages:
contact_form_homepage.php
contact_form_config.php
contact_form_doc.php
contact_form_stats.php
contact_form_premium.php
Iam looking for a way I can have all the pages linked to the index.php such that whenever a user clicks Home it takes him to contact_form_homepage.php and whenever he clicks Config it takes him to contact_form_config.php and so on and forth
i.e
<a href="http://apps.facebook.com/mtkenya-dev/index.php?p=contact_form_config&tab=contact_form_config&page_id=" title="contact_form_config" class="fbtab">Configuration</a>
Which php magic should I use? Kindly help
You can do one thing, depending on the query string paramter like “p=contact_form_config”,
you can load appropriate page in index.php file.
d.g for when query string parameter is p=contact_form_config then you can use the below code
Hope this will be helpful 🙂