All Questions

47
votes
4answers
33378 views

Persist variables between page loads

I am trying to capture the submit button press of my form and if the form is submitted, the page refreshes and I show a few hidden fields. I would like to capture whether the form has been submitted b...
555
votes
25answers
388590 views

Prevent users from submitting a form by hitting Enter

I have a survey on a website, and there seems to be some issues with the users hitting enter (I don't know why) and accidentally submitting the survey (form) without clicking the submit button. Is the...
623
votes
34answers
316255 views

How do you handle multiple submit buttons in ASP.NET MVC Framework?

Is there some easy way to handle multiple submit buttons from the same form? Example: <% Html.BeginForm("MyAction", "MyController", FormMethod.Post); %> <input type="submit" value="Send" /&g...
62
votes
16answers
157719 views

How to prevent form resubmission when page is refreshed (F5 / CTRL+R)

I have a simple form that submits text to my SQL table. The problem is that after the user submits the text, they can refresh the page and the data gets submitted again without filling the form again....
106
votes
14answers
45908 views

What's wrong with using $_REQUEST[]?

I've seen a number of posts on here saying not to use the $_REQUEST variable. I usually don't, but sometimes it's convenient. What's wrong with it?
75
votes
3answers
306988 views

Submitting HTML form using Jquery AJAX

Im trying to submit a HTML form using AJAX using this example. My html code: <form id="formoid" action="studentFormInsert.php" title="" method="post"> <div><label class="title">Fir...
131
votes
5answers
110841 views

values of disabled inputs will not be submitted?

This is what I found by fireBug in firefox. Is it the same in other browsers? If so, what's the reason for this?
150
votes
16answers
213616 views

jquery disable form submit on enter

I have the following javascript in my page which does not seem to be working. $('form').bind("keypress", function(e) { if (e.keyCode == 13) { e.preventDefault(); return false...
227
votes
22answers
196540 views

Multiple submit buttons in an HTML form

Let's say you create a Wizard in an HTML form. One button goes back, and one goes forward. Since the back button appears first in the markup when you press Enter it will use that button to submit the...
167
votes
6answers
192436 views

jQuery - add additional parameters on submit (NOT ajax)

Using jQuery's 'submit' - is there a way to pass additional parameters to a form? I am NOT looking to do this with Ajax - this is normal, refresh-typical form submission. $('#submit').click(function ...

Previous Next