nat(newbie)
|
| Posted: 07/16/2002, 7:06 PM |
|
i have a php code as follow:
1 <?php
2 echo "<input type=\"number\" name =\"nums\">", "<input type=\"button\" onclick=\"gogogo();\" value=\"ok\">";
$num=nums;
3 function gogogo()
4 {
5 for ($i = 1;$i<=$num;$i++)
6 {
7 echo "number#",$i,"<select name=list[$i]>", " <option selected>","</option>","</select>","<p>";
8 }
9 }
10 ?>
it said error on line 2 at onclick=gogogo();
what wrong with that?
help please...
nat
|
|
|
 |
beshoo
|
| Posted: 07/16/2002, 7:24 PM |
|
LOL
my friend
PHP can not work for clinet side
i think it is JAVA SCRIPT
so all your code have to re write .
|
|
|
 |
nat(newbie)
|
| Posted: 07/16/2002, 8:57 PM |
|
any suggestion?
|
|
|
 |
George L.
|
| Posted: 07/21/2002, 7:48 PM |
|
Try escaping your (); Maybe PHP dont like that.
Maybe something like \(\)\;
Haven't test , but you should try that.
|
|
|
 |
|