Re: Re: Javascript in PHP

From: Date: Tue, 24 Jun 2003 14:04:17 +0000
Subject: Re: Re: Javascript in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-152613@lists.php.net to get a copy of this message
I missed the 1st post but could this be related to form name being 'crimetype' and the javascript tryin to access the form 'ctype' ? At 15:55 24-6-03, you wrote:
i think you have to add "\n" after each row of java script code. .... $js .= "}\n"; afaik the ; handles that but indeed i would let the functions start at the beginning of a new line.
"Info@Best-It" <info@best-it.biz> schrieb im Newsbeitrag news:BB1DBFB5.91E2%info@best-it.biz... How can I get a script to work on a page that has HTML generated by PHP and a javascript with functions called by an checkbox? <script>function CheckBox1(){var box1 = window.document.ctype.wr;var box2 = window.document.ctype.pfo;var box3 = window.document.ctype.pr;if (box1.checked == true ) {box2.checked = false;box3.checked = false;}} [....]
<form name="crimetype" method="post" action=""> <input type="checkbox" name="WR" value="1" onClick="return CheckBox1();"> <input type="checkbox" name="PFO" value="2" onClick="return CheckBox2();"> <input type="checkbox" name="PR" value="3" onClick="return CheckBox3();"></form></td>


« previous php.general (#152613) next »