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

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -