$_GET['variable_name'] for GET variables
and
$_POST['variable_name'] for POST variables.
Change the "variable_name" to whatever was in your form, for example the
below variable name is
"cust_name"
For session it would be $_SESSION['session_name']
etc etc
The above should get you going, but re
[snip]My question is how do you send vars and session var from page to
page without it turned on? Any info would be a big help. [/snip]
rtfm, rtfa, stfw
use $_POST or $_GET array
http://www.php.net/variable
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
use $_POST['name_of_your_form_field'] or
$_GET['name_of_your_form_field'] or $_REQUEST['name_of_your_form_field']
$_REQUEST contains $_GET, $_POST and $_COOKIE
for server vars there is $_SERVER and $_ENV for environment vars
$_SESSION is for session vars
--
PHP General Mailing List (http://www.p
Pretty hard to tell anything without any details about what you're doing...
Sascha Braun wrote:
Hi,
I've made a website and because of presentationproblems I changed the oldstyle
vars to the new globalvars mode (Hope its the right name for it, dont know if
$_SESSION['user'] is a global or it is
global $var; does nothing outside of a function. You
do not need to use global for this.
$foo = 'bar';
include 'something_that_uses_foo.inc';
http://www.php.net/manual/en/language.variables.scope.php
regards,
Philip Olson
On Sun, 2 Jun 2002, Anzak Wolf wrote:
> I have a question about glo
On Tue, 2 Apr 2002, Erik Price wrote:
> On Tuesday, April 2, 2002, at 01:24 PM, Jason Wong wrote:
>>> (b) Pass a variable as an argument to a function but make that argument
>>> optional so that it does not have to exist to make the function
>>> legitimate.
>>
>> function function2 ($variable_A="
On Tuesday, April 2, 2002, at 01:24 PM, Jason Wong wrote:
>> (b) Pass a variable as an argument to a function but make that argument
>> optional so that it does not have to exist to make the function
>> legitimate.
>
> function function2 ($variable_A="") {
> }
Thanks for the pointer. I didn't
On Wednesday 03 April 2002 02:11, Erik Price wrote:
> (b) Pass a variable as an argument to a function but make that argument
> optional so that it does not have to exist to make the function
> legitimate.
function function2 ($variable_A="") {
}
It's in manual under "Functions" -- original isn'
8 matches
Mail list logo