/    Sign up×
Community /Pin to ProfileBookmark

Dymanic Form Validation

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=<&#37; response.write(vvehicleid)%>&vcategory=<% response.write vcategory %>” onsubmit=”[B]return confirm(‘Save changes to selected parts?[/B]‘);”>

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.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@emzipoo4uauthorJun 10.2009 — Anyone ?
×

Success!

Help @emzipoo4u spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...