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
answers637
viewsHow to insert values from a Select field into the database
I’m a beginner in Ruby on Rails and need to add a Select field to the user registration form, so I can add a "Type" for the user to be registered. I intend to populate the fields automatically while…
-
2
votes1
answer219
viewsHow to get the link id present in the postLink method?
I need to get the id link present in the method postLink in order to delete from the database an image id is equal to this link id, which is equal to the database id. How do I get that value? View…
-
2
votes1
answer1489
viewsDjango - Error saving to Database
The data is not being saved in the database and Django is not generating Error, but when I create an object of Livro and try to save by shell it returns me the following error: Valueerror: invalid…
-
2
votes2
answers290
viewsAutocomplete for forms
Do you know of any web tools in Chrome or Firefox that auto-complete forms with random text for testing? I have a form of 35 fields and each time I submit for tests, I have to complete it again.…
-
2
votes1
answer119
viewsPage display error - Django
At Django I’m developing a Library project! (I’m Beginner at Django, I’ve never worked with web development) Summarizing I have in the file models.py a model Library and a model Book, in the model…
-
2
votes1
answer454
viewsCreate link with form data
I have an external search site ready where the search results generate a link similar to this: http://example.com/pesquisa?utf8=✓&search=itempesquisado&x=0&y=0. I would like to create a…
-
2
votes2
answers949
viewsHow to know the current state of the form?
I am beginner in the area, I could not find my question elsewhere. Is there any code, which shows the state of the form? For example: if it is in focus, if it is minimized or maximized? Thanks in…
-
2
votes0
answers120
viewsForm redirected to a second page, but I don’t receive the information submitted in the email
I have a form called formulario.html that when it is successfully submitted, the person is redirected to a site thank page called agradecimentos.html. Everything was working fine, but when I go to…
-
2
votes1
answer3036
viewsHow to send more than one value in a select element of the html form?
I’m creating a form and for some fields I need to submit more than one value and I don’t know if the form I’m doing is the best or not. <select name="itens[]"> <option…
-
2
votes1
answer409
viewsHTML input that can store multiple values?
How can I input similar to the one in this forum? /questions/ask in the tag area, when we insert an example tag: "PHP", and give enter it already saves that value and expects another user.…
-
2
votes1
answer104
viewsHow to access link with parameter through html or Html5 form?
I have the following html code. <form action="http://www.meulinkqueseraredirecionado.com/namer/"> <input type="text" /> <input type="submit" value="Acessar" /> </form> I want…
-
2
votes2
answers59
viewsWhat php code do I use to know if the data is being received from a given form?
I have two search forms. The first with the name "buscaid" the second "buscaimv" needs a php code that checks whether data is being received from either of the two only, otherwise it will be…
-
2
votes3
answers1052
viewsValidation of MVC forms - PHP
To validate forms with the concepts of MVC, it would have to be in the Controller, Model, or View? Researching in internet I’ve seen some articles on the subject, but some recommend doing model…
-
2
votes1
answer292
viewsAngular.js $setValidity onload Page
Setting: I have a form with 3 steps, a jsp for each step. In a given jsp there is a input text with the directive ng-minlength and a onChange calling a function that validates with the $setValidity…
-
2
votes2
answers9850
viewsHow to input accepting only letters?
I am making a form and the user has to type only letters in the field of his name, I want to block for him to type some other type of character ah not be the letters, how do I do? I am programming…
-
2
votes2
answers89
viewsClick an H3 and focus on a form field
I am organizing a contact form, divided into several parts. One of the things I need is that when the user clicks an H3 (but it can also be a div, anchor or button) a specific field of this form is…
-
2
votes2
answers1445
viewsHow to insert $_POST in HTML form input?
How to insert a $_POST in a input of a form HTML? In a simple login form, when leaving a blank field, the script rescues the filled field, keeps it filled, and informs the empty field error, so that…
-
2
votes0
answers895
viewsUpdate form and div data from the same page by clicking a button
I have a page that has a form and an image. This form consists of 3 buttons that access "hints", a field for response, and button for "Check Answer" and "Next Question", and a field "Score". Well,…
-
2
votes1
answer650
viewsIs there any way to submit the form to an Iframe (without Javascript)?
Is there any way to make a form submission where the action, instead of updating the page, be submitted to a iframe? I’ve seen it somewhere, but I didn’t know how the magic was done. It was done…
-
2
votes1
answer134
viewsAction Form HTML
Guys, recently I came across a question when I analyzed some forms on websites. I’ll be very direct. Because some HTML forms in some web applications use a javascript code in their action, For…
-
2
votes2
answers444
viewsHow to create a function to clear the group of a radiobutton?
I am working on a typing system of a paper form, where I have some options of radiobutton, for example: <fieldset> <legend> Disponibilidade de energia elétrica? </legend> <label…
-
2
votes1
answer3563
viewsWhen selecting an option in select Exchange form fields
I am creating an event website for a friend, and for the registration form I have the following situation: <h1>Formulario de Inscrição</h1> <form name="incrição"> <b>Nome…
-
2
votes1
answer10046
viewsHow to use the Pattern attribute?
I’ve been all over the Internet, even W3school, and all I see is them reporting the "ready" code. With keys, interrogations, bars, cipher and several other parameters. But I couldn’t find anything…
-
2
votes1
answer50
viewsform does not insert into database
I have a HTML with that code: <div class="row"> <form method="post" action="php/mensagem.php" accept-charset="utf-8"> <div class="row"> <div class="col-lg-6 col-md-6 col-sm-12…
-
2
votes2
answers4189
viewsRequired for Checkbox / HTML5
I have several input fields from checkbox referring to the interests of the customer to mark (Interest 1, 2, 3, ...), and another with option of All. I want him to be forced to mark one of these…
-
2
votes1
answer364
viewsAlign form elements to the center?
How can I center input/textareas (but I want the label to stay on the left)? form { width: 700px; color: red; } form textarea,input { display: block; margin: 0 0 30px 0; } <form> <input…
-
2
votes2
answers69
viewsHow to create a page that displays database entries?
I have a system with a registration page, I would like another page that shows all the records that have been made, cute as a matrix. EXAMPLE: ID NAME E-MAIL 01 Mariana [email protected] 02 Bayonetta…
-
2
votes2
answers276
viewsPrevent form Ubmit, but allow other actions by typing enter in an input
I have a input text within a form, however I do not want the form is keyed ENTER. The code below works, but if I decode the alert the form is submitted even having the two lines below. Can anyone…
-
2
votes3
answers329
views -
2
votes1
answer6846
viewsCreate a textarea with text editing options
I need to put a textarea where the person can edit the text. Ex: choose font size, apply bold, change text color, add photos along with text (one paragraph, 1 photo, plus a paragraph, 2 photos). Can…
-
2
votes2
answers845
viewsHow to find and select option with select-specific label with jQuery
With jQuery, how do I change the label of an option, not value, example: <select id="meuSelect"> <option>[nao_selecionar_esse label]</option> <option>[SELECIONAR_esse…
-
2
votes1
answer523
viewsHow to use other HTTP methods in HTML forms?
I’m using Express.JS to make a CRUD in Nodejs. I was trying to make use of the new HTTP methods, such as put , but when I put it in the attribute method of the apparently not certain form. The code…
-
2
votes1
answer794
viewsHow to run an external script from a Wordpress form?
I just installed the last version of Wordpress and created a page with a simple form. <form class="" method="post" action="insert.php"> <input name="name" placeholder="Name"> <input…
-
2
votes2
answers89
viewsHow can I extract values from a Javascript input, but using HTML validation
<form><label for="NUMERO">Digite um número</label> <input type="number" name="num" id="NUMERO" min="0" max="100"> <button type="submit">Enviar</button>…
-
2
votes1
answer1810
viewsHow to capture parameter in form with enctype="Multipart/form-data"?
I’m having trouble capturing the parameters of an HTML form with enctype="Multipart/form-data", I can upload an image through the form, but I can’t capture text typed in the form. The form looks…
-
2
votes2
answers367
viewsFieldset element should be used only in form?
The element <fieldset> may only be used in forms for your organization and grouping of content or may be used anywhere in the code?
-
2
votes2
answers245
viewsUpdate table attribute, via Form <?php $PHP_SELF ? >
I tried to make a code here, but it didn’t go very well... they know to inform me where the error is? <? if(isset($_POST['reseta_wl'])) { $dbhost = '127.0.0.1'; $dbuser = 'root'; $dbpass = '';…
-
2
votes1
answer82
viewsValidate text box so it has 9 numbers and can only start with 9 or 2
Good afternoon, It needed to create a validation of a text box in which it is mandatory to be only numbers and which must start with 9 or 2 and must also have 9 numbers. Someone gives me a light on…
-
2
votes1
answer1631
viewsForm validation php and ajax
Sorry if the question is silly, but I don’t know much about ajax and I’m trying to make a basic form to test the validation using ajax and php (if possible). Good reading on the internet and seeing…
-
2
votes2
answers783
viewsCSS - How to select the last sibling?
I have the following HTML structure: <form action="" id="form-contato"> <label for="nome">Nome</label> <input type="text" name="nome" id="nome" placeholder="Nome"/> <label…
-
2
votes0
answers243
viewsBeginform makes GET instead of POST
I have a controller that has two actions; public ActionResult Cadastrar() { return View(); } //[ValidateAntiForgeryToken] [HttpPost] public ActionResult Cadastrar(Usuario usuario) { if…
-
2
votes2
answers52
viewsWhen I create a Form deforms the Button
When I create a Form using JS to open at the click of a Button, the text the Button is warped. #openSendForm{ background: #0ebd64; position: absolute; width: 250px; height: 50px; right: 70px; top:…
-
2
votes1
answer119
viewsDisregard words in input
I would like to know how to override/disregard certain floods placed by users in the input. I have an input where the person should send me the URL of a site, in case they should send the url as a…
-
2
votes1
answer393
viewsPull fixed data from . json to select in form
I don’t know what’s wrong that it’s not pulling the json data, my goal is to pull the city/neighborhood data to display through another javascript code, but I can’t get the select to display the…
-
2
votes2
answers90
viewsHow to leave a radiobutton marked as default on Ember
I have these two Components radio-button. I’d like to leave the Pessoa Física marked/checked as default. How do I do this in Emberjs ?. <div> <label>Pessoa Física</label>…
-
2
votes1
answer161
viewsConfigure Reply-To in form
Hello, I am working on a PHP form where I need to configure the sender’s email in the 'Reply-To: ' field. $from , that way, the reply to the email will be direct to whoever filled out the form.…
-
2
votes2
answers52
viewsSearch only form fields with value other than 0 and put in PHP variable
I have a quote form with 70 products in which the user chooses the amount of products he wants from each one. All are named with id P1, P2...P70 and are number type inputs. <form…
-
2
votes3
answers636
viewsLoad grid information in textbox in a form that is already open c# windows form
Hello I’m trying to do something that seems simple but I’m not getting, I want to click on a button add the data of a grid go to another form that is already open. the problem is that I am only able…
-
2
votes2
answers39
viewsLack of security page registration
Guys, I have a question about security. I made a form, to register users, until then ok. But for example, this form has an action, which is for the same page in the case. If a person creates a page…
-
2
votes1
answer408
viewsCreating a SELECT based on another SELECT
I am using a SELECT that automatically updates the page after it is selected. I created another SELECT to work based on the previous SELECT, however, although I see the right amount of registration,…