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
votes1
answer459
viewsForm Post with Dynamic Fields
Hello. I’m having trouble submitting data from a form. My problem is this: My client created a series of products in the database. And now he needs a form where all the quantities of the products…
-
0
votes1
answer61
viewsChanging the identification data of an upload file
I am first trying to rename a file according to what the user provides us, however error occurs, but it is given as $_FILES["arquivo_foto"]["error"] -> 0 Sending script <?php $diretorioimagens…
-
0
votes1
answer209
viewsForm problems using PHP with Laravel
Next staff I developed a website using laravel I am programming a form but it has no action I have already finalized it does not work when I click to send, it does not do anything only from reload…
-
0
votes1
answer36
viewsForm validation problem with Opencart
I own a website e-commerce on opencart and I have a little problem in the ID field which is as follows, when the user registers he fills all fields normally put in the RG field there are those users…
-
0
votes3
answers871
viewsValidation of completed fields of a form
Today I have some cupboards in windows (modals) and some of these fields need to force the user to fill today I am doing as follows: Form: In case the user forgets to fill some field I use the…
-
0
votes0
answers68
viewsabout login form with Session (user disabled) treatment
Hello, good afternoon ,I would like to know how to do the login system not let log in the administrator who is not enabled (level==5) I’ve tried everything , and code I’m moving is very mixed , I…
-
0
votes1
answer49
viewsMerge upload and input ajax
I have this form: <form id="formForum" autocomplete="off"> <div class="boxContent"> <div class="form" style="margin-top: 0"> <div class="profile" style="background-image:…
-
0
votes2
answers188
viewsAdd email with copy when sending the form
I have developed an email sending form but I need to add another email to receive a copy but I have no idea how to do it follow my code PHP: <?php if($_POST) { $to_Email = "[email protected]";…
-
0
votes1
answer51
viewsForm "From" field appears as server account name
hello! I have a problem with my contact form. The PHP that processes the data and sends it to my email, returns the "From" field with my server user address and not as the sender address. <?php…
-
0
votes2
answers48
viewsProblems with 'onsubmit' in 'setTimeout' form and function
When I invoke the 'validate' function nothing happens. What is my mistake? I also need to make the message 'validate' and 'like' functions disappear after 5s (I could not use setTimeout) function…
-
0
votes2
answers2085
viewsFix Double Click Buttons with Jquery
I am performing maintenance on a site with multiple forms with buttons of type SUBMIT and also normal buttons that call an onclick event that in FORMS is used to perform the validation of the data…
-
0
votes1
answer1280
viewsLabel and input placement in an html form
Hello, I’m studying HTML5 and CSS3 and I’m trying to stylize by positioning inputs/checkbox/combobox and their respective Abels. Suppose I have the following code: <form> <label…
-
0
votes0
answers465
viewsError saving Mysql PHP form information
What’s going on: I have a system that, after completing the form and saving, does not save the changes by appearing a alert "saved without changes" and back to previous page. What should happen:…
-
0
votes1
answer220
viewsValidate form with equal name[] and id
I have a dynamic form, where can appear several textarea, and by default, these textarea has the same id and the same name, however, the name is being sent as array (name="nomecampo[]"). I wanted to…
-
0
votes1
answer219
viewsForm does not receive registered data
What’s going on: I have a system that, after completing the form and saving, does not save the changes by appearing a alert "saved without changes" and back to previous page. It does not seem to be…
-
0
votes3
answers978
viewsForm data is not being registered
I have a form written in php with connection to a database administered by phpMyAdmin. WHAT SHOULD HAPPEN: The data entered in the form should be registered showing a alert of "successfully saved"…
-
0
votes1
answer662
viewsAuto complete Chrome bringing wrong fields as login
I have a problem with a criminal record. When registering the browser asks if it wants to save the user and password, the problem is that it saves a field nothing see as user but the password it…
-
0
votes1
answer469
viewsHow do I show some elements of an array following this criterion?
I have to make a php form that at the end shows the price of each product purchased, showing only the prices of the products that in the other column of the table, were marked in the checkbox: FORM:…
-
0
votes0
answers197
viewsHow to send website form to email
I need to send the form from a website to the customer’s email. Image of the form: all validations are working correctly but when I ask to send the message that the server was not found appears; The…
-
0
votes2
answers580
viewsjQuery/AJAX: a single form that can be submitted to different urls (POST or PUT)
I have the following scenario: I have a form that serves to register or change a teacher; To register I have a button at the top that calls the modal to do the POST; To change I have a button in…
-
0
votes1
answer742
viewsDelete record button does not work
I have a query page that shows the entries made in the bank through a form and a button with the option to delete. Page of the consultation: <h1 style=" text-align: center; height: 7; margin-top:…
-
0
votes1
answer1027
viewsHow to send email form data without using php?
Forms <legend>Login</legend> Login: <input type="text" name="login"> Senha: <input type="password" name="senha"> <p> </fieldset> <fieldset>…
-
0
votes3
answers1667
viewsPrevent redirect after submitting the form
I’m a beginner in programming and I have a little problem here. I have already done a good research here in stackoverflow, both in Portuguese and in English, but I could not adapt or put a solution…
-
0
votes1
answer62
viewsDo an if for another line
I have this e-mail sending code and the attachment, it is working perfectly when I send the email along with the attachment, but if I do not send attachment it an error, I believe it is on account…
-
0
votes2
answers69
viewsCreating rule to create time based on delivery rate
I have a condition in my form that calculates the delivery time of orders, follows below the rule: date_default_timezone_set('America/Sao_Paulo'); $Agora = date('H:i:s'); $HoraServico =…
-
0
votes1
answer889
viewsHow to dropdown to import database options
I have a form for enrollment of students and one for enrollment of these students in classes. To enroll the student in the class, I would like to have a dropdown in which I could select one of the…
-
0
votes2
answers1579
viewsHow to import database data into form field
I have a course management system where the user has access to a table with all classes of all courses and chooses to enroll in a. When the user is going to register, will open a form with the…
-
0
votes1
answer87
viewsUpload JS information to PHP
I need to take the information from a JS file (form.js) and load it into a PHP file (mail.php). In the form.js file there is a function that calculates the value of the delivery based on the CEP…
-
0
votes1
answer158
viewsProblem validating form fields as mandatory
staff needed to enter the fields of my form as required I did this via jQuery however I did not succeed the idea and get a red border in the fields that were not filled my code does not work dry…
-
0
votes1
answer58
viewsHow to take the url of different forms and validate via javascript
Currently I am doing so and every time I submit the form the alert returns error even with the fields filled correctly $('.form-ajax').on('submit', function(e) { e.preventDefault(); var form =…
-
0
votes0
answers83
viewsUndefined variable: institutions (View:
Expensive, I have a very boring and persistent mistake. Undefined variable: institutions (View: I have searched several times and do not know why the data is not passed to the form. Controller…
-
0
votes2
answers44
viewsProblem with form formatting
Good morning guys, I have a certain problem in the newsletter form of my site. I have done several researches trying to solve the problem, but the lack of knowledge of the area I think is making me…
-
0
votes0
answers17
viewsNeither variable nor field appear after selected
I have a SELECT that depends on another SELECT to bring the values. However, after selecting the second select, although the url contains the desired value, the field disappears. $bandorc =…
-
0
votes1
answer94
viewsDisable form autocomplete in Laravel?
Hi. I searched all over the Internet and couldn’t find. I just can’t get the Laravel forms autocomplete disabled. The 'autocomplete="off"' for this, does not work for the fields if email and…
-
0
votes2
answers782
viewsModify a button through an input
I wonder how I can change the name and the property of a button from the choice of an input (radio button). <h3>Criar novo usuário</h3> <p></p> <form class="m-t"…
-
0
votes2
answers1448
viewsPass PHP variable in onclick="history.go(-1)"
I’m trying to create a button that returns to the form to fix it, thus keeping all the content typed in the HTML for the user to correct the wrong information, but sending a variable PHP so I can do…
-
0
votes1
answer224
viewsThe Submit event doesn’t work when I try to register
Guys I’m having a problem in my jquery, the code below shows the moment that I register the Submit event by clicking on the button $("#quero-me-identificar").click(function () {…
-
0
votes1
answer827
views -
0
votes0
answers44
viewsHow to Limit Sending Forms to Users, Per Page?
Please forgive me because I am very lay to PHP, but once in a while it is enough to turn me where necessary. But now I’m stuck and I’d be very grateful if you could shed some light. I have a code…
-
0
votes2
answers579
viewsAjax request from multiple Forms, with javascript function
I’m having trouble sending the forms correctly, I have several forms, each with its id, and a function I call on all forms: <script> function enviaForm(id){ $(id).submit(function(){ var camp1…
-
0
votes1
answer116
viewsHow to make this email form in C#?
I am starting now to work with the MVC standard Asp.net, I created a view for contacts and insert a form in it that when filled and clicked on the send button will go to my email, so I only did the…
-
0
votes1
answer401
viewsError while saving records in the database
I have a normal form with a normal page to import the information to a normal bank table, but for some reason it falls straight into the die and does not save the information. Form: <form…
-
0
votes1
answer738
viewsInsert a value into the SQL table for each selected checkbox
I have a form with a checkbox group (equal below) and would like when selecting the values, insert a row in the SQL table for each selected checkbox: <form> <input type="hidden"…
-
0
votes2
answers730
viewsInput number accept point in firefox
can help me? I have this input number that must accept decimal values. People fill the decimal with a dot (.) and not a comma (,) In all browsers works very well, EXCEPT in firefox which is our…
-
0
votes1
answer60
viewsWhat’s wrong with this form?
Guys, I have an Asp.net mvc application that will only have a single page, which is index.cshtml. On this page I have a contact form, so he is not sending the captured message to my email, someone…
-
0
votes1
answer25
viewsHow to show and hide options as you select the form?
I am creating a website where I will run a script that shows a list of options as user selection. Searching the internet I found this script: residencial_lista = new Array("Casa", "Apartamento",…
-
0
votes2
answers1546
viewsPicking input values from a given form
I have the following scenario: Several forms, but I need to set all inputs only of the form that is in action, which is triggered by the button. function enviaForm(id){ $(id).submit(function(){ var…
-
0
votes1
answer374
viewsFill a field by selecting another field
I have an order form where the name of the customer is chosen and I would like from this selection to be filled in the discount field, this value is in the same table where the customer registration…
-
0
votes1
answer482
viewsInsert data from multiple forms without refreshing with ajax php
Good morning! I’m having problem in an application, what happens; 1 - I have this guy who gets the name of the product and shows my list: var req; function buscarProd(valor) { if…
-
0
votes2
answers3033
viewsSet current date in PHP and put HTML value in an input type='date'
I tried it this way but it doesn’t work <form action="add.php" method="POST" name="form1"> <div class="w3-section"> <label>Nome do funcionario</label> <input…