Basically I want, or think I want, an unframed mainPage.php to open a second page with a sidebar. The secondMainPage will have a button that returns the user to mainPage.php. If mainPage.php is split then the split is inherited downstream and gets itself nested and creates other complications.
This script below gives me an error message that says there’s an illegal ‘$’ dollarbill sign on a line where there is no such symbol. The only $ on the page is the one accompanying _Post. Do I have this set up right?
<?php
if(isset($_Post[‘searchTerm’])){
echo “<FRAMESET COLS=”10%,*”>”;
echo “<FRAME SRC=”sidepage.html” NAME=SIDEBAR>”;
echo “<FRAME SRC=”secondMainPage.php” NAME=secondMainPage>”;
echo “</FRAMESET>”;
}else{
?>
<HTML>
<body>
<form method =”POST” action=”mainPage.php” >
<center><input name=”searchTerm” type=”text”></center>
<br>
<center><input type=”submit” value=”Search”></center>
</form>
</body>
<?php
};
?>
</HTML>