Hello to everybody! I have a small issue. I have this piece of code (just a small part from a html file): $.prompt(temp,{ callback: function(v,m,f){ var str = "text"; var trimit =""; $.each(f,function(i,obj){ trimit += i + " - <em>" + obj + "</em><br />"; }); //$.prompt(trimit); $.prompt(str); } }); Code (markup): How can I send variable "trimit" as a message to an e-mail adress without changing the page (as a hidden process - i mean without loading a visible page)? I was thinking to use mail() in a php file. How can I send the variable to a php file without changing the page (hidden process)? Can somebody help me with a code? Thanks in advance, Adrian
You pass it using post or get methods, jquery has built-in ajax to achieve this. In your PHP file, you catch those variables with $_GET or $_POST or $_REQUEST
the easiest method is to pass through GET method by redirecting you page, window.location = "http://www.domain.com/page.php?trimit="+trimit; if you don't like to redirect,you can use AJAX