Hi,
I've a variable that can come with the GET and POST method, So I use
$_REQUEST to get it
When I use a simple href
href="myFile.ph p?myVar=value"
I have myVAr in the $GET and $_REQUEST arrays.
But when I pass throw a javascript function (to do some checks before to
call php)
href="javascrip t:myJsFunction( 'myFile.php?myV ar=value','');"
and here is the javascript code
function myJsFunction(ph pAction)
{
/// code for checks
document.forms[0].action=phpActi on;
document.forms[0].submit();
}
I have myVar in $_GET but not in the $_REQUEST array
How can I have it in the request array
Any help please.
I've a variable that can come with the GET and POST method, So I use
$_REQUEST to get it
When I use a simple href
href="myFile.ph p?myVar=value"
I have myVAr in the $GET and $_REQUEST arrays.
But when I pass throw a javascript function (to do some checks before to
call php)
href="javascrip t:myJsFunction( 'myFile.php?myV ar=value','');"
and here is the javascript code
function myJsFunction(ph pAction)
{
/// code for checks
document.forms[0].action=phpActi on;
document.forms[0].submit();
}
I have myVar in $_GET but not in the $_REQUEST array
How can I have it in the request array
Any help please.
Comment