Hmmm - got an unexpected $end at the end of the script....
So I tried playing with the <<<ETX wrapper.
eg..
PHP Code:
$formSource=<<<STX
<form id="form" name="form" method="get" action="">
<label>
<input name="url" type="text" id="url" size="100" />
</label>
<label>
<input type="submit" name="button" id="button" value="Go" />
</label>
</form>
ETX;
PHP Code:
$formSource='<<<STX
<form id="form" name="form" method="get" action="">
<label>
<input name="url" type="text" id="url" size="100" />
</label>
<label>
<input type="submit" name="button" id="button" value="Go" />
</label>
</form>
ETX';
PHP Code:
$formSource='<<<STX
<form id="form" name="form" method="get" action="">
<label>
<input name="url" type="text" id="url" size="100" />
</label>
<label>
<input type="submit" name="button" id="button" value="Go" />
</label>
</form>
ETX>>>';
PHP Code:
$formSource='<<<ETX
<form id="form" name="form" method="get" action="">
<label>
<input name="url" type="text" id="url" size="100" />
</label>
<label>
<input type="submit" name="button" id="button" value="Go" />
</label>
</form>
ETX';
The furthest I got was "Call to a member function appendChild() on a non-object" - so I'm guessing it wasn't parsing the string correctly... can't find many pages explaining STX..ETX... ASCII characters and syntax.
Am I missing something??
Rich