You can still use onclick event to pass value kept in a javascript variable:

<a href="file.php?" onclick="return action('file.php')">

function action(url) {
   location.href='' + url + '&var=' + javascript_var;
   return false;

Jeff Bluemel wrote:

it's easy enough to pass php variable to javascript, but doing this the
other way around without a form submit, or location (passing as a php $_GET
variable) seems to be a little nightmare. it's easy enough to do it with
the form submit, or a location command.



PHP General Mailing List (
To unsubscribe, visit:

Reply via email to