[HTML]<select name='xnum' onchange="callme(value,0,1,3)">
<option value='0'>0</option>
<option value='1'>1</option>
<option value='2'>2</option>
<option value='3'>3</option>
</select>[/HTML]
The function callme is like this -
Expand|Select|Wrap|Line Numbers
- function callme(x,y,s,f)
- {
- var z=0;
- var msg="",z=0;
- z=eval(x)+eval(y);
- msg = '<table border="0" width="100%" align="center">';
- for(k=y+1;k<=z;k++){
- msg += "<tr><td align=\"center\" class=\"item\" style=\"font-weight:bold;\">Choix "+k+" <input type='text' name='choice[]' size='60'> </td></tr>";
- }
- if ((s==1)&&(f!=5)) {
- msg += "<tr><td align=\"center\" class=\"item\" style=\"font-weight:bold;\">Choix N <input type='text' name='texteextra' size='60'> </td></tr>";
- }
- msg += "</table>";
- document.getElementById("showhere").innerHTML = msg;
- }
On form submit, I'm collecting the data by $_REQUEST['choice'] which is then getting stored to the database. Problem - it's working perfectly in IE7 where I've tested it. However, on checking the same on FF, I'm getting nothing inside $_REQUEST['choice'].
Any hints friends ?
Thanks. :)