forms

Multi Part Form with AJAX in php/codeigniter

I am trying to create a multi page listing form (using AJAX - jquery) for a real estate site. The basic premise is that a user should be able to create a listing in step 1 of the form. In step 2 of the form, the user should now be able to upload images/video. In step 3 of the form, the user would add any additional information related to...

To set custom error message in sfValidator?

How to add a custom error message in sfValidator, the form is $this->setWidgets(array( 'name' =>new sfWidgetFormInput(), 'country' =>new sfWidgetFormChoice(array('choices' => CountriesPeer::getAllCountries())), )); the validators $this->setValidators(array( 'name' =>new sfValidatorString(array('required'=>true)), 'country'...

Namespaces, aliases and Visual Studio Forms Designer

Hi. I'm having a problem with conflicting namespaces and code that gets autogenerated by the forms designer in Visual Studio 2008. I have search many forums and different documentation, but have not been able to find any solution to this problem. I have one assembly called Foo.dll with the following namespace/code: namespace Foobar.Sy...

Centering all HTML form elements using CSS

How do you center all form label and input fields using CSS? How would you do this for a form with label text (block) on top of the input field? #fieldset label { display: block; } #fieldset input { font-size: 0.8em; height: 1.2em; width: 15em; } ...

Php Login Issue (Users cannot login and users can use others passwords to access their own accounts)

Ok so here is my issue, Some users cannot login to their accounts. They enter in their password and username properly but it just doesn't seem to work. and secondly I noticed that a few of the users can log into any account they want with their own password and not the password of the original account. using MYSQL, and PHP5. /*Login ...

Changing checkbox's parent element css if checked or unchecked

Hello, Basically I have a checkbox inside a td element and I want it to have one background color when the checkbox is checked and another background color when the checkbox is unchecked. So in other words I want it to highlight whether it's checked or not. I tried to use the same solution as in here: http://stackoverflow.com/questions...

Django Dynamic Forms Save

I am using James Bennetts code (link text) to create a dynamic form. Everything is working ok but I have now come to the point where I need to save the data and have become a bit stuck. I know I can assess the data returned by the form and simply save this to the database as a string but what I'd really like to do is save what type of ...

Using Symfony's sfForm standalone, without the rest of the framework

I've seen some posts and questions regarding this: how can I use Symfony's sfForm as a standalone library? Just for managing a simple "hand-made" form but without the bulk of the framework. ...

Control the position of the vertical scrollbars

Hi. I have a multi-line textbox (let's call it textBox1) that has plenty of text inside. After doing a search, I highlight the string I was looking for with: textBox1.SelectionStart = textBox1.Text.ToLower().IndexOf(STRING); textBox1.SelectionLength = STRING.Length; Now when I call the form that contains the textbox it highlights ...

Form submit to iframe on new page

Hello, I have a form which submits to an iframe, This works fine if you are on a page with the iframe. I want to be able to have the form on any page and when submit is pressed load a page and send the submit to the iframe e.g. On page "article.php" and press submit Open page "results.php" and Send post data from form clicked in "a...

What are the possible ways to handle an expandable form using PHP?

I have a database that has two tables, one of which contains a foreign key back to the first. Similar to this: Table1 id description some other information Table2 table1ID Some other information For each table1 there can be any number of entries in table2. I need to create a form that allows user...

Printing c# forms with DeckWorkspace

I'm having a bit of trouble printing some of the forms in our Smart Client Software Factory application. We've got a master form, which has a header showing some critical information, and underneath a list box and a DeckWorkspace. The list contains a set of categories, and when one is selected, a separate form is loaded into the DeckWor...

how to move from one form to another in MFC

hey guys, I am designing a set-up wizard using MFC application controls... how do I move from one form to another in a button click.plz help me guys ...

Image for form label

Hi All, I am quite interested in exploring accessibility in forms and accessibility in general. Is it against the rules to use an image as a label if the image also has an alt tag representing the the label? Would this be ok? If not what is the best approach? I have a small form for clients to enter their links to the social sites the...

C# / Windows Forms: error cs1519

Hi, I'm working on a graphics transformation program, setting up a listbox to read in the names of files in a directory. The code is based off an example from my instructor, so I thought it would work fine, but it seems to create errors everywhere. I googled "error CS1519: Invalid token ‘,’ in class, struct, or interface member declarati...

C# / Windows Forms: application runs but unresponsive

So I've been putting this graphics transformation program together and suddenly some change I can't figure out has made the app unresponsive. The menus no longer function, and it's supposed to draw axes and a grid on one of the panels... nothing. Any ideas? using System; using System.Collections.Generic; using System.ComponentModel; us...

simple import form in Access

how to create an access form which has import excel file button. and after selecting excel file it automatically creates a table in the database with collumn headers as excel first row and data as excel other rows. if you think i am not putting any effort please give me suggestion or reference and ill do it on my own. ...

C# / Windows Forms: form's paint code not being executed

Hello, I posted a similar but less specific question a couple hours ago, but the circumstances have changed. I'm working on a program that transforms graphics, presenting them in a panel in the upper left of the form. It was painting fine earlier, but now isn't and I can't undo, load old version, etc. Previously, the app was unresponsive...

JSF - correct way to build forms

Ok, i wish to know the correct way to build forms in JSF. I have multidatabase app(user can switch databases during runtime, all databases are build on the same scheme) and now i want to build forms for data input. I tried build functionalities in NetBeans, where i can generate entity classes from database, but, as far as i understood, ...

django forms to db table

In Django if I an object of type: django.forms.BooleanField for example how do I know what database type it is going to be saved to e.g. Int, Boolean, Varchar? I know Django automatically handles this as part of the models but I want to do this manually so that is not an option. Is there a built in Django function I can call which will ...