Sep 11th, 2010, 6:14 AM
(Sep 3rd, 2010, 8:07 PM)bwaye Wrote:(Sep 3rd, 2010, 9:37 AM)Ben Wrote: Sure, no problem. You could do it in two ways: one, just use the API and don't specify a "next_page" option (or specify the same one that you're currently on). Then in the page (in PHP), check to see if the form has been submitted. If it has, show a "Form Submitted" message - otherwise just show the form.
Alternatively, you could submit the form via Ajax and just show a "Form Submitted" message in the page, once you get a success response from the server.
Kind of high-level advice, but it's very do-able.
- Ben
Thanks - will post back the final solution
-------------
Not as pretty as a AJAX but it works:
<?php
if (isset($_POST['submit'])) {
print "<div class=\"h1span\">Thank you!</div>\n";
}
?>