said_fox
08-14-2003, 01:24 PM
Hi,
Is it possible to post a variable value to another page without a form, using JavaScript?
Consider the following example:
<a href="action_page.php?anything=no" onClick="doSomthing()">Do It</a>
Now let we look at the function doSomething()
function doSomething(){
var1 = "Hello";
//????
}
What can I do, to make this function able to send or Post (with post method)
the value of var1 to the action_page.php
:confused:
Is it possible to post a variable value to another page without a form, using JavaScript?
Consider the following example:
<a href="action_page.php?anything=no" onClick="doSomthing()">Do It</a>
Now let we look at the function doSomething()
function doSomething(){
var1 = "Hello";
//????
}
What can I do, to make this function able to send or Post (with post method)
the value of var1 to the action_page.php
:confused: