form

Submitting a form via Ajax/jQuery

Hi, I have built a simple login form via ajax (jquery), but the submitted values (the users email address for login purpose, not the password) are not stored. So the second time the user tries to login he has to write his full email address instead of using the stored email address. Is this normal with ajax form submission and (more im...

How to add a form in wordpress using wordpress predefined functions

I'm using wordpress 3.0.1 and using stheme.i want to add a new form below the comment form with some fields like name,email,phone.no,etc.how to add a new fields using wordpress functions.for eg.in comment form there is a predefined functions like get_approved_comments,get_comment,comment_field etc.Is there any functions in wordpress to c...

django form datefield with runtime formatting

So, I have a form: class FormBasicInfo(BasicForm): valid_from = forms.DateField(required=False, input_formats=('%d/%m/%Y',), widget=DateInput(format='%d/%m/%Y')) and I set the input and output formats. However, what if I want to set these formats at runtime, based on the date format preference of my user? how can that be done? T...

Incorrectly redirecting user back to a PHP page after submitting a form

All, This question probably has a very simple answer - something I'm overlooking. But maybe someone can tell me where to look... I have a PHP page ("index.php") with a very simple login form (e.g., username and password). When the user clicks the "Submit" button, the form POSTs the values to another PHP page ("login.php"). That page i...

How to keep alive a user's session while they are posting on a forum?

I have a site with a session timeout of 15 minutes. On some pages a user occasionally spends longer than 15 minutes filling in a reply. What is the best solution to keep alive the session in this case? I already use JQuery on these pages, so possibly pinging a server, but on what events? The backend is a Struts on Tomcat. ...

CakePHP form helper problem with date for editing

I'm quite newbie in CakePHP, I've tried to create a form with form helper on a date field echo $this->Form->input('Item.date'); yes, works fine (I'm using CakePHP v1.3.3) for input/add new record but when I try using it on edit page it does nothing. here's the code echo $this->Form->input('Item.date', array("value"=>$rs['Item']['date...

How to validate a field from a BeanItem in Vaadin?

I'm trying my first Hello World with Vaadin right now and I'm stuck with my first simple validated Form. I'm using a BeanItem as the ItemDataSource for my form, and I don't know how to add a Validator for the bean property. My Problem How can I get the actual Field for the property in my bean? I need to call addValidator() on the field...

dynamic forms asp.net

Hi all, Today i'm using crystal reports to create parameterized forms and save them into PDF, but isn't there other alternatives? What i want to do? Well, simply have a form with information "placeholders" (that's how i'm using crystal) ... then in code i set the placeholder data to be binded ... Save as PDF and voila... But crystal i...

Two asp:content in web content form

Whenever I create a new Web Content Form in asp.net and select a master page. I get two asp:content controls. If I delete the first one the page still works fine. Is this a bug or a functionality ...

Module for Saving Drupal node page without "closing"

Is there a Drupal module out there that allows users to save the changes to a node creation form while still keeping the form in the edit mode? If you preview, the node isn't saved, if you save the editing form is closed. ...

Applying Class to Customer Zend Decorator

I found code that would change the standard dt and dd tags to table tags for a Zend_Form_Element. Here is the code I used: $element->setDecorators(array( 'ViewHelper', 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'td', 'class' => 'element')), array('Label', array('tag' => 'td', 'class' => 'rightAlign')),...

jquery ui tabs and form validation plugin

Hi; I'm using jquery Ui tabs and validation plugins, for my forms, the forms divided in 4 steps(like wizard) and navigate trough the tabs by navigation(not tabs), each steps contain form element and need to be validate,; her is my code: <script> $('#registration').validate({ errorClass: "warning", ...

Joomla Form builder download!

Hello, I am searching the joomla component that generate form fields (Form Builder) with database fields. So anybody know the component for installation. Please provide me a link to download component. ...

Login system in .jsp

I have a login.jsp page which contains a login form . Once logged in the user will be taken to index.jsp and this index.jsp should know which user is logged in . If the user refreshes the page he will stay logged in and not taken back to the login.jsp. So there need to be some sort of session. I searched for an example and found about Ja...

HTML Forms - removing slashes safely

I'm using a web form to store user input into a MySQL DB, using $_POST. I have noticed that once textarea fields area read, slashes are inserted automatically to escape some characters. As I need to manipulate text before storing, I thought about using stripslashes, however I have discovered that it may garbage text, if Japanese or oth...

jquery opener window adding form values from child window

Hello: I have a "main" window with a table containing a series of form text fields with ids that increment (e.g., field_1, field_2 ... field_n). I need to populate the value of these fields from selections a user makes from a child window that has a list of about 1400 choices. This is done via an "Add" button with an onclick that passe...

ASP.NET MVC Form post

I'm a beginner in ASP.NET MVC application. What I'm trying to do is creating a form with some inputs that the user will be filling up, and once the user click the post button, I want the form to be posted with the information filled up and ready for printing. The way I'm doing it right now is as follow: // the controller that returns th...

Corrupt forms, not displaying in "startup form"?

In properites>Application>"Startup form" combobox, in my VS VB.NET project, I see only 2 forms listed, while my application has 6 forms. Does this mean something is corrupt? I tried to make a new project, then copy only the old vb files into this new project. But still only those two (of 6) forms show up in the "Startup form" combo box...

How to get the form ID attribute in a delegate event...

$('form[role=form]').delegate( "input[role=submit_button]", "click", function() { alert( FORM.ID ); /// ???????????? }); IMPORTANT: without use closest() or parent() ... you know, when you write $('form[role=form]') here you have the element finded ... why to search it newly ??? ...

How to make multiple-form with single submit button and action with php

Rather inputing one by one for a class/lessen for a day, I'd like to input 10 forms at once. The HTML is something like this. All the form do the same thing, add start_time, finish_time and instructor in a database. However I am not sure how to do this. And I am not sure if this HTML is correct or not. Any inputs will be appreciated....