Hi,
I have a server side generated form which looks like:
<input type='checkbox' class='col3' name='monitor[1]' value='1'><input type='text' class='col4 text' name='monitor_url[1]' value=''><input type='text' class='col5 text' name='monitor_string[1]' value=''><br><br><input type="button" class="negativeButton col5" value="Test Monitoring" onClick="javascript:win2col('/fetching/test_monitoring.php?url=' + monitor_url[1].value + '&string=' + monitor_string[1].value)"><br><br><br><div class='greyBold col1'>Key Facts</div><textarea class='col2 text' rows='3' name='fields[2]' >
</textarea>
<input type='checkbox' class='col3' name='monitor[2]' value='1'><input type='text' class='col4 text' name='monitor_url[2]' value=''><input type='text' class='col5 text' name='monitor_string[2]' value=''><br><br><input type="button" class="negativeButton col5" value="Test Monitoring" onClick="javascript:win2col('/fetching/test_monitoring.php?url=' + monitor_url[2].value + '&string=' + monitor_string[2].value)"><br><br><br><div class='greyBold col1'>Google Ranking</div><input class='col2 text' name='fields[3]' >
Where I am having the problem is that when I click on the button, it says that monitor_url is not defined. Can anybody tell me where I am going wrong in referencing the form values and how to correct this?
Many thanks
I have a server side generated form which looks like:
<input type='checkbox' class='col3' name='monitor[1]' value='1'><input type='text' class='col4 text' name='monitor_url[1]' value=''><input type='text' class='col5 text' name='monitor_string[1]' value=''><br><br><input type="button" class="negativeButton col5" value="Test Monitoring" onClick="javascript:win2col('/fetching/test_monitoring.php?url=' + monitor_url[1].value + '&string=' + monitor_string[1].value)"><br><br><br><div class='greyBold col1'>Key Facts</div><textarea class='col2 text' rows='3' name='fields[2]' >
</textarea>
<input type='checkbox' class='col3' name='monitor[2]' value='1'><input type='text' class='col4 text' name='monitor_url[2]' value=''><input type='text' class='col5 text' name='monitor_string[2]' value=''><br><br><input type="button" class="negativeButton col5" value="Test Monitoring" onClick="javascript:win2col('/fetching/test_monitoring.php?url=' + monitor_url[2].value + '&string=' + monitor_string[2].value)"><br><br><br><div class='greyBold col1'>Google Ranking</div><input class='col2 text' name='fields[3]' >
Where I am having the problem is that when I click on the button, it says that monitor_url is not defined. Can anybody tell me where I am going wrong in referencing the form values and how to correct this?
Many thanks
Comment