Attach onsubmit="return checkpasswords()" to your form tag.....

function checkpasswords() {
        if (df["password1"].value==df["password2"].value) {
//      Passwords matched, clear password2, allow form to submit
                return true;
         else {
                alert("Passwords did not match");
                return false;

Cheers - Neil

From: "Vincent Jordan" <[EMAIL PROTECTED]>
Date: Sun, 27 Jun 2004 20:49:47 -0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
Subject: 2 requests: validate 2 password fields as equal and rewrite data

Could someone instruct me or point me in the right direction. I would like to have a <input type=password name=password> <input type=password name=password2> when submit it will check to se if password and password2 are = ( i do not want password2 to end up in POST on submit.)

CaptionKit : Production tools
for accessible subtitled internet media, transcripts
and searchable video. Supports Real Player, Quicktime
and Windows Media Player.

VideoChat with friends online, get Freshly Toasted every
day at : NetMeeting solutions
for a connected world.

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to