Page 1 of 1
I also can't POST
Posted: Wed May 22, 2002 9:10 pm
by antaresdata
I send vars to a PHP file and <?echo $contact?> wont work. If I place <? phpinfo();?> i can see the variable was passed to the php file. This is a new install on a win 2K. In phpinfo() PHP Variables this is what I get. It is passing the correct but echo does not work.
_POST["contact"] Test Name
Thanks,
Posted: Wed May 22, 2002 9:29 pm
by sam
php 4.1.2 < ships with register globals off so you will have to use the $_POST["contact"] style of data retreval or edit the php.ini as follows:
; edit this line in your file
register_globals=On
Cheers Sam
Posted: Wed May 22, 2002 9:33 pm
by volka
take a look at
register_globals
if set to false the posted variables aren't accessible by $<name> but
$_POST or
$_REQUEST
p.s.: and again somebody was faster than I was
p.p.s.: how about a sticky (readonly) faq-thread with the title "READ THIS before posting"?

Posted: Thu May 23, 2002 11:20 am
by yjanni
>sigh<
dont you just wish that everyone installing php 4.2.1 would read this article:
http://www.webmasterbase.com/article.php?pid=0&aid=758
Simply put DO *NOT* TURN REGISTER GLOBALS ON!!!
j
It works
Posted: Thu May 23, 2002 9:29 pm
by antaresdata
I turned register_globals = off and used
$company = $_REQUEST['company']; instead of just $company.
This works great!!!!
Thanks for the help
[/quote]