Most voted "form" questions
HTML forms are used to pass data to the server. An HTML Form can contain input elements such as text fields, checkboxes, radio-Buttons, Submit buttons and more. A form can also contain select lists, textarea, fieldset, Legend and label elements (labels).
Learn more…725 questions
Sort by count of
-
2
votes2
answers157
viewsSend form data by e-mail
I downloaded the codes from a page on https://html5up.net/ to use as a temporary page while the site of an event I organize is not ready. The page has only one field where the person puts the email…
-
2
votes1
answer814
viewsEdit form Laravel
Guys, how do I bring the course that the student was enrolled in this edition part of the form. He brings the list of courses but wanted to already come with the course that the student was…
-
2
votes1
answer988
viewsEdit select by displaying bank value and showing other table options
I have the table that registers a user (gr_entity) and has a link with a user status table (gr_entidade_status). I want the editing form (editando_user.php) to show the value that is in the…
-
2
votes1
answer769
viewsSend form without Ajax and without updating page
When you want to send a form without updating the page, you think of Ajax, which is a practical way to do this. But there would be another way to do it without using Ajax? For example, I have the…
-
2
votes1
answer220
viewsInput type="email" problem in Chrome
I have a page that loads a contact form via Ajax in a div. It turns out that if I put an invalid character in the email field, Chrome shows me a weird address coming from the field. For example, if…
-
2
votes1
answer55
viewsSending of ZEND email
A client wants me to create a form that sends data to a link, from what I saw, is using "zend", I never got to use this framework and I’m a bit bewildered. That was his message: Para realizar a…
-
2
votes3
answers561
viewsProblem with accentuation in email form
I have an email form in PHP that does not send correctly accented words, appear several questions in words with accent, cedilla etc. I tried several things but none worked. Below is the script I’m…
-
2
votes1
answer437
viewsvalidate all form fields with Javascript
Good morning, all right? I am starting in Javascript and I need to validate all the fields in the form below through this. I was able to validate the first 6 fields, radio and checkbox are missing.…
-
2
votes1
answer242
viewsRemove one element at a time with Jquery
I’m using the function Clone jquery to replicate a div. However, when removing these elements, regardless of the amount that has been replicated, the function always removes the div by full. I need…
-
2
votes2
answers188
viewsHow to update only one column of the record?
I made a code to update some columns of my record when needed. There are 7 columns listed on array, but usually I will only update 1 or 2 columns. With this code I can update my record, but I have…
-
2
votes0
answers67
viewsUpload and manipulate a form from an external website
Hello, I need to embed this site on my site: https://geoobras.tce.mg.gov.br/cidadao/ so that the person can make the consultation for him. Using iframe works well, however I needed to manipulate the…
-
2
votes1
answer126
viewsI cannot receive the values of a PHP form via POST
I’m having a problem in a php form that I don’t know how to fix. I have a file called login.php that contains a form that sends the data via POST to the.php data file. In the.php data I do the…
-
2
votes2
answers925
viewsValidation of data in Javascript
I created some fields on my page and I’m trying to validate this data using js, but for some reason it’s not working, I just did a test in the first field. Follow my code in html and js, the…
-
2
votes1
answer273
viewsTrigger function only when form data is all filled
I created a radio form, which when filling the alternatives, when clicking on the Ubmit button, it sends the form data via AJAX to the PHP page applying the logic of how many questions were hit. The…
-
2
votes1
answer342
viewsSelect is not initialized with default value
I created a component that has a type field <select> and receives a property [modelo] as input: if the template is null, the form is initialized empty; if it has content, it is initialized for…
-
2
votes1
answer360
viewsMake input mandatory based on previous input
Guys who can help me, I appreciate. I have some reactive fields in my code, they become mandatory or not based on the previous field, my code is like this <div class="ui-g-12 ui-md-4">…
-
2
votes1
answer1301
viewsValidating password confirmation in Yup with React
I have to validate a form where the user can update his password, I’m using Yup to do this. My code is like this: const schema = Yup.object().shape({ name: Yup.string().notRequired().min(3, "O nome…
-
1
votes1
answer358
viewsContact form and newsletter Ideal
I would love to know what would be the ideal framework/api to handle contact and newsletter forms on a simple page with information about a company’s services. There is a field to subscribe to the…
-
1
votes1
answer4482
viewsPersonalised registration form
I came across the need to create a page with a "simple" but complex form in its structure (I believe). What I need to do, is that when creating a wordpress post, where the created POST has a unique…
-
1
votes2
answers1230
viewsForm action for same page or different page?
In the creation of an HTML form with insertion in the database, the action from the form to the page itself or to another PHP script. I’m in doubt about which would be the best option. I always use…
-
1
votes2
answers1044
viewsClear form on entry?
There is the possibility to clean up the form or the fields after the call without pressing any button? In my case the user changes menu and the data continues. Call menu: Menu Content page: Content…
-
1
votes3
answers812
viewshow to prevent multiple email submissions
Currently, my form sends the same email several times if the user clicks more than once on Ubmit. How do I stop this? I tried with these two variations of Cód, but it didn’t work.…
-
1
votes2
answers3250
viewsHow to submit form without being redirected by the action attribute?
The structure of the site is as follows: index.html: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script> // verifica se a página foi…
-
1
votes1
answer62
viewsReusing forms in php
I’m working on a PHP site where I have about 20 different pages that have the same form. Currently this site has in the 20 pages the same code for the form (Ctrl+c/Ctrl+v). Is there a way to use the…
-
1
votes1
answer238
viewsValidate Objective-C field
Setting: When filling out a form, it must be checked if one of the fields has been filled in correctly, containing 6 numbers followed by two initials that are the states of Brazil. This is not email…
-
1
votes2
answers547
viewsPHP delete values from the form if successful
I would like the values of this form to be deleted if the form is successfully submitted, everything is ok (does not erase) if there is any error but if there are no values continue there, I believe…
-
1
votes1
answer201
viewsHow do I limit sending data from a form?
I want to prevent a user sending data more than 5 times a day; I have no way to use database would have to be written to a file txt.
-
1
votes2
answers3954
viewsTwo actions in the same form
Hello! I need to have two actions in the same form. I researched some solutions and did as follows: <form id="formnewsletter" name="formnewsletter" method="POST"> <input type="text"…
-
1
votes1
answer233
viewsHow do ORDER BY with information that may vary?
I’m getting a list of articles from a database and I want to have on page one tool that allows me to list them in order of date they were written or in alphabetical order. Here I have my bank…
-
1
votes1
answer1388
viewsTwo forms on one page
Good guys I have a view with two forms and both possess action="current_url()", i.e., the two will perform the action on the same page, the problem is that regardless of the button I click to send…
-
1
votes1
answer994
viewsHow to convert to Database and check if a date is valid
How do I convert to YYYY-mm-dd and check if a date transmitted by a user via POST method is valid for my application?
-
1
votes2
answers4206
viewsFields aligned in form
Good night, I used float: right;' to put some fields of a form side by side, but they descend a field below. 'Full Name' and 'Date of Birth' should be side by side, but the date field goes down.…
-
1
votes1
answer190
viewsJS form with Success and Fail message
for days I have been looking for a good tutorial, explaining from the beginning, middle and end to the creation of a form with sending (PHP and JS), but without giving Reload on the page and also…
-
1
votes1
answer3833
viewsRedirect page after an email form
I am making a form that needs to reach my email but when someone clicks on Ubmit it is redirected to a thank you page. Grateful.
-
1
votes1
answer1761
viewsHow to use required in select in jqBootstrapValidation validated form?
I’m using the library jqBootstrapValidation to validate forms along with properties required and data-validation-required-message (displays a custom error message). Everything is working properly…
-
1
votes1
answer278
viewsForm gives error constantly in PHP
I am trying to make my page form return an error and remain on the page if no field is filled in. However, he is doing this even though all fields are filled out correctly ! Could you help me ? The…
-
1
votes4
answers1962
viewsHow to repeat the fields of a form?
I have a form where you have: =f.input :name , label: false , placeholder: "Nome do amigo" , input_html:{class: "form__input"} , required: true =f.input :email , label: false , placeholder: "Email…
-
1
votes1
answer1216
viewsDoes using a token in an HTML form really protect against CSRF?
Cross-site request forgery - The CSRF (Cross-site request forgery- Cross-site request forgery) is a type of malicious exploitation of a website by which unauthorized commands are transmitted from a…
-
1
votes0
answers45
viewsHow to direct Submit from a form to the method of a Wordpress plugin?
I am studying Wordpress, and to exercise I am developing a theme and a plugin. The goal is to use a contact form in the theme, that instead of sending the data by email, as usually done, make the…
-
1
votes1
answer565
viewsSend without giving Refresh and using onchange
I want to send without refreshing my page and using on change I’m using the code below Form: <form action="" id="ajax_form" method="post" > <input type="text" name="resultado1" size="5"…
-
1
votes1
answer1937
viewsCalculate the minute difference between two input time fields
How best to calculate the difference of minutes between two camps input time with PHP? Example of two fields input: <label for="Cseg3">Horário 1:</label> <input type="time" id="Cseg3"…
-
1
votes1
answer189
viewsCreate input fields according to the size of an array
Good evening, I’m receiving via JSON a List with the structure below: anexo: [{cod: 5, nome: "anexo1.pdf"}, {cod: 6, nome: "texto.txt"}] And I use the function below: $.getJSON(url + cod, function…
-
1
votes1
answer1242
viewsHow do I make Jquery Mask not accept numbers?
I am receiving a data that would be the first three digits alphabetic characters and the other 4 numeric (A vehicle plate). I saw on a site that to receive only letters in Jquey Mask, just use the…
-
1
votes1
answer109
viewsLimit the number of forms to be printed per page
I have the following code below that generates a form of information brought from the bank. If I print 2 forms of this per page is right on an A4 sheet, but the question is that I have tried to…
-
1
votes1
answer1007
viewsPopulate multiple input fields with values from other fields
I have three lines with four fields input of the kind time, and I want to create a button so that the two lines below can be filled equal to the first. I’m following this reply from Soen, and…
-
1
votes1
answer48
viewsWhy isn’t this Function working?
I am layman and am learning Javascript for a app simple hybrid. The first obstacle is a Function that is not running: The one whose name: function calcular(){ //ap1 =…
-
1
votes1
answer1409
viewsjquery copy and paste button
I would like to 'create' the copy command and paste command with jQuery. I have a form and need to put a paste button on it to make it easy for the user The user clicks to copy the youtube embed URL…
-
1
votes1
answer93
viewsC# Floating Form
Good, I’m making a program where I need a floating form that accompanies the mouse cursor while it’s inside a button, so far I have this: private void portaSwitchUpLink_MouseEnter(object sender,…
-
1
votes1
answer315
viewsManipulate path from a form input sent to url
I’m testing a search field that sends what the user types directly to the site I chose (in a new tab), searching the site itself, and it works perfectly. However, I wonder if there is any way I can…
-
1
votes0
answers84
viewsShowing error message
I made the following validations in Model: class Inscricao extends AppModel { public $name = 'Inscricao'; public $useTable = 'inscricoes'; public $validate = array( 'nome' => array( 'between'…