newb - basic layout with menu to fill text area
Posted: Wed Nov 26, 2008 9:51 am
I have a menu.php, index.php, and testvars.php
the menu is using <a href='index.php?txtfld=$maintext'>Home</a>
the testvars.php <?php $maintext='stuff to say on first page'; ?>
the index.php is <?
<?php require('testvars.php');
$varname=$_GET['txtfld'];
$whatyasee=$varname;
?>
<?php print($whatyasee); ?>
In all the above mess I am trying to set one index page and one menu page and and one variable page that I can change text so that when a person clicks a link they are essentially at the same page, but with different information.
What function or code should I be looking toward to accomplish this technique?
Thank you
the menu is using <a href='index.php?txtfld=$maintext'>Home</a>
the testvars.php <?php $maintext='stuff to say on first page'; ?>
the index.php is <?
<?php require('testvars.php');
$varname=$_GET['txtfld'];
$whatyasee=$varname;
?>
<?php print($whatyasee); ?>
In all the above mess I am trying to set one index page and one menu page and and one variable page that I can change text so that when a person clicks a link they are essentially at the same page, but with different information.
What function or code should I be looking toward to accomplish this technique?
Thank you