Questions tagged [form]

An HTML form is a section of a document containing normal content, markup, special elements called controls and labels on those controls.

Filter by
Sorted by
Tagged with
2
votes
2answers
367 views

Setting some element widths, disabling a button, and initializing some date fields

Does anyone have suggestions on how to refactor this? ...
2
votes
3answers
377 views

Options with a “yes” or “no” radio button

I have about 6 of these, but I'm only posting two. Essentially I have a bunch of options with a "yes" or "no" radio button. If "no" is selected, I want a form to popup. ...
2
votes
3answers
374 views

Collecting form errors to be displayed

I have a piece of code that get errors from form and display to view: ...
3
votes
2answers
223 views

PHP Validation with functions and list()

I have multiple form validation checks around my site so I decided to write them as functions to simplify the process of creating the validation pages, here is a snippet for an understanding of what I'...
5
votes
1answer
3k views

Ajax form validation

This is my first ever attempt at Ajax form validation, and everything works as expected, the final true example will hold a lot more input fields than in my testing scripts which are below. The file ...
4
votes
3answers
657 views

Is this password-submission form valid?

Does my code contain anything invalid? ...
2
votes
1answer
476 views

Validating forms data

Here is a class that I made to validate forms data. I will really appreciate any criticism and hints. ...
6
votes
1answer
2k views

Plugin that conditionally displays elements based on form values

I've just released a jQuery plugin that conditionally displays elements based on form values. I would appreciate any suggestions on how to improve both the code and its usefulness. Here's the demo ...
2
votes
1answer
4k views

Login and signup validation php critique

Please critique my login and signup validation php files.. login.php; ...
2
votes
2answers
853 views

Form dependencies, slow javascript

I started working on a jQuery port for this Form Dependency Manager script. It works fine, and I added a few extra options too. The problem is speed. If you create dependencies between 20+ form ...
1
vote
1answer
198 views

jQuery handler for closing a login box

I'm sure there's a better more 'jQuery' like way of writing this. In particular the selector $(this).closest('div.login-box') being in there twice. Perhaps it's ...
1
vote
2answers
214 views

Generating a selection box for the day of the month

...
1
vote
3answers
747 views

Is my multithreaded form code correct?

The basic idea is this: There are two buttons: a DoWork button and a Cancel button. The ...
3
votes
2answers
4k views

PHP Questionnaire Code Peer Review

I just started learning how to code PHP as well as HTML and as a challenge for myself I put together a questionnaire with what I have learnt so far which isn't as much as I would like to know e.g. ...
2
votes
2answers
300 views

Form validator class and child classes

I am creating a form class for validating form data, and would like some advice on how to refactor it for best practices. Keep in mind that this is a rough draft. Basically, there is a form abstract ...
4
votes
1answer
1k views

Uploading multiple files for faculty nomination system

I created a few forms for faculty members to nominate colleagues for awards. Many of the nominations require documentation to be submitted in order to validate the nomination. I created one form then ...
7
votes
1answer
2k views

Developing a multistep form

I implemented a multistep form with the method described by Ryan Bates in ep217 but I had some weird behavior when refreshing or moving between the steps Acts_as_good_style (old but still good) has a ...
6
votes
2answers
577 views

Basic form validation

Question + Desired Outcome The code below works currently, however I'm not convinced the utilisation of an Array to iterate through numerous non-existent form ...