problem putting javascript in php...
Posted: Thu Jun 09, 2005 5:32 am
I have a problem with putting some javascript in php, probably not getting the quotes in the right place etc. could someone please help.
Below is an example of the code as normal HTML:
but what I want to be able to do is put this within a php variable example shown below (this is the code I can't get to work):
Simon
Below is an example of the code as normal HTML:
Code: Select all
<input name="e;btnReset"e; type="e;reset"e; id="e;btnReset"e; value="e; Reset "e; class="e;buttonNormal"e; onmousedown="e;{this.className='buttonSelected';}"e; onmouseover="e;{this.className='buttonOver';}"e; onmouseout="e;{this.className='buttonNormal';}"e;>Code: Select all
$body.= "e;<input type='button' name='btnBack' value=' Back ' class='buttonNormal' onclick='history.back();' class='buttonNormal' onmousedown='{this.className='buttonSelected';}' onmouseover='{this.className='buttonOver';}' onmouseout='{this.className='buttonNormal';}'>"e;;