I have a standard form on poll.php:
<form method="POST" action="createpoll.php">
..blah...
</form>
Is there anyway to process the form without leading the user to createpoll.php, something like calling createpoll.php on submit?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This technology is called AJAX. With help of JAvaScript libraries it’s become really easy to use it. You can use JQuery or Prototype. Search for AJAX submission. There are a lot of answers on this topic – i.e., stackoverflow questions.
For exapmle, using JQuery method ajax() it looks like this(JavaScript):