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

1
vote
0answers
7 views

Using Symfony forms without a database entity

I've been developing an application based on Symfony 3, and part of that application involves an import process where a user can upload csv files. One thing that I've never been too sure about with ...
0
votes
0answers
14 views

Servlet to generate HTML printable form

I'm using a java servlet to generate HTML code to produce a printable form. I want the form to look like the paper version being used now (or as close as possible) to reduce confusion during the ...
1
vote
2answers
41 views

Simple JS validation for two contact forms

I'm not a pro in js so, my code is a mess (but it's working!). I would like to ask your help to reduce some redundancies in two cases. Those two are codes are affecting these two forms: ...
1
vote
1answer
44 views

CSRF-prevention mechanism for a form

I am using codeigniter framework in PHP. In signup form I have: Controller: ...
0
votes
1answer
44 views

PHP PDO login with session

index.php,general message.php, logout.php, site life.php (this page for session and put it in the other pages by required) Database: connection.php ...
1
vote
1answer
41 views

Preventing XSS in a Symfony form to add a timetable entry

I have started to implement cross site scripting prevention (xss) within my code. However as I am using symfony for this particular project I have read up that nothing needs to be done for xss in ...
0
votes
1answer
62 views

PHP login form with PDO

I create login form with session with four files: connection.php login.php plan.php logout.php Please check my code and tell about any smokestack. Database educate (create table users) ...
2
votes
4answers
63 views

PHP mysqli code for login form

Can you check my code if I wrote like a professional? connection page. form sign page. plan page. log out page. First I create the database and tables, then the connection file, then the form sign ...
3
votes
2answers
127 views

Form validation library

Background: After reading this thought provoking book I decided to write a small library as an exercise. ...
1
vote
0answers
20 views

Using session variables to overcome enctype=“multipart/form-data”

I was trying to design a page which will help me upload documents for each case, along with some form data. I then realized request.getParameter() will not work ...
1
vote
1answer
25 views

Sidebar menu to hide or expand parts of a form

I have some of my code that I have tried to improve on to make it cleaner and efficient and I would like some feedback to see if I am going in the right direction with what I am trying to do. I have ...
0
votes
0answers
13 views

Responsive Web form with Foundation for sites

I have made this web form for user registration. The requirement is that it can be used on different devices, respectively screen sizes. With you tinkering I was able to make this current version ...
3
votes
4answers
48 views

Verifying that all form fields are filled in

I grabbed the form from some random site because I'm only interested writing the javascript at the moment. I am trying to check that a user has selected or entered text for all fields. I've made it a ...
1
vote
1answer
67 views

PHP store data from form into MySql DB

This is the first time I've tried this. I'd like some feedback on how I did, including any bad practice warnings. For example is it a really bad idea to allow the code to recreate the table if it ...
3
votes
1answer
36 views

simple form validation

i've just started to learn python /django .. im coming from php world ...i mostly struggle with None values which are new to me .. in php i mostly did my boll checking with true/false but in python ...
2
votes
1answer
81 views

Validate a form using jQuery

I am validating a form using jQuery. It is working perfectly, but I just feel the code is quite "bulky". There is a lot of if statements being used to achieve ...
0
votes
0answers
31 views

A wrapper around HTML file inputs

The <input type="file"> element is rendered differently by different browsers, and it's essentially impossible to directly style with CSS. A common way ...
0
votes
4answers
36 views

Control of empty fields in a form via JavaScript [closed]

I would like to know if it is safe enough to create via JavaScript control of empty fields. Here is my example in detail: ...
0
votes
1answer
55 views

Submitting a form via JSON

I have a feedback.js that I would like to improve. ...
1
vote
1answer
47 views

Custom form validation using jQuery

Recently I have been doing a bit of work with Contact Form 7 and Wordpress. I've begun looking at form validation using ...
4
votes
2answers
31 views

Window-size-dependent content toggler for an HTML form

I had to build a responsive component which allows the user to display specific content in a page. I called it the contentToggler. Here is my component in action ...
1
vote
0answers
58 views

Angular validation function for a user creation form

I have to make a user creation wizard, there are 3 steps to achieve the insertion of a new user, so every step I have have a validation function to enable the next step. As a first step for the ...
1
vote
1answer
55 views

Methods to check form validity and to count invalid form fields

I have two these methods. Their loops are pretty similar. I'd like to refactor it to avoid duplicate nested loops. How could I do that? ...
2
votes
0answers
39 views

Function to prevent sign-in form from being spammed

I have written a function that I want to protect from spam bots. I have used two techniques the first being filter after submit. After reading around I obtained the ...
-1
votes
1answer
43 views

Changing sales stage

I think this code is not optimized: ...
3
votes
3answers
107 views

PHP form validation for name, email, and Twitter handle

Given the following input values from a form, create a method or methods to validate the input based on their requirements. Throw an exception if any data is invalid. 1.1 ...
3
votes
1answer
37 views
1
vote
1answer
64 views

INSERTing a student info record based on form inputs

I want to improve my coding skills. How do I write this code with concatenation ...
2
votes
2answers
72 views

Keyboard handler for selecting radio buttons

I have got my JavaScript working as seen here: https://jsfiddle.net/yLg1qs04/3/ But how do I condense/shorten it so that it's not repeating itself so often and taking up so many lines? ...
1
vote
2answers
44 views

Rendering drop-down boxes for country and region

In PHP how can I follow the DRY (don't repeat yourself) principle in this piece of code? The 2 classes in question share an awful lot of code. ...
1
vote
2answers
82 views

Adding border to required fields when fields are empty

I want to add red borders to required fields, if the fields are empty. The ShowSelection() function is run when the interface is loaded, and everytime the interface is refreshed. I have the following ...
7
votes
2answers
69 views

Checking whether various form fields are filled in

This is a customer information data entry form. First name and Last name are required. In addition phone number, e-mail and birth date are used to check the database for existing customers with the ...
1
vote
1answer
42 views

Form submit and data display

This is my first PHP project - just to write to something to learn from. I made a page with form to send some quote to server and display some quotes from db. I'm just starting with PHP so point out ...
1
vote
1answer
67 views

Created a frame with a disabled button, till check button is used, then return to starting state

I've been coding Python for little over 6 months now. I am self taught and I would like to ask for some help for myself and also for others in my position who's been wondering if they're going about ...
3
votes
2answers
115 views

Submitting an HTML form, adding submission to database and emailing the client and registrant

I have been asked to make a registration form that will add a users details to a database, create a registration code, then email the registrant and client the details including the registration code. ...
0
votes
0answers
33 views

PHP FormBuilder class

I've taken some suggestions from this question and tried to build my own FormBuilder class. It's supposed to work like this: Creates an object of type form ...
1
vote
2answers
44 views

Creating a percentage complete method for a form

I am a relatively new Rails developer and doctor doing research. In my Rails based research projects I often have questionnaires for which I provide a "% complete" parameter. Here is an example. You ...
0
votes
1answer
69 views

ListFind test conditions

I am considering ...
4
votes
1answer
88 views

Restart Citrix session using locally stored application

I have a Windows forms application which we deployed in my firm for use on thin clients. The app lives locally on each user's machine, but pretty much all of the work the users do is over a Citrix ...
2
votes
1answer
52 views

Finding hidden field values in a web page before submitting a login form

In order to submit a login form using wget, I need to find the values for the hidden field that were added to the form recently. Grepping for the names gives the ...
1
vote
4answers
99 views

JS form verification

I have three checboxes in my form. I have to check which one is checked and start the action. What do you think? Is this the easiest way of doing it? Checkbox 1 = cat Checkbox 2 = dog Checkbox 3 = ...
2
votes
1answer
73 views

Build SQL query criteria from form input

Very new to php. Using XAMPP, netbeans. I am using a <form> to send various input parameters as a GET to retrieve data from a very simple two table MySQL db. ...
4
votes
5answers
131 views

Basic contact form

This is for commercial purposes. It's not going to a database, but will just be emailed to a person via phpMailer. I am not good at PHP (truly awful). I'd like to know whether this is good enough for ...
5
votes
2answers
372 views

HTML 5 form validation and form handling

Problem Statement Create one form having following fields 1) Email ( with html5 email validation). 2) Password (It should take minimum 6 charactors ). 3) Your project URL ( with ...
8
votes
1answer
80 views

Populating many fields in a form using jQuery/AJAX

I have the following code which sets input values using jQuery/AJAX. Can the repetition of the code be shortened in anyway? It's mainly the AJAX requests I'd like shortened. It doesn't seem right to ...
3
votes
1answer
396 views

Student registration form

Problem statement Create one form having registration and student login fields for course using HTML5 elements and CSS3 styling. Expected Output Solution ...
8
votes
0answers
169 views

Delphi XE 7 project template for saving / loading form settings

I have developed small test project as a template for production project. In this template I've found a way that the application saves and loads its own settings (ini-file). Main Form1 will contain ...
1
vote
0answers
53 views

Inserting non-empty form values into database

I have a form that I submit and returns me about 500 rows. Before inserting into table I check the strings are not null, this means it loops all the strings. Is there a better way that it doesnt have ...
2
votes
1answer
34 views

Handler for bidirectional unit conversion form

Building a form where values can be entered in either pounds or kilos. Script is... ...
1
vote
3answers
99 views