An HTML form is a section of a document containing normal content, markup, special elements called controls and labels on those controls.
1
vote
0answers
14 views
IE8 Form Validation Code
I am writing a custom form validation script compatible with IE8+ . I just wanted to make sure i am not messing anything up. I have tested on IE8 its works. However i want to make sure i am doing it ...
1
vote
1answer
35 views
Enabling or disabling input fields
In my Rails app, I have a form. The form has radio buttons for entity type and has a text field for SSN and another for EIN. Based on the radio button selected, one of the text fields will be ...
2
votes
1answer
45 views
PHP Login and Registration system using BCrypt
I'm new to web development and this is my first website. I was wondering if my login and registration system is secure. I was also wondering how to handle viewing parts of a webpage when the user isn'...
5
votes
2answers
2k views
4
votes
0answers
26 views
Unit tests for React component to submit an input form with validation
I'm very new to front-end/unit testing and have been having a difficult time understanding the point altogether, but I managed to push my way through testing literally everything I could possibly ...
2
votes
1answer
42 views
Function with jquery.alphanumeric
I want to implement jquery.alphanumeric in HTML pattern, so I used a jQuery plugin from here. Can this be shortened or improved?
...
3
votes
1answer
64 views
jQuery autocomplete for all place names in the UK
I made an autocomplete input box of every town, city and village in the UK. Yes, every single one. The load times are painful so is there a way to reduce that?
Here is a sample:
...
3
votes
1answer
76 views
Disable button when required inputs are not filled in
Currently I'm having a big form, with steps and a lot of complex fields. To make sure the user fills the required inputs and don't make them crazy pushing down the button submit when one required ...
5
votes
2answers
153 views
Form that reveals more fields as each step has been completed
I'm new to JavaScript and jQuery and need input about how to optimize my script:
...
-1
votes
1answer
61 views
jQuery button click handler to fill in form fields [closed]
I have this function and not quite sure how to optimize it?
...
3
votes
0answers
147 views
Spring MVC dynamically adding form elements
I made a simple form with an option of adding one text field dynamically on mouse click. And I will be grateful for suggestions on how I may improve the code.
...
5
votes
3answers
162 views
Upload an image to a folder through a form
I am using this code to upload an image. Please review it and give your feedback regarding performance, security, and quality. This also works in PDO project.
...
1
vote
0answers
48 views
Zend Framework Form Validation Example
I am a beginner in Zend Framework 3 and I want to hear your opinions about the code that I wrote. I don't know how exactly I can connect forms, and validators together that the code will be quite nice ...
1
vote
0answers
61 views
Populating an HTML table with JSON results
Could anyone suggest a better approach than the one I'm using now? I tried to keep it as minimal as possible, but this is the best I came up with. I did extensive research just to get to this point.
...
3
votes
0answers
46 views
jQuery plugin for a lightweight dropdown
I'm working on my first jQuery plugin for a lightweight dropdown. This dropdown behaves just like a ordinary <select>.
Before implementing new features I'd ...
1
vote
1answer
44 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
126 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
91 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
74 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
55 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
71 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
41 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
44 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 ...
8
votes
2answers
422 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
31 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
125 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
57 views
jQuery Plugin for a Form
jQuery plugin for a form. Looking for constructive criticism on my code. Thanks in advance!
...
2
votes
1answer
20 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
58 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
31 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
42 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
89 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
222 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
45 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
99 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
67 views
CSRF-prevention mechanism for a form
I am using codeigniter framework in PHP. In signup form I have:
Controller:
...
-1
votes
1answer
628 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
85 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
194 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
145 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
140 views
Form validation library
Background:
After reading this thought provoking book I decided to write a small library as an exercise.
...
1
vote
0answers
89 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
34 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
18 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
51 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
81 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
45 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
123 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
47 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:
...