form

How do you create rules for jquery form validate plugin with names that are arrays?

Hi Does anyone know how to create the rules for the jquery form validate plugin when you have a name attribute that is an array? eg. <form id="myForm"> <input type="checkbox" name="data[]" id="firstId" value="1" />One <br /> <input type="checkbox" name="data[]" id="secondId" value="2" />One <br /> ... I'm trying to attach a rule to ...

HTML Form works with GET but not with POST

I'm running Firefox 2.0.0.14. I have a form on a webpage which is working fine with the GET method. I'm using a plugin to view my browser's HTTP request when submitting the form, and here it is : GET /postComment.php?review=2&comment=Testing HTTP/1.1 ... However, if I make the simple change from method=GET to method=POST on the form...

Can you Make a Django form set validate the initial data?

Here's an example: from django import forms class ArticleForm(forms.Form): title = forms.CharField() pub_date = forms.DateField() from django.forms.formsets import formset_factory ArticleFormSet = formset_factory(ArticleForm) formset = ArticleFormSet(initial=my_data) So 'my_data' in the example is the data I want to form t...

Prototype serialize function is not recognized

Hi Everyone, I am working on using prototype to submit a simple login form: http://huddlee.homeip.net/danny/ For some reason, whenever I try using the serialize function of the form it says it cannot find the function even though the prototype library is clearly being loaded. So this function: <script type="text/javascript"> alert($...

C#, .NET : hide DOS command-prompt window

In C# and .NET, I wrote an application that runs in a Form (using Windows.System.Forms). I use InnoSetup to install and I am able to start the application via Windows' Start button. My problem: a DOS command-prompt window appears along with the Form. How can I prevent the DOS window from appearing? ...

WORDPRESS: Hacking Comment Form to act like Tell a Friend

I have a client that is using WP for a CMS. He wants un-registered users to be able to submit content. It's a form that has the following fields: Your name Your email Friend's name Friend's email Message Submit Then the message would be posted on the site (as a comment) and that message/comment would then be emailed to the Friend's ema...

How can I add an "Other" text input to a set of radio buttons in an HTML form?

I'm trying to create a form with a write-in "other" option as the last radio button. I've tried variants of the following with no success: <label><input type="radio" name="candidate" value="option1">First Option</label> <label><input type="radio" name="candidate" value="option2">Second Option</label> <label><input type="radio" name="ca...

Get Django Form Widget 'SelectDateWidget' to display 'Blank' option.

No documentation on this one, should be simple, but not functioning for me. Here's the raw code: http://code.djangoproject.com/browser/django/trunk/django/forms/extras/widgets.py Trying to pass a value of required=False to the Widget to get blank values (line 23 in the raw code: none_value = (0, '---')) but get an unexpected argume...

Form Repopulation on Redirect using ASP

I'm currently working on an application that uses ASP, and I am currently having difficulty repopulating the fields of a form after redirecting back to that form. Basically, I have a form where a user can input data into it (Say, an admin creating a new user within the system). Upon clicking the "Submit" button on the form, it goes to ...

ASP.NET MVC - Html.TextBox - Value not set via ViewData dictionary

I have a search box on a page (actually in a partial view though not sure that is relevant) with an Html.TextBox control. <%= Html.TextBox("query", ViewData["query"], new { style = "width: 90%;" })%> The action method takes "query" as a parameter, and I edit this value to clean up the string that is passed in: public ActionResult S...

html grid, and I need to submit the data from the one row the user clicked to a cgi

I need to create a grid of data many rows by 8 columns. When the user clicks on a row I need to submit the data from only that row to a php program. I'm not sure how to proceed. Do I make each row a separate form? Do I create a hidden form and copy the row data into it, and submit that? I'm not sure how to determine which row the user ...

best way to present huge html forms

My application has a requirement such that I have to display a huge number of HTML input textfields (maybe 2,000 text fields). The fields can be logically grouped into sections and the sections are repetitive. What is the best way to display it to the user so that they can enter data with minimum clicks? ...

Remove submit.x and submit.y but retain other values in URL

With my PHP form, I want to pass one value to the URL, but remove submit.x and submit.y. Here's my form: <form action="booking.php" method="get"> <input type="image" value="access" class="rollbtn" src="../images/book-btn.gif" alt="Book" name="submit" /> </form> I want the URL to display booking.php?submit=access - but omit the x a...

Returning false in Javascript/Jquery within an if statement...

Hi guys, I've got this function to check my form: function checkFrm() { $.each($('select'), function() { var $this = $(this); if( $this.val() === 'null') { // do nothing } else { if($this.next('input').val().length < 1) { return false; } } }); } When the user submits this, it runs...

How can I pass variables from a form within the Wordpress platform?

Hi, I'm building a website using Wordpress. The WP-Events plugin is being used to display a list of upcoming events. What I need is for people to be able to confirm their attendance at any particular event. WP-Events is a bit awkward in that it's customised using a template that is only able to be edited with the Wordpress admin. I...

Excel VBA - Password prompt after Form Show and Import Data

I have this macro that is password protected and shows a form. Recently I added code to import data from excel and every time I close it asks me for a password - I can cancel through it but I'd like to make it go away, I see no plausible reason why it would come. I've separated out the few lines that causes this problem Sub a() U...

Is it possible to retrieve the form name from a Java HTTPServletRequest?

I would like to get the name of the form used to post parameters from a Java HTTPServletRequest object. Is this possible. I don't see any method that looks like it will return it to me. ...

Multipart form post to google app engine not working

I am trying to post a multi-part form using httplib, url is hosted on google app engine, on post it says Method not allowed, though the post using urllib2 works. Full working example is attached. My question is what is the difference between two, why one works but not the other is there a problem in my mulipart form post code? or the ...

Question about form

What does the [@post, Comment.new] construction literally mean? I'm using it (saw in a podcast, or somewhere else) but I still don't quite understand what does it mean? What literally happens if we hit Submit button (sure, the comment is added, but I'm interesting about the inner mechanics and how is it connected with mentioned construct...

Best way to make a WYSIWYG in Flex?

Hello, I have a client that wants a WYSIWYG form that behaves like MS word. It will have some section labels in it, with users expected to enter notes for each section, and it needs a place holder for a chart. The trick is that the user needs to know where page breaks are going to fall when printed. The customer agrees to fixed size ...