how do you get the inline form to display without the script? if I remove the script above the iframe code the iframe doesn't load
I have created three simple bare bones test pages which you could perhaps try as these pages demonstrate how the code is broken. feel free to run them from the links or copy the code to create your own pages which should allow you to see exactly what is happening. The important thing is knowing how you have loaded the iframe without the preceding code supplied by wfb.
which sets the session
<title>set session value</title>
This page has simply set a session value for 'send-to' which is echo'd below<br>
<h2><?php echo $_SESSION['send-to']?></h2>
<p> now we will link to three different pages <br>
<a href="testpage1.php" target="_blank">testpage1.php</a> which is a simple page invoking the session and outputting the session value<br>
<a href="testpage2.php" target="_blank">testpage2.php</a> which also invokes the session but has the wfb iframe code inserted.
which test the session
<p>below is the value set in the set-session page :- </p><br>
<h2>" <?php echo $_SESSION['send-to']?> "</h2><br><p> if nothing was displayed between the speech marks then the session has been broken</p>
which loads the session and the wfb code to display the iframe with information below the form.
<p> below is the value assigned to the send-to variable:-</p><br>
<h2>" <?php echo $_SESSION["send-to"];?>" </h2><br>
<p> a value between the speech mark proves that the variable $_SESSION is working at this stage</p>
<iframe height="444" style="border:none; background:transparent; overflow:hidden; width:100%;"
<a href="test-form.php" title="test-form">Check out my CoffeeCup Form</a>
<p> From these reults it would seem that the session is working however if we now revisit <a href="testpage1.php" target="_blank">testpage1</a> now that the wfb script on this page has been run we will see that there is no longer a session value available.<br> If we return to the <a href="set-session.php" target="_blank">set session page</a> to reset the session you can refresh testpage1 as often as you like and the variable remains working until testpage2 is loaded resulting in the wfb script being run. You will also see that although the session variable shows above, if you refresh this page now that the form has loaded you will see that once again the session has been broken.