Posted by amerar@iwc.net on 09/05/07 15:03
Hi All,
I cannot get this stupid Javascript code to embed properly in my PHP.
It does not show the 'select' button. I believe it is my quotes,
maybe Javascript does not like something.......
Anyhow, can someone help me with the syntax?? I'd really appreciate
it. The code works fine in just plain HTML......
echo "<TABLE><TR>\n";
echo " <TD><input type=text name='partydate' size=10 maxlength=10
value='$party_date'>\n";
echo " <script language='javascript'>\n";
echo " <!-- if (!document.layers) {\n";
echo " document.write(\"<input type=button
onclick='popUpCalendar(this, editparty.partydate, \"mm/dd/yyyy\")'
value='select' style='font-size:11px'>\") }\n";
echo " //-->\n";
echo " </script><BR><CENTER><span class=body><B>Party Date</
CENTER>\n";
echo " </TD>\n";
echo "</TABLE>\n";
[Back to original message]
|