gerkintrigg Posted November 24, 2009 Share Posted November 24, 2009 I want to define multiple variables under the same name like this: <span id="1" onclick="javascript: MyAjaxRequest(\'ajax\',\'../hello.php?state='state1');">'.$word.'</span> <span id="2" onclick="javascript: MyAjaxRequest(\'ajax\',\'../hello.php?state='state2');">'.$word.'</span> but currently it seems that the variable "state" can only be defined once. Any suggestions? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.