Jump to content

Load A New Include On Click Link


roundcorners

Recommended Posts

Hello, please can someone advise how I could swap the include loaded into an index page when a link in the existing include is clicked?
<?phpif(isset($_GET['what_ever_you_want_to_call_it'])) // if you have a GET what_ever_you_want_to_call_it loaded do this{	$what_ever_you_want_to_call_it = $_GET['what_ever_you_want_to_call_it'] . ".php";			//$what_ever_you_want_to_call_it = (what_ever_you_want_to_call_it = filename).php		include "$what_ever_you_want_to_call_it";}?>

This is the code for the include.

<a href="index.php?what_ever_you_want_to_call_it=filename">Change include file</a>

here is the link code.Really bad in explaning but I hope you figure it out... ask if you don't understand.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...