RE: [PHP-DB] php-db globals turned off
| From: | Paul Miller | Date: | Tue, 27 Jan 2004 19:53:18 +0000 |
| Subject: | RE: [PHP-DB] php-db globals turned off | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32656@lists.php.net to get a copy of this message | ||
Also, many legacy applications use the non $_POST variable definitions.
A problem that I ran into.
- Paul
-----Original Message-----
From: Mignon Hunter [mailto:mignon.hunter@tic.toshiba.com]
Sent: Tuesday, January 27, 2004 1:47 PM
To: holmes072000@charter.net
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] php-db globals turned off
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" <holmes072000@charter.net> 01/28/04 01:15PM
>>> >>>
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 why do you feel the need to make $email? Now you
have two variables to keep track of.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals - www.phparch.com
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php