An HTML form is a section of a document containing normal content, markup, special elements called controls and labels on those controls.
0
votes
0answers
24 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
34 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
51 views
1
vote
1answer
37 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
25 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
36 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
44 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
33 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
41 views
3
votes
3answers
72 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
32 views
1
vote
1answer
48 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
65 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
43 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
73 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
67 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
40 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
58 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
81 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
29 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
41 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
64 views
4
votes
1answer
58 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
38 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
80 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
66 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
123 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
306 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
74 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
166 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
...
7
votes
0answers
126 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
46 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
33 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
85 views
1
vote
1answer
229 views
PHP e-mail form with ReCAPTCHA
I want to ask if you can review the code for a simple contact form and the PHP code which sends me an email once a visitor fills the form and is validated through Recaptcha
On my index.php file here ...
2
votes
2answers
97 views
Using actionPerformed() to call different methods per radio button selection
My Java is very rusty and I have been unlucky finding a better way to accomplish this task. I have two different methods which get called based on which radio button is selected. Is there a cleaner ...
3
votes
1answer
50 views
Submitting form after validations using jQuery
This is my simple jQuery form validation/submit logic and it is working perfectly fine. But still I am posting this to see if someone check the logic and suggest me if there is any other simple way to ...
4
votes
2answers
106 views
Designing a Backspace key
I have designed a Backspace button (part of a keyboard which I am designing) in windows forms and it works perfect with no errors (the code works very good). This button deletes what is inside the ...
0
votes
1answer
26 views
Identical jQuery autocomplete handlers for two form fields
I do need to use jquery autocomplete for two inputs. But I have use same processing script for these two elements.
At this stage I am doing it like this.
...
0
votes
1answer
17 views
Configuring a date picker with support for disabled dates
I'd like to see if I can somehow make this loop more effective (smaller?). I'm using MultiDatesPicker to make a reservation plugin. And I've set everything right, and everything works, but I'd like to ...
4
votes
2answers
62 views
Extracting relevant form data to an array
I have the following function, it works exactly how I need it to; however I think there is room for improvement.
The script is supposed to loop through all input and text area html elements. It ...
2
votes
1answer
94 views
Registration, Validation & Storage functions
The last time I wrote any serious code was the 90's, so a lot has changed and I am finding I am having to relearn pretty much everything.
I have leaned a lot from previous posts and this is the ...
3
votes
1answer
193 views
Simply implementing a repeating HTML form with a total
Since the repetition mode didn't make to HTML5, I was wondering how to succinctly implement it in Javascript. I've already spent a few hours on this jsbin. Be great to get a review.
...
3
votes
2answers
78 views
Simple web form in PHP
This is a simple web form handler in PHP that sends a completely filled web form to a email.
I see lots of repeating code. What is the best way to reduce repetition?
Is my way of checking for fields ...
3
votes
1answer
144 views
Phone number format and data entry restriction
I created a form that formats phone numbers, allows only allowable keys to be pressed, and converts a lettered entry into its corresponding phone keypad number. Is there some cleanup or better coding ...
4
votes
1answer
37 views
Style-changing handler for an HTML drop-down box
How can I maybe do some loop that will compress the amount of JavaScript/jQuery I need to use. I have a function s3episodesChange() linked to a ...
11
votes
2answers
141 views
Early Access: Dynamically expanding input element table
This code is in a really early state in the lifecycle. I'm still in the process of implementing some core features, but nevertheless the code up to here works and accomplishes its task.
I have no ...
6
votes
2answers
283 views
Updating the presentation of a credit card field as the card type becomes known
The goal here is to, add a credit card image, and remove all other credit card images, of a certain input field.
I had a even larger code, with a lot of addClass() and removeClass()... then, I shrink ...
6
votes
1answer
294 views
UI selector directives for an AngularJS invoicing module
I'm wrapping ui-select in my own directives to pre-configure and style it, as I need it for my app in different select widgets. They appear on many pages, for example ...
4
votes
1answer
60 views
Limiting the number of text fields created
I need to make sure that the max of text fields created is limited to 10 at most.
It's a script that I've ripped off elsewhere, and have modified it via help from StackOverflow on a couple of other ...