Jump to content

Php vars and including text for a text file


Aucun

Recommended Posts

A PHP solution would be to create an 'include' area on the index page that would show content based on a query line $_GET array. Very simple example

 

<?php

if( $_GET['action'] == 'page1') {

  include'page_1.php';

} else if( $_GET['action'] == 'page2') {

    include'page_2.php';

}

and so on

 

links would look something like this

<a href='index.php?action=page1'>Page 1</a>

 

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.