$_REQUEST problem

T

toufik toufik

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.php?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="javascript:myJsFunction('myFile.php?myVar=value','');"

and here is the javascript code
function myJsFunction(phpAction)
{
/// code for checks
document.forms[0].action=phpAction;
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,951
Messages
2,570,113
Members
46,698
Latest member
alexxx

Latest Threads

Top