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
-
3
votes1
answer802
viewsHow to link the Forms created in Django to the forms already created in the HTML template?
I started to see about forms in Django, only I had already created in templates of my project the forms with all inputs necessary. With the creation of forms in Django there is a way for me to link…
-
3
votes2
answers526
viewsRecover string in database in a dynamic form_dropdown
I am trying to retrieve from the database a string in a field dropdown of a form on a page of update, my view goes below. $option = array(NULL => 'Selecione uma categoria'); foreach…
-
3
votes1
answer2870
viewsHow to select a radio when clicking on the text next to it?
It’s very simple to make radio buttons. I’ve seen inputs of this kind around that allow you to click directly inside the circle or on top of the text that refers to each radio button. How do you do…
-
3
votes1
answer394
viewsHow to make object design control faster in a C#form
In a form, in C# for desktop, there are constant movements of certain controls. In this case I am using objects of type Picturebox, however its rendering is very time consuming. Is it recommended to…
-
3
votes1
answer685
viewsForm does not send all variables by POST
I am a beginner in PHP and created a form, and when I submit it by POST, only two variables (DESCRICAO and CODIGO) are being sent, the rest are blank. What is the error in this code? <form…
-
3
votes2
answers4972
viewsHow to make a form with date field? (DD/MM/YYYY)
I am a beginner in Kohana and need to make a form with a date field. My form is this: <?=form::open('controllerInscricao/index')?> <?php echo form::select('TURMA_codturma',…
-
3
votes2
answers300
viewsLoop with "for" in a form with equal field sets
I have a data capture of a form where are fields 5 sets of equal fields. I want that at the time of capturing for my array, I do not need to repeat: array[1] = post1, array[2] = post2 I know you can…
-
3
votes2
answers5350
viewsHow do I send data to a form using Curl?
I was reading about Curl, and I saw that I can use it to send data to a form (as if I was typing the data and giving Submit). How could I do this in php?
-
3
votes3
answers931
viewsHow to check the empty values of a dynamic form?
How to use Jquery to attack the attribute name of all inputs and check if there is value Current Code Form: ... <input type="text" name="nome[]" value=""> <input type="text" name="nome[]"…
-
3
votes3
answers4210
viewsSend form without using PHP or similar
I need my HTML FORM with Bootstrap sent. The problem is that I don’t know anything about PHP. The functionality I need is sending a message to an email address. Only the data and a message the…
-
3
votes1
answer48
viewsPrint form with: 1.photo in the post 2. id auto increment generated in the form Insert. How is it in PHP?
At the time of registration of the form the user will put the photo, so far so good. My problem is that I need to print this form already with the photo and the id auto increment of the database.…
-
3
votes1
answer217
viewsHow to put Transition in Form Option
I’m having a little trouble applying an effect on an Option, I have a form where you have Name, Email, Phone, Themes. In where is Themes he has a Children’s Decorations option, when selecting…
-
3
votes1
answer7738
viewsHow to validate multiple fields in a form?
I’m in need of some help with some basic logic... I have a form with 4 fields that when I do the submit on the button, I need to validate if at least one of the search fields has been filled in. I…
-
3
votes2
answers1004
viewsWhat is the difference between Forms. Form and Forms.Modelform?
Hello, dear people. With the help of a tutorial, I was able to create a template with form and use Forms.Modelform to save in the database, but I saw in the Django documentation that there is also…
-
3
votes2
answers50
viewsHow to send hidden information through a form?
I want to send information through a form, however I do not want it to appear in a field, I mean, I want to send information via post, but without it appearing in a input. How to do this?…
-
3
votes1
answer946
viewsReset value of a select field with jQuery/Boostrap
Hello, how can I reset a select field? <label for="IDSelect">Campo</label> <select data-live-search="true" title="--" name="NAMESelect" id="IDSelect"> <option value="1">Valor…
-
3
votes1
answer772
views"By Onchange" form validation with javascript
Good afternoon! I am trying to validate a form by "Onchange" with javascript, the script worked correctly but is presenting the following error: When I try to fill in any form field without having…
-
3
votes2
answers124
viewsForm: one choice is free, two have to charge. How do I?
I have a form, where each product selected has a value, and at the end of the form has the total, all this works through the form.js file follows code: var str = ""; var id = ""; var sub = 0.00; var…
-
3
votes1
answer42
viewsPass error variables between two php files
Hello I am trying to validate a form in different files, but I cannot pass the error messages between them. In index php. I have the form code : <!DOCTYPE html> <html> <head>…
-
3
votes2
answers445
viewsContact form does not validate and does not send some fields
Hello, it’s my first question here! The problem is this... I took a form on the net and tried to adapt to my needs, but the fields I created ($phone and $empresa) do not want to validate, I had to…
-
3
votes3
answers1224
viewsC# - Close Form without Stopping Application
Hello, I’m using C#, to create a login system. And I would like to know some formula to close this login window without stopping the application. I used this. Hide(); to hide the form, but when…
-
3
votes3
answers11315
views -
3
votes2
answers126
viewsError opening form - Delphi
I have an application that was developed in Delphi7 and I need to make a change in a given form, but when trying to open this form to make these changes the following error window is displayed to…
-
3
votes2
answers2502
viewsInput limiting file type
My form has an input file field, and would like to limit the file type to select only images and pdf. <form> <input type='file' required> <input type='submit' name='Enviar'>…
-
3
votes2
answers6191
viewsConsume API (JSON) in form fields, how to do?
Hello, my fellow programmers. I would like a help. I have to use in a project the API that contains the Table Fipe data in JSON format (http://deividfortuna.github.io/fipe/). I want my form to have…
-
3
votes1
answer5822
viewsTwo or more PHP formats on the same page
I’m having a little problem, I’m creating an app and I intend to have two Forms on the same page. It turns out that when I run the first one, I have no problems, but when I run the second one, the…
-
3
votes3
answers4462
viewsHow to display the result of a form on the same page?
I have a form that gives me the result on another page, but I would like the result to appear on the same page. <form name="calc" method="get" enctype="multipart/form-data"…
-
3
votes2
answers785
viewsHow to persist $_SESSION value in <select> as it was done for <input>?
I’m trying to get the value of select in the $_SESSION to persist the search data on a system I’m doing, but I don’t know how to apply this method to the select. Can you help me? I’ll save the…
-
3
votes3
answers168
viewsFunction calling other functions
I have a form and 1 function to validate each field of this form function valida_nome() { } function valida_email() { } function valida_tel() { } function valida_senha() { } <form…
-
3
votes2
answers642
viewsAdd CSS attribute when input is selected via Jquery
I’m Making an answer validation application for a particular question, I need that when the <input type="checkbox"> is selected if an attribute is addedbox-shadow to <textarea> of reply.…
-
3
votes2
answers96
viewsForms and Files
I’m making a form where I basically access a file .txt in the CSV format containing certain articles and their prices (e.g., cheese,2.10). The program presents the list in a table, and below appear…
-
3
votes1
answer985
viewsDynamic forms on the same page in Jquery and PHP
I’m trying to make a comment portal, and so will have a text input in each POST for people to comment, these POSTS will be on the same page (Facebook style), as well as inputs, which will have to be…
-
3
votes2
answers1169
viewsValue-finding function between Javascript variables
I have the following form: <body> <form name="questao1" method="post" onsubmit="sendToDB();"> <br><input type="checkbox" name="Q1[]" value="Enfermagem"…
-
3
votes1
answer842
viewsJavascript form redirection
I have this JS code that validates, sends and saves the form files in the BD. I need that after sending and saving in the bd, after Alert, the user is already redirected to another page.…
-
3
votes1
answer1053
viewsValidate form and insert into Database with PHP
Hello I’m still a beginner in PHP and stagnated validating the contact form of my site. Complete client-side validation using Javascript, but on the server-side you still haven’t completed the task,…
-
3
votes1
answer774
viewsCRUD PHP No update, no error
I’m having problems when I try to run an UPDATE on my system in PHP + Mysql. I have the file code edit: <?php require_once 'init.php'; // resgata os valores do formulario $nome =…
-
3
votes2
answers675
viewsRequest a form with Standard not working
I’m making a request from my controller for a form in the view, is giving this error. I tried several methods, but none solved. Controller: public function store(Request $request) { $NomeDaEmpresa =…
-
3
votes2
answers1013
viewsHow to write data from a form to a database by converting the fields to JSON?
I have any form, example: <form action="confi.php" method="post" enctype="multipart/form-data"> <p><input type="text" name="nome" value="nome"> <p><input type="text"…
-
3
votes1
answer2285
viewsWhat is the best method to create forms in Adroid?
I am creating a registration form, to add and edit SQL records. I found a place that indicated to do through ScrollView, so that the form has a scrolling, and in my case it would be really…
-
3
votes1
answer192
viewsPassword validation with jQuery in steps
My scenario is the following, I have a form and in it I need to do a password validation that needs to contain: At least 6 characters, At least 1 uppercase letter, At least 1 number. This validation…
-
3
votes1
answer566
viewsError closing form with Tacropdf in Delphi
This "blessed" component, unfortunately I need to use it, it happens that whenever I try to close the Form it closes, but always gives a Accessviolation. There’s nothing in Form but a Tacropdf and a…
-
3
votes1
answer460
viewsButton to insert new inputs into the form
I have a website that records building launches. Then some buildings have more than one tower, and I would like for each tower, I had the possibility to insert 4 inputs (type, footage, dormitories,…
-
3
votes1
answer51
viewsSend an e-mail message to customers who responded to my website form
I have the following code to send the responses of a form from my website to my email: <?php // //Variáveis $n_nome = $_POST['n-nome']; $n_email = $_POST['n-email']; $n_fone = $_POST['n-fone'];…
-
3
votes2
answers122
viewsJquery - Dynamic form enumeration
Hey, how you doing? I have a form with text fields that can be added and deleted as the user likes. My question is this: when the user finishes filling the form I will not know how many fields there…
-
3
votes1
answer396
viewsReturn only a certain element of the current page with jQuery AJAX
Personal I am needing to pick up only one element of the current page returned via AJAX. The element I need is the id="main". The most I could get is the full page, but I just wanted this element…
-
2
votes1
answer981
viewsHow to display the value of jQuery UI Slider in a text input and update the Slider if a value is entered in the text input?
The result I need to achieve using jQuery UI Slider seems to be simple. The Slider will be used to define the age of the user who would submit the form, with minimum value 18 (years) and maximum 100…
-
2
votes2
answers1579
viewsHow to hide href with jQuery while input file is not selected?
I have a form image upload where the user before updating the avatar image or profile cover, views (in this same form) their registered image or a system pattern. Turns out my input type has an…
-
2
votes1
answer1367
viewsGet list of checkboxes in the controller in Asp.Net
How do I get a checkbox list like this: <div class="editor-field" style="overflow-y: auto; height: 150px;"> <label>Especializações:</label> @{ if…
-
2
votes1
answer261
viewsProblem sending email in PHP
I need help with a form on PHP complex, as well as sending email for administrators, send also to the client. The email is in html and automatically creates a pdf through html2pdf. So that’s it,…
-
2
votes2
answers4436
viewsHow to refresh a form in access?
I’m trying to make a refresh to a form, avoiding close it to open it, and thought of this function. However, without success. How can I do this procedure? Public Fuction (f As a String)…