|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
$_POST to $HTTP_POST_VARS...
if i'm using earlier version of php, such as 4.0.5
and what i know is i need to change $_POST TO $HTTP_POST_VARS.. my question is...how about $_REQUEST and $_COOKIE do i have to change to another$.... or still can remain the same..something like Code:
$sql = mysql_query("SELECT * FROM users WHERE username = '$_COOKIE[username]'") OR DIE("Sorry Theres a mysql error.");
and Code:
$userid = $_REQUEST['id']; $code = $_REQUEST['code']; |
|
#2
|
||||
|
||||
|
RE: $_POST to $HTTP_POST_VARS...
The following comes from php.net/manual/en/reserved.variables.php
Server variables: $_SERVER Note: Introduced in 4.1.0. In earlier versions, use $HTTP_SERVER_VARS. Environment variables: $_ENV Note: Introduced in 4.1.0. In earlier versions, use $HTTP_ENV_VARS. HTTP Cookies: $_COOKIE Note: Introduced in 4.1.0. In earlier versions, use $HTTP_COOKIE_VARS. HTTP GET variables: $_GET Note: Introduced in 4.1.0. In earlier versions, use $HTTP_GET_VARS. HTTP POST variables: $_POST Note: Introduced in 4.1.0. In earlier versions, use $HTTP_POST_VARS. HTTP File upload variables: $_FILES Note: Introduced in 4.1.0. In earlier versions, use $HTTP_POST_FILES. Request variables: $_REQUEST Note: Introduced in 4.1.0. There is no equivalent array in earlier versions. Note: Prior to PHP 4.3.0, $_FILES information was also included into $_REQUEST. Session variables: $_SESSION Note: Introduced in 4.1.0. In earlier versions, use $HTTP_SESSION_VARS. Global variables: $GLOBALS Note: $GLOBALS has been available since PHP 3.0.0. |
|
#3
|
|||||
|
|||||
|
RE: RE: $_POST to $HTTP_POST_VARS...
woooops..oh no..can you tell me what can i do with this code
php Code:
if i'm using php4.0.5, can i still use this code by changing the code, which will be doing the same thing like above...?or i have to get a newer version of php..if i have to, that means i have to edit all my previous code??coz previous codes is using HTTP_POST_VARS and so on....will it affect my current coding progress...?i need ot know..if anybody can tell me ...pls! |
|
#4
|
|||
|
|||
|
Message Moved
Thread moved from 'Database Help' to 'PHP Installation' by sliver.
Reason: This is more a php question |
|
#5
|
||||
|
||||
|
RE: $_POST to $HTTP_POST_VARS...
|
|
#6
|
||||||
|
||||||
|
RE: RE: $_POST to $HTTP_POST_VARS...
Quote:
to replace this right?? Code:
$userid = $_REQUEST['id']; $code = $_REQUEST['code']; but it's not woring at all...still error message : Parse error: parse error in c:program filesapache groupapachehtdocsloginactivate.php on line 10 line 10 is this.. $userid=$HTTP_GET_VARS['id']; the whole code look like this php Code:
thanksss alot...please help...HELP~!!@~!~ |
|
#7
|
|||
|
|||
|
RE: $_POST to $HTTP_POST_VARS...
you are getting the parse error because you forgot to terminate the variable statement with a semicolon ;
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > $_POST to $HTTP_POST_VARS... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|