Rather than form within a form, provide 3 fields: old password, new password, username Verify against old password. If that's valid, then change password.
Or am I missing something here? ----- Original Message ----- From: "Edward Peloke" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 12:30 PM Subject: RE: [PHP] form within form I apologize I mean when they click the 'verify' button, I verify their username and password before I allow them to update it. Eddie -----Original Message----- From: Rick Emery [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 13, 2003 1:27 PM To: Edward Peloke; Php-General@Lists. Php. Net Subject: Re: [PHP] form within form What do you mean by "verify that info"? Do you mena verify for content, or form, or what... ----- Original Message ----- From: "Edward Peloke" <[EMAIL PROTECTED]> To: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 12:22 PM Subject: [PHP] form within form I am creating a form to allow the user to change his/her password. After the user enters their username and old password, I need to verify that info before they can change their user name and password. So I tried using a form within a form but am having some problems with passing the parameters back and forth...any new ideas would be greatly appreciated. I will fill in all the db stuff later. Thanks, Eddie <FORM name="bidsubmit" action="allan.php" method=post> <TABLE align=center border=1> <TBODY> <TR> <TD> UserName: </TD> <TD vAlign=center> <DIV align=left> <INPUT maxLength=25 size=25 name=uname value='<? print $HTTP_POST_VARS['uname']; ?>'> </B></FONT> </DIV> </TD> <TD></TD> </TR> <TR> <TD> Password: </TD> <TD vAlign=center> <DIV align=left> <INPUT type='password' maxLength=25 size=25 name=pword> </B></FONT> </DIV> </TD> <TD><FORM name="verify" action="allan.php" method=post> <input type=hidden name='uname' value='uname'> <? $pword=crypt('$pword'); ?> <input type=hidden name='pword' value=''> <INPUT type=submit value=Verify name=verify> </td> </TD> </TR> <TR> <TD> New Password: </TD> <TD vAlign=center> <DIV align=left> <INPUT maxLength=25 size=25 name=npword type=password> </B></FONT> </DIV> </TD> <TD></TD> </TR> <TR> <TD> Verify Password: </TD> <TD vAlign=center> <DIV align=left> <INPUT maxLength=25 size=25 name=vnpword type=password> </B></FONT> </DIV> </TD> <TD></TD> </TR> <TR > <td> <INPUT type=submit value=Submit name=bidsubmit> </TD> <TD width='39%'> <DIV align=center><B><INPUT type=reset value=Reset name=reset> </B></DIV></TD></TR></TBODY></TABLE> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php