 <p>It looks from your code like you're trying to run some php code (tradeformresult.php). Loading it this way isn't going to work as expected-that require_once will be run as the page is being built in PHP, not in the browser.</p> <p>For sending a form without refreshing the page, you should look into AJAX (<a href="http://en.wikipedia.org/wiki/Ajax_(programming)" rel="nofollow">http://en.wikipedia.org/wiki/Ajax_(programming)</a>)</p> <p>JQuery has a good AJAX method. Here is a simple example of how to use it:</p> <pre><code>$.ajax({url:"http://www.someserver.com/api/path", data:{val1:"value",val2:"value"}) .success(function(returnData) { console.log(returnData); }); </code></pre> <p>The above will call the given URL with the given data as parameters, then, if successful, will return whatever data the server gave back into the <code>returnData</code> variable.</p> <p>If you're using AJAX, you don't really even have to use a <code>&lt;form&gt;</code> tag, since you'll be building the query string manually. You can have the function that makes the AJAX call be triggered from the <code>onClick</code> event of a button.</p>