Re: echo and Session Variables
| From: | Erik Price | Date: | Fri, 22 Mar 2002 01:38:51 +0000 |
| Subject: | Re: echo and Session Variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-89628@lists.php.net to get a copy of this message | ||
On Thursday, March 21, 2002, at 06:26 PM, David Johansen wrote:
Thanks that fixed the problem, but I have a question then. Am I supposed to put the ' in the $_SESSION[] in the normal parts of code. Thanks, DaveYou should use either single quotes or double quotes in any associative index. You do not need to use them for numeric indices. $_SESSION['x_Email'] $_POST['loginName'] $form_html['button'] $count[1] $item[7] Don't forget that variables will not expand within single quotes. Use double quotes if you have a variable in your associative index. $_POST["filename{$i}"] Again, not really an issue for numeric indices. $input[$c] Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com