ok, heres the script code and it works..partialy
function writit(text) {
if (document.getElementById) {
x = document.getElementById('test');
x.innerHTML = '';
x.innerHTML = '<?php include ("' + text + '");?>';
}
else if (document.all) {
x = document.all['text'];
x.innerHTML = text;
} else if (document.layers) {
x = document.layers['test'];
var text2 = "<?php include ('tst.php');?>";
x.document.open();
x.document.write(text2);
x.document.close();
}
}
okay the prob... if I use this string '<?php include (" ' + text + ' ");?>'; I get an error
Error: unterminated string literal
Source File: http://localhost/testt/t.php
Line: 11, Column: 14
Source Code:
x.innerHTML = '<br />
if I use this string '<?php include ("tst.php");?>'; everything works fine.
It seems like there is something wrong with the way the string is sewed together.
Anyone an idea? this thing drives me crazy.
than you
cheers