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
-
1
votes2
answers1103
viewsSend selected record from a p:datatable to the form, jsf primefaces
Hi, I’m new here, and I’m migrating from Struts 1 to JSF. I am developing in JSF a user registration screen. I would like it when I select a record from p:dataTable, the data from that selected…
-
1
votes1
answer946
viewsSubmit php does not work
My contact form is not sending, someone could see what mistake I’m making? HTML: <form id="contactForm" novalidate class="s-form wow zoomInUp" data-wow-delay="0.5s"> <div…
-
1
votes1
answer481
viewsShuffled fields in a form using Materialize
I’m inserting form in the materialize, but when I test the form and insert a text it looks like they get fucked. Example: I enter a name in first name but the name is scrambled with the title of…
-
1
votes1
answer1214
viewsView confirmation modal after sending email
I have the following code <?php require_once('PHPMailer-master/PHPMailerAutoload.php'); PHP_OS == "Linux" ? $quebra_linha = "\n" : $quebra_linha = "\r\n"; //$emp = $_POST["empresa"]; $nome =…
-
1
votes0
answers428
viewsHTML form for accessing a google drive folder
I have a folder of google drive shared but not available in search, accessible only with the link. I wanted to create a form (preferably from a google tool) available to a small group of friends in…
-
1
votes1
answer496
viewsSending form to Pagseguro
I have this form @using (Html.BeginForm("PacoteAdd", "Pacote")) { <input type="hidden" name="email_cobranca" value="*****@hotmail.com" /> <input type="hidden" name="tipo" value="CBR" />…
-
1
votes0
answers370
viewsHow to calculate fields in an Acrobatdc form using javascript?
I have a PDF form and I want one of the items to work as follows: After the fields A, B, C, and D are filled in, at another point of the form, A, B, C and D appear as options for a listbox.…
-
1
votes1
answer39
viewsCheckbox with Function
Good afternoon, I’m putting together a form with checkboxes that call a function through the onclick <body> <form name="questao1" method="post" onsubmit="sendToDB();">…
-
1
votes0
answers54
viewsProblem with Enctype in the form
Hello, I have a project being developed in php, it was all done so I hosted the site, when I came across an error that did not happen locally. I have a form file, this page receives a parameter via…
-
1
votes3
answers191
viewsHow to display the date in the input after the query
I have the following form: <?php include "conexao.php"; echo"<form class='navbar-form navbar-left' action='#'>"; echo"DATA INICIAL: <input type='text'…
-
1
votes1
answer298
viewsContact form in php does not send
<?php $name = $_POST['name']; //pega os dados que foi digitado no ID name. $email = $_POST['email']; //pega os dados que foi digitado no ID email. $assunto = $_POST['assunto']; //pega os dados…
-
1
votes2
answers100
viewsError capturing checked attribute
JQUERY $('#caption-item-1').click(function(){ if($('#boleto-input').checked == true){ $('doacao-proximo-1').css({'display':'inline-block'}); }else{ $('doacao-proximo-1').css({'display':'none'}); }…
-
1
votes1
answer120
viewsRedeem values from a modal item to update it in the database
I have some items returned from the bank that is listed in a table. To add an item, I call a modal where I fill in the fields by saving them in the database. However, if filling in this field is…
-
1
votes1
answer400
viewsE-mail Phpmailer to Hotmail
I am not able to send an email form to my e-mail Hotmail. Below follow the codes: Form with the data that will be sent. <form id="form-contato" method="post" action="email.php"> <div>…
-
1
votes1
answer979
viewsSending POST with Python via Curl
I want to turn the form (which is working) into a URL to run in the backend <form action="/users/login?ssrc=head&returnurl=https%3a%2f%2fpt.stackoverflow.com%2f" method="post"> <input…
-
1
votes1
answer38
viewsProblem on Select Multiple Form
I’m having trouble receiving multiple choices and inserting in Mysql I created this script sequence but <form method="post" action="01maxtestes.php"> <select name="padroes" size="10"…
-
1
votes1
answer82
viewsReturn in XML PHP - Source FORM
I need to give a feedback for this form: <form action="http://www.guiabp.com.br/staging/" > <input name="chave_portal" value="portalteste-0" /> <input name="codigo_cliente" value="0"…
-
1
votes1
answer495
viewsKeydown function skipping an input on TAB
Good afternoon, I have a function that when I hit enter it creates a new series of inputs in the first line pushing the filled ones down, I made that when I hit the tab in the last one the same…
-
1
votes1
answer145
viewsSend images to different folders and write each one to a database table using php
I’m a beginner in php and I’m trying to create a website. How do I send 6 images at the same time through the form, have each one sent to the specific folder and save to the database. Name of tables…
-
1
votes1
answer1353
viewsSubmit to the same page and return to the same page
Friends, I have a one-page PHP site that at the bottom of the page has a contact form that submits to the same page. I wanted after submitting the form to return to the same Action to show the…
-
1
votes2
answers340
viewsForm with two actions
I have the form below and I need two actions: Action 1: Keep the action of the form that sends data to the form website (as it is today - see form below) Action 2: Send data through a URL that will…
-
1
votes1
answer423
viewsForm on Laravel 5.4?
I’m having a hard time trying to create a form on Laravel 5.4, at the time of loading View appears the following error: "Errorexception in helpers.php line 532: htmlspecialchars() expects Parameter…
-
1
votes3
answers209
viewsPrevent login on a Submit form
I have a page from login made with HTML and CSS and need to prevent login in it with Javascript under certain conditions, but still not caught much the trick of how to do this. I’m looking on the…
-
1
votes2
answers1195
viewsValidating Javascript fields
I have a little problem in a code that transforms the Phone field to this format: (51) 96321-5465. However, every time I click Submit, the form says in the field: "É preciso que o formato…
-
1
votes1
answer378
viewsDatabase does not work
I never made a form, so forgive me if I’m absurdly wrong. Here is the bank with the table: CREATE DATABASE db_formacao; USE db_formacao; CREATE TABLE `db_formacao`.`formacoes` ( `ID` INT( 5 ) NOT…
-
1
votes2
answers1203
viewsForm validation with two buttons
I’m having trouble validating a form, but the way I’m trying I don’t know if it’s possible, someone can give me a strength? I have a form with two buttons submit. And on the tag form I’m putting the…
-
1
votes2
answers73
viewsNon-functional PHP Mysql database
I have a PHP form with a Mysql database generated by phpMyAdmin, but the database does not receive the information entered in the form. Follow the form code: <!-- content --> <div…
-
1
votes2
answers682
viewsAdjustment of css bootstrap button
I’m trying to get the height of one button in the form, but it appears very high in relation to the fields: <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"…
-
1
votes1
answer24
viewsInformation registered at the bank is exchanged
I have a form that sends the information to a bank and a page that takes this information and prints it in table format. However, the information in this table is appearing exchanged and when I try…
-
1
votes1
answer62
viewsDisable Submit function when appearing error message
How do I "block" or "disable" the form button when the error message appears? Input <input style="height:24px;" name="email" id="email" title="<?php echo…
-
1
votes2
answers546
viewsSend form data to a URL
I know html, but I’m no expert. I created a website for my hostel based on a template I purchased on themeforrest and it has a form that receives data (as input, output, adults, etc) the form is as…
-
1
votes3
answers62
viewsMy dropdown doesn’t matter bank options
I have a form with a dropdown, that should have as options users registered in a table of my database. The connection: <?php $connection = mysqli_connect("localhost", "root", "", "db_formacao");…
-
1
votes1
answer24
viewsField validation problem with ajax
personal made a validation via ajax on my form of website that when the user does not fill in the field and tries to submit the form it takes the inputs and adds a red border until then ta right but…
-
1
votes1
answer319
viewsAccess to external form with recaptcha
Hello! I am doing an application in the area of participatory budget, I would like to know what the best solution (if any) to connect to an external web page, fill out a form, allow the user to…
-
1
votes2
answers5888
viewsAdd button, insert input value inside the form itself
I have a PHP form to register (food) recipes. When filling this form, it is registered in a Mysql database. <form method="POST"> <input type="text" id="receita"> <input type="text"…
-
1
votes3
answers2065
viewsLink to call in phone numbers
I have a form where several user information are registered, including phone numbers and, after registering, you can view the registration by opening a form like the previous one with disable fields…
-
1
votes1
answer1069
viewsHow to save an image of a form to the bank
In my form, the user puts the information of your request and an image for reference, however, this image is not being saved along with the record. The form: <!DOCTYPE html> <html…
-
1
votes0
answers45
viewsCan you handle the Submit form Event with jquery to change the values sent to the server?
I have a java server that receives an object including other objects inside the object. I wonder if you can change the Submit in such a way that you can change the structure allowing you to put a…
-
1
votes1
answer45
viewsHow to validate certain PHP values if (almost?) they are all received from the form as a string?
I don’t know if they are all values, but in general, PHP takes everything as string when it comes from a form. Say I want to validate the age: <form method="POST" action="test.php"> <input…
-
1
votes0
answers306
viewsSearch for an item in the Aspnet mvc List
I have a controller, in this Controller has a action List, to which it returns all suppliers. In the view List, I created one input type="search". I want that when searching a name in this field, it…
-
1
votes1
answer445
viewsUpdate form registration with Laravel photo
All right, here’s the deal, I have a registration system in Windows, in the edit part, the form loads the fields filled with the photo, if I click update and do not choose an image file again…
-
1
votes0
answers266
viewsAvoid SQL Injection Login Form
Good morning, everyone, I’m new to anti-sql security Injection. I always learned only to validate the inputs and then use them in the query, always with mysqli_query and mysqli_fetch_array. I have…
-
1
votes1
answer250
viewsDoubt with Jquery - Take class value and apply as background
I need a help!! I’m making a form and each checkbox will have an image, however I did not want to manual by css each check, I wanted a script that already made automatic. I know how to do this with…
-
1
votes1
answer756
viewsHow to load an image into an img input type input by receiving the url of another input
Good night. I have a form that has an input that receives a url by ajax. How can I take this url and fill in another input to view the image ? JS (here I pass the id of the input that will receive…
-
1
votes2
answers1095
viewsTake the value of an input and return alert
I’m trying to return a value from an input that receives the value of a variable that also receives the value of a small equation, but I’m not getting it. The code is like this: function…
-
1
votes1
answer47
viewsHow to retrieve and send information from the form created by email?
Hello, I am creating a budget page on my site and created a table in Javascript where the client clicks add product and more rows of the same table are being added... Similarly, if he clicks to…
-
1
votes1
answer1729
viewsFind and Copy sheet line to form, change fields and write to the same sheet with new ID
My question is as follows: I developed a VBA form with 20 fields, which registers in the Bdados spreadsheet, also inserting an ID. What I want is to find and copy a record of the spreadsheet to the…
-
1
votes1
answer50
viewsRecord edit form does not change
On one page I have a material registration form, in another I have a table that shows all the materials registered with a button to change the information about a material and this button opens a…
-
1
votes1
answer331
viewsProblem in Django’s send_email function
Good afternoon! I have the following code in views.py: def email(request): if request.method=='POST': form = ContactForm(request.POST) form.email = request.POST.get('email', '') form.subject =…
-
1
votes1
answer64
viewsI get ghost emails before the test email
I have faced a curious problem. I have drawn up a basic form in php only to send email through the site. But I’m running some tests on the hosting service and I’ve been receiving several ghost…