Hi,
I need some help with some form validation. The issue I have is that the form is dynamic, and, could have 1 line, or 10 plus and as it’s dynamic, I dont know what the text box name will be to validate against it.
At the moment an alert box appears confirming the form submission
<form id=”form1″ name=”form1″ method=”post” action=”linkindexlist_edited.asp?vvehicleid=<% response.write(vvehicleid)%>&vcategory=<% response.write vcategory %>” onsubmit=”[B]return confirm(‘Save changes to selected parts?
BUT what I need to do aswell is validate 2 text boxes to make sure they do not use the ‘ or ” characters.
<input name=”partinfo<% response.write recordset2.fields(“id”)%>” type=”text” id=”partinfo<% response.write recordset2.fields(“id”)%>” value=”<% response.write recordset2.fields(“PartComments”)%>” />
And
<input name=”vehinfo<% response.write recordset2.fields(“id”)%>” type=”text” id=”vehinfo<% response.write recordset2.fields(“id”)%>” value=”<% response.write recordset2.fields(“VehicleComments”)%>” />
Any help much appreciated.