In test.php:
<?php
$result = "test";
echo '<script type="text/javascript">parent.showThanksDiv(\"<?php echo $result;?>\");</script>';
?>
and in test.html
<script type="text/javascript">
function showThanksDiv(text){
document.getElementById("myThanksDivtext").value = text;
}
</script>
That's not working. It seams Im not passing php variables correctly. Any ideas?