note 22634 added to function.parse-str
| From: | melissaLeavitt at hotmail dot com | Date: | Tue, 25 Jun 2002 18:33:16 +0000 |
| Subject: | note 22634 added to function.parse-str | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32188@lists.php.net to get a copy of this message | ||
A newbie discovery:
My OS is Win2000 pro, and I'm running Apache HTTP Server 2.0.36 with PHP-4.2.1Win32 as cgi. My
configured my httpd file exactly as the site: http://www.thickbook.com/extra/php_apachephp4_win.phtml
specified. Works great but I was receiveing:
parse error: unexpected T_Print in ....
from my html form in my results page.
By changing
<? php
print "$variablename";
?> (code I got straight from a text book)
to
<?
print "$HTTP_POST_VARS[variablename]";
?>
it worked like a charm.
Hope this helps someone!
--
http://www.php.net/manual/en/function.parse-str.php
http://master.php.net/manage/user-notes.php?action=edit+22634
http://master.php.net/manage/user-notes.php?action=delete+22634
http://master.php.net/manage/user-notes.php?action=reject+22634