validate form

validate form

am 04.01.2006 18:16:27 von KOS

This is a multi-part message in MIME format.

------=_NextPart_000_0014_01C6115A.FAC52230
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have to validate a form witch is like this. It works well exept for =
whats in bold. It should then connect thru a recordsett and check =
another table in the database for a simular number. This it will not do. =
Nothing seems to happend. I must have done somthing wrong so i hove ther =
is someone who can help me.
KOS

<%
' Start trigger
Dim formValidation: Set formValidation =3D new tNG_FormValidation
formValidation.Init
formValidation.addField "fornavn", true, "text", "", "", "", "Fyll inn =
ditt fornavn"
formValidation.addField "etternavn", true, "text", "", "", "", "Fyll inn =
ditt etternavn"
formValidation.addField "epost", true, "text", "email", "", "", "Fyll =
inn din e post adresse"
formValidation.addField "crewnr", true, "regexp", "{crewnr} =3D =
{rs_sjekkAnsattnummer.ansattnummer}", "", "", "Fyll inn ditt =
ansattnummer"
formValidation.addField "passord", true, "text", "", "", "", "Du m=E5 =
velge deg et passord"
tNGs.prepareValidation formValidation
' End trigger
------=_NextPart_000_0014_01C6115A.FAC52230
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">




I have to validate a form witch is like =
this. It=20
works well exept for whats in bold. It should then connect thru a =
recordsett and=20
check another table in the database for a simular number. This it will =
not do.=20
Nothing seems to happend. I must have done somthing wrong so i hove ther =
is=20
someone who can help me.

KOS

 

<%
' Start trigger
Dim =
formValidation: Set=20
formValidation =3D new=20
tNG_FormValidation
formValidation.Init
formValidation.addField =
"fornavn",=20
true, "text", "", "", "", "Fyll inn ditt =
fornavn"
formValidation.addField=20
"etternavn", true, "text", "", "", "", "Fyll inn ditt=20
etternavn"
formValidation.addField "epost", true, "text", "email", =
"", "",=20
"Fyll inn din e post adresse"
formValidation.addField "crewnr", true, =

"regexp", "{crewnr} =3D =
{rs_sjekkAnsattnummer.ansattnummer}", "",=20
"", "Fyll inn ditt ansattnummer"
formValidation.addField "passord", =
true,=20
"text", "", "", "", "Du m=E5 velge deg et =
passord"
tNGs.prepareValidation=20
formValidation
' End trigger


------=_NextPart_000_0014_01C6115A.FAC52230--

Re: validate form

am 04.01.2006 18:53:31 von McKirahan

> "kos" wrote in message
news:LpTuf.3202$zc1.1480@amstwist00...
> I have to validate a form witch is like this. It works well exept for
whats in bold. It should then connect thru a recordsett > and check another
table in the database for a simular number. This it will not do. Nothing
seems to happend. I must have > done somthing wrong so i hove ther is
someone who can help me.
> KOS
>
> <%
> ' Start trigger
> Dim formValidation: Set formValidation = new tNG_FormValidation
> formValidation.Init
> formValidation.addField "fornavn", true, "text", "", "", "", "Fyll inn
ditt fornavn"
> formValidation.addField "etternavn", true, "text", "", "", "", "Fyll inn
ditt etternavn"
> formValidation.addField "epost", true, "text", "email", "", "", "Fyll inn
din e post adresse"
> formValidation.addField "crewnr", true, "regexp", "{crewnr} =
{rs_sjekkAnsattnummer.ansattnummer}", "", "", "Fyll inn > ditt ansattnummer"
> formValidation.addField "passord", true, "text", "", "", "", "Du må velge
deg et passord"
> tNGs.prepareValidation formValidation
> ' End trigger

Where is your recordset logic?

"rs_sjekkAnsattnummer.ansattnummer" can't appear out of nowhere.

Re: validate form

am 04.01.2006 20:29:18 von Balle Klorin

But how do i write that???
KOS




*** Sent via Developersdex http://www.developersdex.com ***

Re: validate form

am 10.01.2006 00:45:04 von Paul

Here are some interesting server-side validation links:

Server-Side Form Validation by Dianna Leech - 12/1/1999
http://www.4guysfromrolla.com/webtech/120199-1.shtml

An Email Validation Routine by Jo=E3o Vieira - 4/11/1999
http://www.4guysfromrolla.com/webtech/041199-1.shtml
Somewhat shorter.

An Email Validation Script by Ben Durbin - 5/19/1999
http://www.4guysfromrolla.com/webtech/051999-1.shtml
Longer.

Form Handler: Some light form validation and error notification.
http://www.asp101.com/samples/form_handler.asp
Uses function to loop thru all fields in a form.

Best regards,
J Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips


Balle Klorin wrote:
> But how do i write that???
> KOS
>
>=20
>=20
>=20
> *** Sent via Developersdex http://www.developersdex.com ***