forms

How do I post a form without the page refreshing in jQuery?

I want to be able to post the following form without the page refreshing in jquery and i need the form to post in information into actions.php can somebody help me please? <div id="postbox"> <form method="post" id="ptowall"> <input name="post" type="submit" value="Post" /> </form> </div> Thank you. ...

HTML input arrays

<input name="foo[]" ... > I've used these before, but I'm wondering what it is called and if there is a specification for it? I couldn't find it in the HTML 4.01 Spec and results in various Google results only call it an "array" along with many PHP examples of processing the form data. ...

Form is removed from AJAX response

I'm trying to add a table row with ajax/jquery that has a form element in it. Everything works just fine if I set it without the ajax, but somehow everything inside the <form> tag is just completely lost. I'm not sure where I'm losing the form (jquery's .html() is effectively the same as innerHTML right? If that's the case I suspect t...

How to use PHP Ajax.Request onSubmit

I am trying to use a form to send an prototype ajax request to a php script via post and then display an alert window for success and failure I am currently using this code <div id="reservationRequestForm"> <form name="requestReservationForm" method="post" onsubmit="new Ajax.Request('admin/process/process_reservation_request.php', {...

Package for creating and validating HTML forms in Python? - to be used in Google Appengine

Is there a well maintained package available in Python for creating and validating HTML forms? I will deploying it finally on Google Appengine. ...

Ruby on Rails: form select

I have a form that I want to show a drop-down menu that shows a selection for the person's age. The range is from 18 to 99. How do I do it with the form select helper? Isn't it something like: <%= f.select :age, ['18'..'99'] %> ...

Creating customized label fields in forms.

I'd like to be able to generate the following markup: <label for="field">Something <span class="hint">Field hint</span></label> from the following code: form_for ... do |f| f.label :field, :hint => "Field hint" end So far I've created an initializer to store the custom functionality which re-opens ActionView::Helpers::FormBuild...

Round image as background for input type="submit"

In the page found in below link(bg-button.html), I have put round image as a background using styles. But I find a gray background outside the image area. How can I make the background transparent, Please let me know? Round image as background ...

Creating "complex forms" in FileMaker - is it even possible?

I have been asked to look into FileMaker for creating a pretty simple database app. The application will handle contact information, some information about events hosted by the organization and - and this is where I'm currently struggling - RSVP information that link the contacts and events, as well as stores some data about payment. Wh...

Security considerations when creating an email form on the web

I know I have to consider about mail header injection, and are there more thing that I need to know before I make form mail thing? I want mail, and I feel that I have to set up form mail thing in my page, but I heard that mail thing is dangerous if I do not consider all security things. ...

Form field names used by personal data auto-fill in browsers (Safari, Opera)

I'm looking for complete list of form field names (<input name="…">) that are recognized by auto-fill functions in major browsers. Here are some I've found to work in Safari using trial-and-error: email Ecom_ReceiptTo_Postal_Name_First Ecom_ReceiptTo_Postal_Name_Last first-name firstname last-name lastname full-name birthday company j...

Put Word Forms Online as HTML

Hi All, I've got a client that has 7-8 MS Word forms and wants me to put them online so users can login, enter the info online, and then print the form. Before I go down the path of creating a fully custom solution, I was curious if anyone knows of any SDKs (any language) or products that do this already? Thanks, Cole ...

Many-To-Many MS Access Form With Checkboxes for All Options

I'm working on a Microsoft Access application for a summer camp to track which entities have signed up for which activities. There is a form for editing an entity's information. I would like to add to that form a list of all activity options. By each option should be a checkbox. When the checkbox by an option is checked, a entry should e...

Simple PHP problem

<?php if (isset($_GET['action']) && (!$_GET['action'] == 'reply')) { ?> <div class="actions"> <input type="button" onclick="javascript: document.location='?threadID=<?=$threadID?>&action=reply';" value="Post reply" class="btn" /> </div> <?php } ?> What i wanna achive with this is to hide this when im callin reply. doesnt show at all. ...

Retrieve GET variables from URL in ASPX

What's the easiest / standard way to retrieve the GET (in URL) variables passed to a .aspx (VB) page? ...

Make all form validation errors show up at top in symfony?

I think I may be missing something here that should be relatively common. How can I make all form validation errors, including field-bound errors, show up at the top of the form (global)? ...

Date of Birth selector problem in IE6

I'm using a javascript date selector within a HTML form, and it's displaying as it should in the browsers I've tested in (Firefox 3, Opera 9, Chrome, IE7) but it displays really large in IE6. Here's the page I'm talking about - http://marketplace.prettypollution.com/kids-club Any ideas? ...

How to access and submit related polymorphic models in the same form, in Rails?

Suppose I have 3 models, Car, Motorcycle and Truck, and for each I have to enter a bunch of stuff, such as a list of known previous owners, traffic tickets, license plates, etc. So I created a model for each (PreviousOwners, PreviousPlates, etc) and set up polymorphic associations for the related models. The problem is, how can I enter ...

Why not always use enctype="multipart/form-data"?

When building HTML forms why do we not always use enctype="multipart/form-data"? ...

Cannot clear out values from ajax post

(This post is vaguely related to a previous question, but since then I've rewritten a lot of code and it makes sense to start again.) I am using the jquery form plugin to submit a form to a cakephp action. I use the 'toggleVal' plugin too, to give my input fields placeholder text. All I am trying to do is to use the beforesubmit callb...