The elements that are repeated with innerHTML of javascript are not being posted in PHP.
But the minutess[] and hours[] are not being posted. Does anyone have idea about it? Neither i can see these form elements in view source too.Code:function CreateForm(fm){ var str = ""; var str_1 = ""; str = "<select name=\"cmbDays[]\" id=\"cmbDay[]\"><option value=\"1\" selected=\"selected\">Sunday</option><option value=\"2\">Monday</option>"; str += "<option value=\"3\">Tuesday</option><option value=\"4\">Wednesday</option><option value=\"5\">Thursday</option><option value=\"6\">Friday</option>"; str += "<option value=\"7\">Saturday</option></select>"; str += " Hour : <input name=\"housrs[]\" type=\"text\" id=\"housr[]\" value=\"00\" size=\"4\" /> "; str += " Minute : <input name=\"minutess[]\" type=\"text\" id=\"minutes[]\" value=\"00\" size=\"4\" />"; if(fm.prg_times.value != "" && fm.prg_times.value != 0){ for(i = 0; i < fm.prg_times.value; i++){ str_1 += "<br>" + str; } } else{ str_1 = str; } document.getElementById('ScheduleForm').innerHTML = str_1;
That means i want to create some extra form text boxes dynamically with some events.
Can anyone find the solution please?
With Regards
Raju Gautam



Reply With Quote

Bookmarks