Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

$_POST not working in upgrade!! 1

Status
Not open for further replies.

Sottini

Technical User
Oct 12, 2002
23
GB
Hi Gang,

Whilst I'm ok with JavaScript and HTML, I'm new to PHP and I have the following problem:

I am developing on 2 machines using Win98, PHP 4.2.3 and Apache server....IT's here I believe the problem lies!
On one machine I am running Apache 1.3.26 and on the other I am running Apache 2.

Does anybody know a reason for $_POST to work on one m/c and not the other? The m/c with the older Apache version only accepts $HTTP_POST_VAR statements. I thought upgrading the PHP version would do the trick, but to no avail!

Thanks,

Sincerely,

Simon Hughes
Senior Sales Consultant.
Rixson & Green Ltd.
sales@rixson-green.co.uk
020-8290-1777
 
Check PHP versions, make sure both have the newest (currently 4.2.3).

Older versions of PHP dont support $_POST and $_GET.

If that dont work you can always:
global $_POST, $_GET;
$_POST &= $HTTP_POST_VARS;
$_GET &= $HTTP_GET_VARS; --BB
 
Thanks a lot, I'll try it, although they are both running version 4.2.3 according to phpinfo()!

I've not found a reference to appoint globals yet, so thanks a lot! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top