forms

Best solution for Java web based forms connected to Oracle plus JNI?

Hi, My company is currently undergoing efforts to migrate from Informix to Oracle 10g. We don't want to use any form of oracle forms but instead want to create Java web based forms that interact with the Oracle db (these will replace our Informix forms). Some of the forms also need to implement some JNI to our underlying C code libraries...

Accessible HTML Form input types - "submit" vs "image"

Is there any real difference to screen reader users (or any users really) whether i use "image" rather than "submit" as the type attribute for my form submission button? eg: <input type="submit" value="Submit!" /> vs <input type="image" src="myButtonImage.jpg" value="Submit!" alt="Submit!" /> ...

jquery form validation with two validation messages.

Client side form validation becomes easiest by using jQuery. I tried all validators and they are so simple! But in date, number and range validators; I need to add two validators in sequence 1) Required 2) Date so is it possible. Another common requirement is to reset the Form Fiels. Is is possible using jQuery without writing too ...

How to specify a command when posting a form, using php?

I'm trying to post a form with php, and I want the form to be handled depending on the value of cmd. Specifying this after the filename does not work..what is the correct way to do this? echo "<form name=\"statusForm\" action=\"edit_status.php?cmd=submitinfo\" method=\"post\" enctype=\"multipart/form-data\"> Where/how can I specify ?c...

Problem passing variables in php form.

I have the following php form. I am trying to make it so that when the form is loaded, the values will be assigned the appropriate check- variable. This variable will contain either "checked or "". If it contains checked, the way it is displayed with the html should cause the relevant checkbox to be checked. As it is, the variables do ...

Proper language to use in form field labels: A linguistic question

I wish to use the following sentence as the comment on a form field. I have already come up with a short-form label for the field. This text is meant to explain the field in a bit more detail: The country [where] you come from. The question is: is this "where" needed there, can be used there (optional) or cannot be used there (error). ...

How to retrieve the value of a text area in javascript

I have a form with a text area input. I'm using JQuery to submit the form via an AJAX request in order to update a database. My problem is that I'm having difficulty retrieving the data from the text area input. If the input has an id of "txtBody" I have tried: var body = $("#txtBody").val(); // This adds 'undefined' to the database v...

Is there a form submission pattern?

In PHP, Are there any patterns people use to submit forms? A form submission best practices.. etc. Example, I am trying to achieve a CRUD operation. Initially I have been using a same function for handling form-display and form-submission class Somecontroller extends Controller { function form1_add() { // if submit exist save it...

How To load data that are accessed from database to html form.

I am trying to access data from table with GetString() method and that data is stored in some variable then it must be loaded to html form when i am click the submit button. How to it? Please help me...... ...

How to process ‘only’ visible fields in an HTML Form ?

Is there a way not to process fields with a “display:none” style ? The fields are dynamically hidden using javascript but are processed normally in PHP. I’m looking for a PHP solution (no javascript). ...

Gathering POST data from similar fields

I am posting a form that has many similar fields (artist1, artist2, .... artist20). I am trying to add them to a database but I am not sure how to easily get all of the posted data with out having to write out each one separately. How can I combine an int to a string so that I dont have to write each one out? This is one way I tried that...

php form issues

I have a form with which I am trying to display a form with checkboxes, and then insert into a database whether or not those checkboxes are checked. Then, each time the page is called, check the value and append information to the html form to appropriate display the checkbox as checked or not. I have modified the below code example to ...

How to get a method to detect 'remote_form_for' usage?

New to Rails... here goes: If I want my 'create' method to respond differently to an AJAX request than to a normal POST request, can I have the method detect which was used? Or, is it better to use different methods for AJAX and non-AJAX requests? Thanks for your input. ...

Preventing double form submissions

Exact Duplicate: How to handle multiple submissions server-side The general task at hand: preventing a double form submission in a multi-user web based application. Think financial transactions. I have two methods which can be used in tandem: JavaScript disabling of button Disadvantage: does not work if JavaScript is disabled B...

Multi-page AJAX form with conditional subsections

I would like to go about creating a multi-page form that changes based on options that are selected on previous pages of the form. I want to use Zend_Form, and I know JavaScript will be in charge of making the different form fields appear/disappear, but I don't know how the two will work together exactly. My question is how to get star...

Select all checkboxes

In my Rails app I've created a set of checkboxes as follows: <div class="form_row"> <label for="features[]">Features:</label> <% ['scenarios', 'news', 'role_profiles', 'private_messages', 'chatrooms', 'forums', 'polls'].each do |feature| %> <br><%= check_box_tag 'features[]', feature, (@features || {}).include?(feature) %...

Sending GET requests to POST based script?

I have a search feature on my site that's POST based. Now, however, I want to be able to provide links that search for certain keywords, but this isn't of course possible because the form doesn't handle GET requests. Is there a way around this? ...

Access document of new window in chrome

My goal is to submit a form in a new window. I'm using the following code: var xmlWindow = window.open("getXML.htm"); xmlWindow.document.getElementById("getXML").action = "getData.asp"; xmlWindow.document.getElementById("getXML").method = "post"; xmlWindow.document.getElementById("getXML").innerHTML = "<input type='hidden' name='moduleI...

how to handle multiple models in a rails form

http://weblog.rubyonrails.org/2009/1/26/nested-model-forms This post helped in learning how to handle multiple models in a rails form. It works as long as the models are nested. what if they are not? lets say, I have a form, where the user fills personal details, address details and a bunch of checkboxes specifying her interests. Ther...

Programatically Fax from Internet form

I'm new to programming, and my only area of expertise is web design/simple development on platforms like wordpress/expression engine. (Yea, you guys can laugh). I have a new client who currently receives medical faxes through an online form (the user fills out a form concerning their prescriptions and once submitted, it faxes the info)...