RE: [PHP-DB] php-db globals turned off

2004-01-27 Thread Paul Miller
you just use the extract function. Hope that is a bit clearer. - Paul -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 2:21 PM To: [EMAIL PROTECTED] Cc: 'Mignon Hunter'; [EMAIL PROTECTED] Subject: Re: [PHP-DB] php-db globals turned of

Re: [PHP-DB] php-db globals turned off

2004-01-27 Thread Stuart
Mignon Hunter wrote: How do most of you handle variables in next page after passing. For instance. What I have right now (very ugly) is: $email = $_POST['emal']; $first = $_POST['first']; $lastl = $_POST['last']; Then I work with $email, $first etc... I will have to do this for many, many varia

Re: [PHP-DB] php-db globals turned off

2004-01-27 Thread John W. Holmes
Mignon Hunter wrote: So it will be easier to use in my script on this page, where I'm creating several query strings with the data. I understand it's easier to type $email vs. $_POST['email'] at first, but not once you get used to it. Both are variables that can be used in the same exact way, o

Re: [PHP-DB] php-db globals turned off

2004-01-27 Thread John W. Holmes
Paul Miller wrote: Also, many legacy applications use the non $_POST variable definitions. A problem that I ran into. So how is saying $email = $_POST['email'] going to help you in that case?? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Maga

RE: [PHP-DB] php-db globals turned off

2004-01-27 Thread Paul Miller
rod[] = $_POST['prod']; } With extract, if $_POST['prod'] is an array, then prod will be an array also. - Paul -Original Message- From: Mignon Hunter [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 2:09 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject

RE: [PHP-DB] php-db globals turned off

2004-01-27 Thread Mignon Hunter
How would you extract variables from arrays? before I was doing $prod[] = $_POST['prod']; $choice[] = $_POST['choice']; then I could iterate through $prod[], $choice[] Mignon Hunter Webmaster Toshiba International Corporation (713) 466-0277 x 3461 (800) 466-0277 x 3461 >>> "Paul Miller" <[EMA

RE: [PHP-DB] php-db globals turned off

2004-01-27 Thread Paul Miller
Also, many legacy applications use the non $_POST variable definitions. A problem that I ran into. - Paul -Original Message- From: Mignon Hunter [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 1:47 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] php-db

Re: [PHP-DB] php-db globals turned off

2004-01-27 Thread Mignon Hunter
So it will be easier to use in my script on this page, where I'm creating several query strings with the data. Mignon Hunter Webmaster Toshiba International Corporation (713) 466-0277 x 3461 (800) 466-0277 x 3461 >>> "John W. Holmes" <[EMAIL PROTECTED]> 01/28/04 01:15PM >>> Mignon Hunter wrot

Re: [PHP-DB] php-db globals turned off

2004-01-27 Thread John W. Holmes
Mignon Hunter wrote: How do most of you handle variables in next page after passing. For instance. What I have right now (very ugly) is: $email = $_POST['emal']; $first = $_POST['first']; $lastl = $_POST['last']; Why are you recreating variables? You already have a variable $_POST['email'], so

RE: [PHP-DB] php-db globals turned off

2004-01-27 Thread Paul Miller
I love this one... extract($_REQUEST); but it undermines the whole reason PHP moved to the new default parameter specification. Be careful with you coding. I use it, and it makes things much like the pre 4.3.2 release without changing the ini files. You just have to specify the default $_serve