Hello Roger,
Thanks.
Got the iFrame thing down, and have used it. The javascript thing was "cute," hence the inclusion. I'll work on another method of getting the signup form on the same page.
I just tested the method I described to you and it was reasonably easy, except for the fact that the php code in my variable was treated as string text and only showed up in the source.
Here's the source from the wrapper ---
<?
// Start the session and register the variables
SESSION_START();
header("Cache-control: private");
SESSION_REGISTER("EmptyField");
SESSION_REGISTER("Affiliate");
SESSION_REGISTER("LandingPage");
SESSION_REGISTER("CurrentPage");
$URL_data = explode("/", getenv("REQUEST_URI"));
// Get tracking information form the URL array
$SESSION['EmptyField'] = $URL_data[0] ;
$SESSION['Affiliate'] = $URL_data[1] ;
if ($LandingPage == "") {
$SESSION['LandingPage'] = $URL_data[2] ; }
$SESSION['CurrentPage'] = $URL_data[2] ;
// Fill in the blanks on the page header
$ThisPageName = ucfirst($CurrentPage);
include $CurrentPage . '.php' ;
?>
<html>
<head>
etc.
Here is the stuff from the center cell (I use two methods to see how it works - I know the include method works) ---
<td class="cont"><br>
<?php include "myphpform.php"; ?><br><br>
***************** Variable appears below *****************<br>
<? echo $var2 ?>
</td>
Here are the contents of myPHPcontent.php before rendering
<? $var1="Some Content" ?>
<? $var2 = "
The variable starts here<br>
Empty Field? = <?php echo $EmptyField; ?><br>
Affiliate Num? = <?php echo $Affiliate; ?><br>
Landing Page? = <?php echo $LandingPage; ?><br>
Current Page? = <?php echo $CurrentPage; ?><br>
" ?>
Here's the output of the myphpform.php comapered to the output of the output from the myPHPcontent.php variable $var2 as shown in the browser
The include starts here
Empty Field? =
Affiliate Num? = 10015
Landing Page? = myPHPcontent
Current Page? = myPHPcontent
***************** Variable appears below *****************
The variable starts here
Empty Field? =
Affiliate Num? =
Landing Page? =
Current Page? =
and as shown in the browser source
<td class="cont"><br>
The include starts here<br>
Empty Field? = <br>
Affiliate Num? = 10015<br>
Landing Page? = myPHPcontent<br>
Current Page? = myPHPcontent<br>
***************** Variable appears below *****************<br>
The variable starts here<br>
Empty Field? = <?php echo ; ?><br>
Affiliate Num? = <?php echo 10015; ?><br>
Landing Page? = <?php echo myPHPcontent; ?><br>
Current Page? = <?php echo myPHPcontent; ?><br>
</td>
I feel like I have a mistake in the myPHPcontent file. Could you look at it and advise?