CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 somebody check this php code please....

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.