On Fri, 19 Apr 2002, Andre Dubuc wrote: > Whenever I try: > > print("$_SESSION['sfname']); or print("$_POST['scity'] > > I get a parse error "expecting 'T_STRING' . . ." -- obviously there's nothing > in the array or I haven't set it.
You just have a simple syntax error. You can use any of the following: print $_SESSION['sfname']; print "{$_SESSION['sfname']}"; print "${_SESSION['sfname']}"; But you can't put a bare array dereference inside a quoted string like you tried above. You need to surround it with {curly braces} or take it outside the quoted string. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php