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

learn more… | top users | synonyms

2
votes
1answer
42 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 ...
2
votes
2answers
79 views

Copy object properties without using many if statements

I have two class: InputForm.java public class InputForm { private String brandCode; private String caution; public String getBrandCode() { return brandCode; } public ...
-1
votes
0answers
26 views

html form not working in google chrome [closed]

I have a login page which accepts username and password and when you press enter then it is taking to home page. This is working perfectly in mozilla firefox and opera but its working at all in ...
2
votes
1answer
41 views

I made a PHP contact form that goes to multiple addresses based on drop down selection, how do I determine if my code is safe?

I followed a tutorial to create a PHP contact form that sends to multiple emails depending on drop down field selection. I have included the PHP below. Is it protected from spam/other dangers? Or is ...
1
vote
2answers
60 views

Wordpress php Contact Form - Security flaws

I have the following contact form included with my wordpress theme as a template. Now a user on Stackoverflow pointed out that this form has some serious security vulnerabilities. Could someone ...
1
vote
1answer
95 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 ...
3
votes
2answers
66 views

Help with jquery form data code refinement

Could someone please help me make this code as professional as it can be? It works fine, it's just I look at it and think, 'there is surely a better way to do some of this', I would really appreciate ...
1
vote
1answer
64 views

form validation php

i have a simple form validation script. Could you tell me how i can improve this script(mainly regarding security)? Html Page <form name="input_form" action="process_form.php" method="post"> ...
2
votes
3answers
40 views

Flexible multiple string comparision to determine variable value

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 ...
-1
votes
1answer
70 views

How to create 3 objects using one form only if each one is valid? [closed]

I want to create Job, Employer and Company using one form. Model class Job < ActiveRecord::Base accepts_nested_attributes_for :company, :employer belongs_to :company belongs_to :employer ...
1
vote
1answer
219 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 ...
0
votes
1answer
535 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 ...
1
vote
3answers
173 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 ...
5
votes
3answers
387 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? class cForm{ private $_TagAction; private $_TagMethod; private $_TagName; ...
2
votes
0answers
67 views

Am I taking the right path? [closed]

I have a dynamic page and a user can create or view posts. As of right now all of the posts show, I want to organize my posts by categories. But once the user goes to the page all of the posts will ...
3
votes
1answer
667 views

Is this a correct implementation of MVC pattern for form validation (php)?

Before going out and learning a full fledged framework I'm trying to understand the MVC pattern coding basic stuff, at the moment I'm testing with MVC applied to form validation. After reading a good ...
4
votes
1answer
178 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 ...
1
vote
2answers
146 views

As professionals, is there anything clearly amateurishness about this code that I could improve?

This is just a simple login form with a very vanilla HTML mark up, but I just wanted to get some professional feedback. I know about jslint and try to adhere to there principals where possible. Any ...
1
vote
0answers
49 views

Is this a sensible form iteration pattern for a web form with an unknown number of fields?

I'm designing a small intranet-based time-tracking web app that accepts an unknown number of data "rows" which each consist of 7 form fields. Rows can by dynamically added by the browser. Can I do ...
2
votes
1answer
2k views

Dynamically adding rows to an accessible HTML form

Given the following HTML form (fragment): <fieldset id="timesheet-rows"> <legend>Add Entries</legend> <div id="timesheetrow-0" class="timesheet-row"> <label ...
5
votes
2answers
2k 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 ...
2
votes
2answers
73 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?? <?php require_once("./includes/Utilities.php") ...
3
votes
2answers
104 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 ...
4
votes
3answers
1k 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? :) ...
2
votes
1answer
1k 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
2answers
155 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 ...
1
vote
1answer
329 views

PHP Sign Up Form - Safe and Secure?

I just wanted to see how secure this form is, and if there are any potential problems. I tried to add mysqli_real_escape_string to the Prepared statement but it gave me an error. Also if I enter a ...
4
votes
1answer
496 views

Need a review of a jQuery plugin that conditionally displays elements based on form values [UPDATE]

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. ADDED CODE UPDATES ...
2
votes
1answer
1k views

Login and signup validation php critique

Please critique my login and signup validation php files.. login.php; <?php session_start(); require("connect.php"); $email = $_POST['emaillogin']; $password = $_POST['passwordlogin']; $email = ...
1
vote
2answers
347 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
476 views

Is my multithreaded form code correct?

The basic idea is this: There are two buttons: a DoWork button and a Cancel button. The DoWork button should launch a thread to do some work, unless that thread was already launched and not ...
2
votes
2answers
818 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
206 views

would like a code review of a rough draft of a form validator class and child classes (PHP)

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 ...
2
votes
0answers
931 views

How to develop a multistep form the clean way

I use a small workaround I would like to eliminate. I implemented a multistep form with the method described by Ryan Bates in ep217 but I had some wired behavior when refreshing or moving between the ...