Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Revisions

2 of 3
insert duplicate link

Passing php array to javascript function

Possible Duplicate:
passing array from php to javascript

i need to pass 'PhP array' to 'javascript function' here is my code...

 $eqt_param=Array();
for($i=1; $i<3; $i++)
{
 <select name="'.$eqt_param[$i].'" onchange="send(this.name)">
 
}

i want to pass this to

 <script>
 function send(Eqt_Param)
 {
 }
 </script>

after passing the value to javascript function i need to have 3 variable holding the values of an array...please help me to fix this.....

Friend
  • 1.3k
  • 11
  • 39
  • 62
default

AltStyle によって変換されたページ (->オリジナル) /