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
3
votes
1answer
195 views

Javascript Form Manipulator Code Review

I'd appreciate a review of at least some of this javascript, if anyone has time. It's really long, but I think it's useful. It's designed to let you create forms and do javascripty things by only ...
2
votes
1answer
3k views

Please help me improve this Rails 3 nested form code

I'm building a rails app which uses a has many through relationship between three models. I have a Recipes model and an Ingredients model. The join table is called rec_items and it contains a few ...
2
votes
1answer
447 views

Is my form secure? PHP Security checks

I'm new to hand coding a PHP form/email submission. Are the security checks I've included here good enough? Or is this super vulnerable to attacks? My main concern is protecting the email login ...
3
votes
2answers
2k views

Copy object properties without using many if statements

I have two class: InputForm.java ...
2
votes
1answer
3k views

Add checkbox with label to a form

For a WordPress login form I have written a small plugin. It adds a checkbox with a unique name to the form and if that name is not present in the login POST request it just dies. The idea is ...
2
votes
3answers
67 views

Flexible multiple string comparision to determine variable value [closed]

I've a web form that allows users to create clusters of three sizes: small, medium and large. The form is sending a string of small, medium or large to a message queue, were job dispatcher determines ...
3
votes
1answer
11k views

Database report in PHP

Just a small PHP exercise to write some simple reports, I thought I'd do it without a framework for fun and profit. I'm particularly concerned about the potential for SQL injection, since the user ...
2
votes
1answer
13k views

How to properly use OOP in PHP with forms

I am trying to wrap my head around how to properly use OOP in PHP when dealing with form submissions. The example below is a form for editing course information. I have a class called Course which ...
5
votes
3answers
5k views

PHP Form generator class

I have made the following classes and objects. It was made to create forms programattically easily. It should produce highly readable, valid, and clean HTML. Care to give me some feedback? :) https:/...
1
vote
2answers
2k views

Checking form input data on submit with pure PHP

I have some experience with PHP but I have never even try to do this wit pure PHP, but now a friend of mine asked me to help him with this task so I sat down and write some code. What I'm asking is ...
4
votes
3answers
2k views

OOP PHP form ok?

I am new at OOP and I wonder if the code below is OOP or it can be better and also what can be better? ...
5
votes
2answers
8k views

jQuery plugin $(node).toJSON() - convert html form to JS Object

GitHub project repo I've been working on this little function to convert an HTML form into a JSON Object having the same structure of the form. Basically it is intended to be useful in those ...
4
votes
1answer
659 views

Processing a form with PHP

I've seen few ways of processing forms with PHP. Whenever I am working with a form, I typically have two files: one for displaying the information (e.g. form.php) and the other for processing ...
2
votes
2answers
121 views

Inserting data in the database through POST

My code here is completely working, but I feel like I destroyed or didn't follow the DRY rule, what suggestions can you give to me for this code?? ...
2
votes
2answers
168 views

Need help optimizing & improving this php form script

I usually program in python/javascript and am very new to php. I would appreciate some advice on how to improve the following form script. Since this is for a highly trafficked website, I want it to ...
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'...
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
854 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
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. ...