An HTML form is a section of a document containing normal content, markup, special elements called controls and labels on those controls.
1
vote
1answer
14 views
Rails form helper to display email fields and their validation errors
I have a repeated pattern throughout my app that looks like this:
...
4
votes
2answers
74 views
Displaying dependent options when a selection is made in a dropdown
I was wondering if someone could please point me in the right direction with this bit of JavaScript I have been working on.
I have made this form that currently has onblur JavaScript validation and ...
1
vote
0answers
65 views
JavaScript to add interactive functionality to a conference registration form
This is some simple JavaScript to add interactive functionality to a form. I'm trying to make it unobtrusive for non-JS users.
...
2
votes
1answer
63 views
Registration form validation in jQuery
I have created a registration form using jQuery. I am validating username and password using an AJAX request. The "submit" button is originally disabled and is only enabled when all three fields of ...
1
vote
1answer
48 views
Show/Hide button for a search field
I have made a form where the submit button will show if the text box is focused and the button will hide if the text box is blurred.
These codes work fine. But I wonder if the jQuery code could be ...
3
votes
1answer
65 views
jQuery module to edit HTML elements
I need to turn a lot of html elements as editable elements. You will double click on the element to edit, press enter to validate (send a PUT to the RESTapi), press esc to undo.
I've written this ...
3
votes
0answers
40 views
JavaScript validator plugin
Please help me to improve the JavaScript validator plugin by making it more OO and robust.
Requirement is to trigger the validation if there is an attribute ...
2
votes
0answers
28 views
Check / uncheck multiple checkboxes on clicking a link in native JavaScript
I am trying to get to grips with native JavaScript and wean myself off jQuery, so as an exercise, I wrote the following to check or uncheck checkboxes depending on which link is clicked.
Could this ...
0
votes
0answers
29 views
Adding contacts to a list using AJAX, with handling for warnings and errors
Given a page that renders a list of contacts, and where you can add more contacts to the list via a form:
When the user fills the form and clicks Add Contact there are 3 use cases that may occur:
...
8
votes
2answers
394 views
Github User Lookup
I have made my first app in Elm, a lookup of Github users.
You type the name of the user into the search bar and the user's username and profile image - which has an anchor linked to their profile - ...
1
vote
0answers
23 views
Microsoft Office 365 Addin Angular Form
This is my first time making an Office 365 Addin and wanted advice on my current form structure.
I'm particularly looking for advice on best partices for constructing directives and how to properly ...
1
vote
2answers
104 views
Use jQuery to force two checkboxes mirror each other's state
RESTRICTION: jQuery 1.6.4 only, no other library, or version can be used.
My goal is to use jQuery to allow two input checkboxes behave the same.
For example: If 1st checkbox is checked, 2nd will be ...
3
votes
2answers
54 views
jQuery Plugin for a Form
jQuery plugin for a form. Looking for constructive criticism on my code. Thanks in advance!
...
2
votes
1answer
18 views
Instantiating icons, labels, and text fields for a contact form
While teaching myself Wx using this GridSizerTutorial page, I suddenly realized that there was a construct in Python that would let me considerably shorten the initialization code below. The three ...
1
vote
0answers
41 views
POJO-based PDF form filler
I'm pretty new to Java development and have written a little POJO to "PDF Form Filler" program. I'd be interested in recommendations and suggestions about coding style, used methods and classes and so ...
1
vote
0answers
29 views
AJAX Form Creator
I wrote an AJAX Form Creator (in the form of an js object constructor) that takes a form and a callback. I am a decent, slightly okay, completely novice developer, and could use feedback on coding ...
3
votes
1answer
38 views
Profile creation
I was creating a view with Django that would create a user profile for a website and this is what I came up with:
...
4
votes
1answer
81 views
Javascript contact form validation code
I'm a UI / UX Designer trying to sharpen my JS skills. I wanted someone else to check this code snippet and maybe have a Pro tip to improve or shorten it.
Javascript:
...
1
vote
0answers
74 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
28 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
60 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
59 views
CSRF-prevention mechanism for a form
I am using codeigniter framework in PHP. In signup form I have:
Controller:
...
-1
votes
1answer
153 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
56 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
106 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
114 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
130 views
Form validation library
Background:
After reading this thought provoking book I decided to write a small library as an exercise.
...
1
vote
0answers
37 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
31 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
15 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
49 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 ...
2
votes
1answer
73 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
40 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
117 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
3answers
37 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
58 views
1
vote
1answer
59 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
37 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
85 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 ...
2
votes
1answer
62 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
42 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
44 views
3
votes
3answers
141 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
39 views
1
vote
1answer
71 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
79 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
45 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
109 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 ...