I try to get a PHP array like this array( color => array("blue", "red", "yellow", "pink"), size => array("small", "medium, "large"), width => array("30", "32, "34"), ); The data is posted from a HTML form like below <form method="post" action="post.php"> <input type="text" name="data[color]" value="red"/> <input type="text" name="data[color]" value="blue"/> <input type="text" name="data[size]" value="small"/> <input type="text" name="data[width]" ..
I have a contact form made in php which was sending fine until i changed the php version for the wordpress part of my website and now the contact form wont work with the captcha. The form was sending the contact form to the email but once the php version has changed when the form ..
To begin with, there’s an include function in PHP: The include (or require) statement takes all the text/code/markup that exists in the specified file and copies it into the file that uses the include statement. https://www.w3schools.com/php/php_includes.asp I have an HTML form with an action link and once I submit the form, it redirects me to ..
I want to submit records in multiple tables via a form, using pdo. In the form there are fields of two tables. Using pdo, how do i send data to both tables in a single form? <?php $nome=$_POST[‘Text1’]; $cognome=$_POST[‘Text2’]; $dataNascita=$_POST[‘Text3’]; $materia=$_POST[‘Text4’]; $voto=$_POST[‘Text5’]; $dataProva=$_POST[‘Text6’]; $pdo = new PDO(‘mysql:host=localhost;dbname=classe;charset=utf8’, ‘root’, ”); $sql = "INSERT INTO studenti (nome, ..
I have WSForm Pro form management plugin installed on my WordPress site. The plugin utilizes AJAX as the only method to post a form’s data so that only the form’s area is updated on submit, not the whole page. On submit I need to show-up the form’s data on the same page. What I have ..
im trying to practice my php and mysql skills and have a hudge problem, my goal is to create a form that sends the information into the database im stuck at different syntax errors and so on , this code create a Parse error: syntax error, unexpected double-quote mark in C:xampphtdocsinsert.php on line 35 and ..
So, i have a form that collects data. When the submit button is clicked, a new xml file is created in the destination folder with all the information that the user entered as shown below. But the second time when the form is filled and submitted, instead of adding the data to the newly created ..
I’m having an issue with populating checkboxes from database values that are linked from another table that supplies the labels for said checkboxes, I might be close already or I may be going about this in all the wrong ways (please forgive use of VARCHAR for indexes, this is from an ancient database slowly being ..
I have a form to edit and update certain values of a student, like grade, scholarship, comments, etc. And I have a @foreach so that I can update each student one by one, but I want to change that, I want to send all data of all students at the end, not one by one. ..