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
-
0
votes0
answers30
viewsHow to pick variables with repeated names in the ajax method
Come on, I have an AJAX method that takes values from a form and saves them in the session. There are several forms with the same fields, they are generated automatically according to a database, so…
-
0
votes1
answer119
viewsHow to create validation in different fields in the Reactjs form?
How do I validate the form created with Reactjs according to what user reports in the fields? Example: <form> <label for="tipo_requisicao">Escolha uma opção:</label> <!-- Campo…
-
0
votes1
answer39
viewsreturn select "related table" in the Format
Hello my application was developed in Modular and as a complement I am using some components of Vuejs. Let’s get to the problem, I have a client table doing relationship with country. In the same…
-
0
votes1
answer26
viewsProcessing to save + signal in the BD through a registration form
I have a tire brand registration form, in one of the input fields where I inform the model of the tires, I need to pass the + example sign (ecoplus+). I take the values of the fields through a…
-
0
votes1
answer37
viewsAngular11/HTML - Problem with autofocus
Hello, everyone. I’m having problems with autofocus. I have a login form with user and password. autofocus is in the user input. After the first login, save user and password to not need to type…
-
0
votes1
answer21
viewsHow do I send a multidimensional array via a post to receive in a form?? in php
<?php $funcionarios = array( array("nome" => "Pedro", "idade" => 24, "salario" => 2245.32, "filhos" =>3, "ativo" => true), array("nome" => "Rossana", "idade" => 35, "salario"…
-
0
votes0
answers9
viewsForm validation and page redirection
I have a form in an html page, then I have 2 links, each one redirects to a different page and in each of these pages is rendered another form that is actually continuation of the first. I want to…
-
0
votes0
answers24
viewsSum date in a form field
I need to get the date sum from the integer number indicated in the form field, and display it in the second date field in a process form. I tried the following: var dias =…
-
-1
votes1
answer591
viewsIs it possible to validate form on client and server only with Javascript?
In the particular case, I would like to create a form contact, with name, type of service (dropdown menu: webdesign, mobile), subject and message. I would also like to send this form with name, type…
-
-1
votes1
answer70
viewsforeach returning non-existent empty data
I have the following form: <form class="form-horizontal" action="perguntas.php" method="GET"> <fieldset> <?php $StringPerguntaLoja = "SELECT * FROM sug_pergunta_fixa AS p inner join…
-
-1
votes3
answers827
viewsCreate serial number generator button
So, I need to make a button that generates a serial, inside an input text when clicking. But the serial would need to contain [wf][2017] as the default and the remaining random. Ex: wf2017892143. I…
-
-1
votes1
answer127
viewsContact Form 2017
My question is simple and direct: Currently, in 2017, with the advancement of Javascript... Is there any way I can make a contact form 100% via javascript without using a PHP for example? If not,…
-
-1
votes1
answer60
viewsHow to receive data from a form that has repeated field names?
My final project of course, in a well summarized way is a game of questions and answers, in this project, I have the table "Alternatives", when I will perform the registration of questions, there…
-
-1
votes1
answer57
viewsHow to open a form from another site with pre-populated fields with PHP / HTML / JAVASCRIPT?
Hello. I am improving the customers billet update on my website and need help. There is currently a refresh boleto button on the ADM page that users use, where it redirects users to the boleto…
-
-1
votes1
answer112
viewsPick up Form URL
all right? I have a form inside a certain folder, for example, domain.com/form/ but I will use this form inside another page, for example, domain.com/about where I would need when the user fills in…
-
-1
votes1
answer54
viewsReply form An error occurred while sending the message!
I have created a form that in the approval environment is responding and going to thank destination page. When I go up to the domain server it is responding negatively. Someone tells me where I am…
-
-1
votes1
answer46
viewsProblem to submit form from Javascript
I have a form and would like to submit it without reloading the page I am trying it with javascript, when I try to click the button it does not submit the form as I asked <form id="myForm"…
-
-1
votes2
answers36
viewsI am tempted to send a formlario without the ultimalization of the Ubmit input
I was wondering if it’s possible to submit a <form> as a standard text: <form method="POST" action="#"> NOME </form> When you click on the text NAME it must submit the form.…
-
-1
votes1
answer123
viewsApplying CNPJ Mask to Dynamically Add/Remove Fields
var corCompleta = "#99ff8f" var corIncompleta = "#eff70b" function ResetCampos() { var textFields = document.getElementsByTagName("input"); for (var i = 0; i < textFields.length; i++) { if…
-
-1
votes2
answers145
viewsWhat I’m missing in this Form Calculating IMC in Javascript
<script type="text/javascript"> function calcula_imc(){ var altura = document.imcForm.altura.value; var peso = document.imcForm.peso.value; var quadrado =…
-
-1
votes1
answer46
viewsPositioning a FORM on the page
I’m trying to put two SELECT MENU next to each other on my page. However, when I put the first it appears, when I put the second and appears in the switched position. If I invert and put the second…
-
-1
votes1
answer737
viewsAjax does not work on android
I’m making a request ajax that works perfectly on the Desktop, but when I test on android does not work, if anyone can help me jQuery(document).ready(function($){ $("#loginform").on('submit',…
-
-1
votes1
answer111
viewsPHP does not take information from the phone field
I am creating a form to send e-mail direct from a website, through the PHP. However, when I add the field to put the phone to contact the code PHP, You don’t seem to recognize the field, and you…
-
-1
votes3
answers45
viewsI created a contact form to send directly to my email. It sends, but does not take information from text inputs
Hello. I created a contact form on my page. Along with this contact form, I created a PHP document for it to send to my email the information that the user typed in the text inputs of the contact…
-
-1
votes1
answer23
viewsMake form open within a link
Hi, I have a page ready, it’s a school paper I need to deliver. The criteria for evaluation is a form on the page, but it needs to be opened through a link. Is it possible to open this form with…
-
-1
votes1
answer31
viewsLogin with validation does not work
There is a login that I use for all systems that I develop and works on all of them, except in this case. Login.php <!-- Formulário --> <form method="post" action="validacao.php">…
-
-1
votes1
answer164
viewsEach line in the "textarea" give a different return. Using form and javascript to create a code generator
The code below has the function of catching the link of each input form and add <a href="link" target="_blank">Link - ?</a> I wonder if it is possible to get the same result with just…
-
-1
votes1
answer298
viewsHow to Set PHP 7 Variable for POST?
I am trying to record information from a form on a basis, but when I Gero the following code below is presented an error in the file saying that: Notice: Undefined index: txtFirstName in…
-
-1
votes1
answer69
viewsFailure in php form
Good afternoon, you guys. I have a problem with the site form. I cannot send and when you send, it does not send the contents of the message field. It follows the html and php code. the Link to the…
-
-1
votes2
answers138
viewsSend only the data of the fields completed by e-mail using PHP
I have an HTML form, and I’m using a PHP code to send the data via email. However, I would like to send by e-mail only the data of the fields filled, and their respective names. Example: [ ] Nuggets…
-
-1
votes1
answer132
viewsModal help for confirmation of email sending and data validation
I have the following form on my website <form class="form-horizontal" name="form1" method="post" action="enviaemail.php"> <div class="form-group"> <div class="col-sm-4"…
-
-1
votes1
answer118
viewsForm in HTML+PHP+Jquery to edit password appears Chrome default window
I made a form for password editing and the expected action is a Ubmit on onclick, but on the contrary is displayed a screen for managing Chrome, I did not enable this option and it persists on all…
-
-1
votes1
answer239
viewsMy php code for sending email is not being loaded
I have the following code to send email from my form <?php // alterar a variavel abaixo colocando o seu email $destino = "[email protected]"; // emails para quem será enviado o formulário…
-
-1
votes2
answers45
viewsHow to submit form and how to leave without refresh
I’m trying to send my form to my email, but it only returns the message "No Arguments Provided!". I don’t know what I’m missing. And I would also like to know how to send the form and appear the…
-
-1
votes2
answers49
viewsJavascript code enhancement for site field validation
Good morning guys, I just need a little help improving a javascript field validation. In my form there is a field called website and I need to have a url validation (I already did) and I need to…
-
-1
votes1
answer401
viewsFill form fields with API data
Good morning, I have a form where the user enters the code of a product. When entering the code an API is triggered and it returns the data of the informed product. My doubt now is how to make the…
-
-1
votes1
answer48
viewsSame url works sometimes yes and sometimes no
I am with a web form, in which I have this code: <form action="../../MenuPrincipal" method="POST" class="form-inline"> <button type="submit"> </form> and my file structure is like…
-
-1
votes1
answer58
views -
-1
votes1
answer159
viewsBlur event with next select field
I have a form with all fields disabled except the first one. When filling the first field, if the value exists in the database all fields must be activated. I did this using the jquery Blur event.…
-
-1
votes1
answer46
viewsHow do I display a message below my form without redirect? NOTE I do not use database
<?php if(isset( $_POST['Nome'])) // Vai adicionar o elemento $name = $_POST['Nome']; // Vai enviar o elemento if(isset( $_POST['E-mail'])) // Vai…
-
-1
votes1
answer322
viewsDjango: Form not saved in Django database
When I click to register the page simply refreshes and nothing is saved in the database. In the Django console I get the message: "GET /people/ HTTP/1.1" 200 898 "POST /person-add/ HTTP/1.1" 200 898…
-
-1
votes1
answer33
viewsHow to assemble a reactive fomulario through an input radio?
You guys can help me? I built a radio component and depending on the value of it will be rendered a new form, follow my HTML <div class="ui-g-12 ui-md-4 center-zone"> <msp-radio-group…
-
-1
votes1
answer67
viewsDifference between saving the form directly and creating model instance
I have been having some problems when I will insert or modify some value that was not passed to the user in the form and then save it. For example I have a Local model : models.py class…
-
-1
votes2
answers34
viewsJquery by selecting three forms at once
I am having a problem using Jquery, because it is selecting three forms at the same time, and they have different utilities. One is for new user registrations, another for login and one that serves…
-
-1
votes1
answer60
viewsMap Formgroup to an object
I would like to know if you have any better way to do the assignment of the values of a formGroup on an object. The bass follows what I did, but I think it’s kind of weird, but I also couldn’t find…
-
-1
votes1
answer26
viewsHelp with Jquery field validation
I did the following function for form validation in Jquery, but it got a bit big, and I have +50 fields to validate, someone knows some way to reuse this same function for the other fields without I…
-
-1
votes1
answer48
viewsProblem in php code to list the recorded data in the database (beginner)
I put the bb image and the php codes below so that someone can help me because I can’t find a solution. Error: Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool given in…
-
-1
votes1
answer36
viewsPHP cannot pull data from the database using Bootstrap
I have a form in PHP where presents the data of the logged in user. Follow code: Precisa de troco?<br> <input name="troco" type="text" id="troco" value=" Nenhum"…
-
-1
votes1
answer72
viewsWhy isn’t my form accepting accents?
I created a form with php sending the data to my email, but the data that contains accents get distorted and bad to read. Example: "Frog test number 29" PHP code: $destinatario =…
-
-1
votes1
answer48
viewsselect brings up input and select fields
Staff need that the field of imput appears and the field select with the status when the user selects your area of action if he selects Academic, Other or I’m not from Areá da Saúde not appear that…