
I am trying to send some html content from an HTML page to my form confirm.php page.
I am using this script - which works fine in getting the content to the form.
<script>
<!--
function myInput()
{
myheader = document.getElementById("mainHeader").innerHTML;
document.myForm.myheader.value = myheader;
}
//-->
</script>
But I can't seem to configure my "Confirm options" to get it to display correctly.
If I just use [myHeader] it displays as HTML script (on the page not the source)
If I use this:
<!DOCTYPE html>
<html lang="en">
<header id="mainHeader"></header>
<script>
x="[myheader]";
document.getElementById("mainHeader").innerHTML=x;
</script>
</html>
It does not display at all.

I have also tried this:
<script>
document.getElementById("mainHeader").innerHTML=[myheader];</script>
www.woodentopstoys.co.uk - My Wooden Toy Shop.
I use CoffeeCup HTML Editor, WIS, Direct ftp, Sitemapper, Website Insite & RED Personal to create my websites.
Send your parcels with Despatch Bay! Signup using this code and get £10.00 worth of free shipping http://despatchbaypro.com/s/1H431