I have the following code -
<form id="smsform" class="appnitro" method="post" action="/form" onSubmit="alert('Your message has been delivered.');">
<input type="hidden" value="<?php echo $message; ?>" name="message" />
and so on... Now what i want is that when the form is submitted then instead of going to the page /form the current window should remain at the same location and the page /form to be processed in the background.