javascript pass var to php -
Is it possible to pass the content of the var cause
to action = report?
Confirm function redirection (url) {var msg = "Are you sure?"; Var reason = prompt ("cause"); If (Confirm (msg)) {location.href = url; }}
More links
You can pass it as a query string:
< Pre> Location.href = url + '& amp; Cause = 'cause;
Later in PHP, you can get it from $ _ GET
:
$ _ GET ['cause '];
Comments
Post a Comment