I worked on a simple script that uses a get var to echo a certain somethin. I think I am going about it all wrong, do you see anything I need to change?
Main.php:
Code: Select all
<!-- header -->
<?php
include ('header.php');
?>
<!-- main content -->
<table width="100%" height="75%">
<tr>
<td width="100%" valign="top">HERE</td>
</tr>
</table>
<!-- footer -->
<?php
include ('footer.php');
?>Code: Select all
<?php
if(isset($_GET['locator'])){
switch($_GET['locator']){
case 'home':
header("Location: mainContent.php");
break;
case 'web':
header("Location: webContent.php");
break;
}
} else {
include('mainContent.php');
}
?>The 'mainContent.php' is a simple echo command.
I would like to have the resulting content of the getID.php to be displayed in the table with the HERE line, but I'm not sure of how. I know it has to be a "?locator=home" type of link, but what would be the rest of the link? "<a href="www.thesite.com?locator=home>Click here!</a>" where thesite.com is my site?
Would iFrames be any help here, to just change the content of the iFrame?
Hope this made sense, I'd be glad to reiterate if necessary.
Thanks
-S