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? Link to comment https://forums.phpfreaks.com/topic/182718-unique-variables-being-passed-via-a-static-name/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.