Thanks Eric,
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.
1_
https://bridlington.net/set-session.php which sets the session
<?php session_start();
$_SESSION['send-to']="sendtome@myemail.com" ;
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>set session value</title>
</head>
<body>
This page has simply set a session value for 'send-to' which is echo'd below<br>
<h2><?php echo $_SESSION['send-to']?></h2>
<hr>
<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.
</body>
2)
https://bridlington.net/testpage1.php which test the session
<?php
session_start(); ?>
<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>
3)
https://bridlington.net/testpage2.php which loads the session and the wfb code to display the iframe with information below the form.
<?php
session_start();
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
</head>
<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>
<body>
<script type="text/javascript">document.write(unescape("%3Ciframe id=\"fb_iframe\" src=\"test-form.php" + window.location.search + "\" width=\"100%\" height=\"444\"allowtransparency=\"true\" scrolling=\"no\" frameborder=\"0\"%3E<a href=\"test-form.php\" title=\"test-form\">Check out my CoffeeCup Form</a>%3C/iframe%3E"));</script>
<noscript>
<iframe height="444" style="border:none; background:transparent; overflow:hidden; width:100%;"
id="fb_iframe" src="test-form/test-form.html">
<a href="test-form.php" title="test-form">Check out my CoffeeCup Form</a>
</iframe>
</noscript>
<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.
</body>
</html>