validate form

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

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>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.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>KOS</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><%<BR>' Start trigger<BR>Dim =
formValidation: Set
formValidation =3D new
tNG_FormValidation<BR>formValidation.Init<BR>formValidation.addField =
"fornavn",
true, "text", "", "", "", "Fyll inn ditt =
fornavn"<BR>formValidation.addField
"etternavn", true, "text", "", "", "", "Fyll inn ditt
etternavn"<BR>formValidation.addField "epost", true, "text", "email", =
"", "",
"Fyll inn din e post adresse"<BR>formValidation.addField "crewnr", true, =

"regexp", "{crewnr} =3D =
<STRONG>{rs_sjekkAnsattnummer.ansattnummer}",</STRONG> "",
"", "Fyll inn ditt ansattnummer"<BR>formValidation.addField "passord", =
true,
"text", "", "", "", "Du m=E5 velge deg et =
passord"<BR>tNGs.prepareValidation
formValidation<BR>' End trigger</FONT></DIV></BODY></HTML>

------=_NextPart_000_0014_01C6115A.FAC52230--
KOS [ Mi, 04 Januar 2006 18:16 ] [ ID #1126981 ]

Re: validate form

> "kos" <makita [at] online.no> wrote in message
news:LpTuf.3202$zc1.1480 [at] 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.
McKirahan [ Mi, 04 Januar 2006 18:53 ] [ ID #1126982 ]

Re: validate form

But how do i write that???
KOS




*** Sent via Developersdex http://www.developersdex.com ***
Balle Klorin [ Mi, 04 Januar 2006 20:29 ] [ ID #1126983 ]

Re: validate form

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=2E 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
>
>
>
>
> *** Sent via Developersdex http://www.developersdex.com ***
Paul [ Di, 10 Januar 2006 00:45 ] [ ID #1133926 ]
Webserver » microsoft.public.inetserver.asp.db » validate form

Vorheriges Thema: Tutorial on Self-Joins?
Nächstes Thema: How to get this output?