Skip to content
Advertisement

Tag: forms

How to submit 3 different forms with just one button in PHP

I am creating a multi-step form and need to ”upload”/save some information into a database. It consists of 3 forms. The problem is that only the last form is sending the information and that’s also where the submit button is. Code sample below: As I said, only the last form is sending the data to another php file in the

Is it possible to use placeholders on ?

I’m currently working on at the displaying of information from a database. I was making a summary site where you can only see the important things of a table. After that i made the first element as an <input type=”submit”> in a <form>, so u can click it and come to the detail site. My problem is now: The value

How to send the PHP value back to the HTML form?

I’ve been trying to build a program using PHP cookies. The user interface basically looks like this. My basic program The logic is this. When the user enters the product name, price and quantity and clicks on the “Add” button, the total value which is price*quantity will fall on the “Total bill value” textbox. The user can go on adding

default values in input form Modal

I just created a datatable collecting the values ​​from a wordpress database.- These values ​​must be loaded in a contact form within a modal. I am calling the modal from a button in the last column of each row of the datatable. I must predetermine the values ​​of the form fields with the information corresponding to each row. Example: I

Use php function in php form

I am new in php, I am solving one task. Create a form with 2 text fields to enter only numbers (treat) and will mean number and power. After pressing the button the result is displayed on the same page, and the result is determined by recursive function in case you forget to enter a number, the number 2 will

How to pass data to symfony form class without using static

I’ve got form class and i have to pass args to it but i can’t do that because i am using createNamed function which requires me to use namespace string. code: I can’t pass this data into entity, because it is an arguments for creating the form fields rather than data model. Answer Have you tried using the Controller method

MySQL database is not receiving any data in PHP

I created two classes: a class called index.php for a user to input data such as: name, email, phone number and address. And the other class called model.php, which must send the information that the user typed into the MySQL database. However, when a user enters the information in the graphical interface, and then clicks the submit button, the localhost

mysql query dynamic update

RESOLVED I have a mysql table (table1) with many columns with a single ID. table name: table1 columns: from “pt1 to pt1000” id = 1 I have a query that updates the data in the columns, 10 data at a time I would need a unique and dynamic query that inserts the 10 values ​​in sequence at each submission. example:

Advertisement