Eugene van Zyl on Fri, 1 Sep 2000 09:06:56 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

RE: GLUG: PHP equivalent for ASP 'Request.Form()' ?


Look through the docs, there's environment variables that hold this info ($HTTP_VARS_POST[] I think), but you have to set this behaviour in your php.ini file. You can also set it to automagically import the variables into user space (the $GLOBAL[] array which elements are directly accessable via their names);
e.g. if you have a <input name="email_address" value="anon@xxxxxxxx"> or call a file as follows http://whatever.co.za/somefile.php?email_address=anon@xxxxxxxx , then you could simply access it directly in the code as $email_address and it will hold the value "anon@xxxxxxxx"!

Neat huh? :-)

Eugene

-----Original Message-----
From: owner-glug@xxxxxxxxxxxx [mailto:owner-glug@xxxxxxxxxxxx]On Behalf
Of Peter
Sent: Thursday, August 31, 2000 10:01 PM
To: GLUG
Subject: GLUG: PHP equivalent for ASP 'Request.Form()' ?


Can't find anything in the PHP3 manuals that looks like it might do the
job of the VBScript's "Request.Form()".

Process:

A form on WEBserver 'A' is submitted to TRANSACTIONserver B.
 
TRANSACTIONserver 'B' runs some routines (not PHP3), then POSTs several
variables to a PHP3 page on WEBserver 'A' (using an HTTP/1.0 POST).

I don't seem to be able to "receive" those variables in my PHP3 page.

(NOTE: the variables cannot be passed from A to B - that would be the
easy part; consequently I need to 'accept' a set of variables which I
did not originally POST.)

Although, according to the access_log, the PHP3 page on the WEBserver
'A' is definitely addressed, it's script does not execute, hence I do
not 'capture' the variables POSTed to it.

Any suggestions?    P L E E E E Z E !!

Thanks,
Peter
---
To unsubscribe from this list: send the line "unsubscribe glug" in
the body of a message to majordomo@xxxxxxxxxxxxx If you have a
problem unsubscribing, please mail owner-glug@xxxxxxxxxxxx