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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -