RE: [PHP] form within form

2003-02-13 Thread Edward Peloke
ALso, global variables are off...

-Original Message-
From: Edward Peloke [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 1:22 PM
To: Php-General@Lists. Php. Net
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
TDFORM 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=centerBINPUT 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




Re: [PHP] form within form

2003-02-13 Thread Rick Emery
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
TDFORM 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=centerBINPUT 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




RE: [PHP] form within form

2003-02-13 Thread Cory Hicks
Can we see some code? Maybe we could help..

Cory


On Thu, 2003-02-13 at 12:26, [EMAIL PROTECTED] wrote:
 ALso, global variables are off...
 
 -Original Message-
 From: Edward Peloke [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 13, 2003 1:22 PM
 To: Php-General@Lists. Php. Net
 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
 TDFORM 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=centerBINPUT 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
-- 
Cory Hicks [EMAIL PROTECTED]
TRI-International


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] form within form

2003-02-13 Thread Cory Hicks
My bad...I see your code now.


On Thu, 2003-02-13 at 12:22, [EMAIL PROTECTED] wrote:
 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
 TDFORM 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=centerBINPUT type=reset value=Reset
 name=reset
 /B/DIV/TD/TR/TBODY/TABLE
-- 
Cory Hicks [EMAIL PROTECTED]
TRI-International


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] form within form

2003-02-13 Thread Edward Peloke
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
TDFORM 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=centerBINPUT 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




Re: [PHP] form within form

2003-02-13 Thread Jason Wong
On Friday 14 February 2003 02:22, Edward Peloke wrote:
 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.

You cannot nest form tags. Sort that out then worry about the PHP.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
I know what custody [of the children] means.  Get even.  That's all
custody means.  Get even with your old lady.
-- Lenny Bruce
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] form within form

2003-02-13 Thread Marek Kilimajer
Forms cannot be nested, there can be no form within form. Simply use 4 
fields - username, oldpassw, newpassw, newpassw2 (must be equal 
newpassw), when the form is submited, check if username and oldpassw are 
valid, newpassw = newpassw2, and if everything is right, you can update 
to the new password

Edward Peloke wrote:

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
   TDFORM 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=centerBINPUT 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




Re: [PHP] form within form

2003-02-13 Thread Rick Emery
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
TDFORM 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=centerBINPUT 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