Aucun Posted June 3, 2010 Share Posted June 3, 2010 I'm looking to take my 3 html pages and make one php page that will change text on a textarea based on what link was clicked. Any help at all would be great thanks. Link to comment https://forums.phpfreaks.com/topic/203809-php-vars-and-including-text-for-a-text-file/ Share on other sites More sharing options...
TheBG Posted June 4, 2010 Share Posted June 4, 2010 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> Link to comment https://forums.phpfreaks.com/topic/203809-php-vars-and-including-text-for-a-text-file/#findComment-1067441 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.