Professional Documents
Culture Documents
Learn To Submit HTML Data To Mysql Database Using PHP: Programming-Tutorials/)
Learn To Submit HTML Data To Mysql Database Using PHP: Programming-Tutorials/)
(https://www.eduonix.com/blog)
using php
programming-
tutorials%
2Flearn-
submit-
html-
data-
mysql-
database-
using-
php% Tutor @ Eduonix (https://www.eduonix.com/blog/author/edututor/)
2F&t=Learn%
April 1, 2014, 3 years ago
20to%
20submit% 36 (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-
20HTML% data-mysql-database-using-php/#comments)
20data% 15 498.4K
20to%
20MySQL%
20database%
20using%
In this session we will design an html form ,add the data into it and
20php)
submit it to the database by connecting it to MySQL database using php
(https://www.eduonix.com/courses/Web-Development/Learn-PHP-and-
(http://twitter.com/share?
text=Learn%
MySQL-Development-From-Scratch?coupon_code=edublog9) .
20to%
20submit%
20HTML%
20data% • To design the html form follow the steps given below :
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 2 of 35
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 3 of 35
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 label{display:inline-block;width:100px;margin-bottom:10px;}
6 </style>
7
8
9 <title>Add Employee</title>
10 </head>
11 <body>
12
13 <form method="post" action="">
14 <label>First Name</label>
15 <input type="text" name="first_name" />
16 <br />
17 <label>Last Name</label>
18 <input type="text" name="last_name" />
19 <br />
Shares
20 <label>Department</label>
21 <input type="text" name="department" />
22 <br />
23 <label>Email</label>
(http://www.facebook.com/sharer.php?
u=https% 24 <input type="text" name="email" />
3A% 25
2F% 26 <br />
27 <input type="submit" value="Add Employee">
2Fwww.eduonix.com%
2Fblog% 28 </form>
2Fweb-29
30
programming-
31
tutorials%
2Flearn- 32 </body>
submit-33 </html>
html-
data-
mysql-
database-
using-
php% 1. The screenshots for Notepad++ window are shown below :
2F&t=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php)
(http://twitter.com/share?
text=Learn%
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v217.jpg)
20to%
20submit% 1. Now go to xampp control pannel and start the Apache and
20HTML%
20data% MySQL modules .
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 4 of 35
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v310.jpg)
Shares
1. Now to have a view of the inserted data just create a new file
(http://www.facebook.com/sharer.php?
called as process.php in the same addemp folder .
u=https%
3A%
2F%
2Fwww.eduonix.com%
2Fblog%
2Fweb-
programming-
tutorials%
2Flearn-
submit-
html-
data-
mysql-
database-
using-
php%(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v42.jpg)
2F&t=Learn%
20to% 1. Write the code in process.php file
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%1 <?php
20php)2
3 echo $_POST['first_name'];
4 echo '<br />';
5 echo $_POST['email'];
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML%
20data%
20to% 1. So you will have the following view of your Notepad++
20MySQL% window :
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 5 of 35
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v56.jpg)
1. Now when you run the process.php file , the data that you had
inserted in the html form will get displayed .
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v66.jpg)
Shares
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F%
2Fwww.eduonix.com% (https://cdnp-
2Fblog%
2Fweb-
programming-
tutorials%
2Flearn-
submit-
2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v66.jpg)
html-
data-
mysql-
Note: It will display only FirstName and Email(As we have mentioned
database-
using-
php%only the first name and email in the code) .
2F&t=Learn%
20to%
20submit%
20HTML% 1. Now to show all the data fields present in the html form ,
20data% replace the code of process.php file with the given code :
20to%
20MySQL%
20database%
20using%
20php)
1 <?php
(http://twitter.com/share?
2
text=Learn%
3 print_r($_POST);
20to%
20submit%
20HTML%
20data%
20to%
20MySQL% 1. Here is the screen shot of Notepad++ window :
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 6 of 35
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v78.jpg)
1. Now run the index.php file and insert data in to the html form :
Shares
(http://www.facebook.com/sharer.php?
u=https%
3A%(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v87.jpg)
2F%
2Fwww.eduonix.com%
1. After inserting the data click on the add button which will pass
2Fblog%
2Fweb- this data to the process.php file and when you run the
programming-
tutorials% process.php file you will get the following output :
2Flearn-
submit-
html-
data-
mysql-
database-
using-
php%
2F&t=Learn%
20to%
20submit%
20HTML%
20data%
20to%
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v95.jpg)
20MySQL%
20database%
20using% 1. In our example , we need to get connected with the MySQL
20php) database , so let’s modify the process.php file .
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML% 1. Now write the given code in the process.php file.
20data%
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 7 of 35
in our database.
(http://www.facebook.com/sharer.php?
u=https%
3A% 1. To create a database connection we have to create new file say
2F%
2Fwww.eduonix.com%
database.php in the same addemp folder.
2Fblog%
2Fweb-
programming-
tutorials%
2Flearn-
submit-
html-
data- 1. You will have the following view :
mysql-
database-
using-
php%
2F&t=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php)
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v105.jpg)
1. Now open the database.php file in Notepad++ or any other text
(http://twitter.com/share?
text=Learn%
20to% editor and write the given code :
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 8 of 35
1 <?php
2 $connect=mysqli_connect('localhost','root','123','mydatabase');
3
4 if(mysqli_connect_errno($connect))
5 {
6 echo 'Failed to connect';
7 }
8
9 ?>
Shares
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F%
2Fwww.eduonix.com%
2Fblog%
2Fweb-(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v1110.jpg)
programming-1. After creating the database connection , run the index.php file
tutorials%
2Flearn- insert the data into it , this data will get added into your
submit-
html- database which is present in the phpmyadmin of the Xampp.
data-
mysql-
database-
using-
php%
2F&t=Learn%
20to%
20submit% 1. So add the data and click the Add Employee button :
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php)
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML%
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v125.jpg)
20data%
20to% 1. If you run the process.php file it will display the blank window
20MySQL%
20database% which means your data has been inserted into the database .
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 9 of 35
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v133.jpg)
1. Now check your created employee table in the database in the
phpmyadmin pannel :
Shares
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F%
2Fwww.eduonix.com%
2Fblog%
2Fweb-
programming-
tutorials%
2Flearn-
submit-
html-(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v142.jpg)
data-
mysql- 1. Now to display the content in the browser , we have to add code
database-
using- that will check the if added condition :
php%
2F&t=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL% 1. So add the given code in the process.php file .
20database%
20using%
20php)
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 10 of 35
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 11 of 35
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v162.jpg)
1. In the code section of the process.php file we have added the
link from where we can go back to the index.php file to add the
record of the employee in the database.
Shares
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F%
1. When we click on the GoBack link it will link to the index.php
2Fwww.eduonix.com%
2Fblog% file.
2Fweb-
programming-
tutorials%
2Flearn-
submit-
html-
data-
mysql- 1. Thus you will be navigated to the index.php file .
database-
using-
php%
2F&t=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php)
(https://cdnp-2f3a.kxcdn.com/blog/wp-content/uploads/2014/03/v172.jpg)
1. Thus we have learnt to insert the data into the MySQL database by
(http://twitter.com/share?
text=Learn% designing an html form and connecting the database using php.
20to%
20submit%
20HTML%
20data%
Learn to submit HTML data to MySQL database using php was last modified: May 12th, 2016 by
20to%
20MySQL%
Tutor @ Eduonix
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 12 of 35
(http://www.facebook.com/sharer.php?
(http://twitter.com/share?
(http://plus.google.com/share?
(http://www.linkedin.com/sha
u=https% text=Learn url=https% mini=true&url=https%
3A%2F% to submit 3A%2F% 3A%2F%
2Fwww.eduonix.com%
HTML 2Fwww.eduonix.com%
2Fwww.eduonix.com%
2Fblog% data to 2Fblog% 2Fblog%
2Fweb- MySQL 2Fweb- 2Fweb-
programming- database programming- programming-
tutorials% using php) tutorials% tutorials%
Shares 2Flearn- 2Flearn- 2Flearn-
submit- submit- submit-
(http://www.facebook.com/sharer.php?
html-data- html-data- html-data-
u=https%
3A% mysql- mysql- mysql-
2F%
database-
2Fwww.eduonix.com% database- database-
2Fblog% using- using- using-
2Fweb-
php%2F)
programming- php%2F) php%
tutorials% 2F&title=Learn
2Flearn-
submit- to submit
html-
data- HTML
mysql- data to
database-
using- MySQL
php% database
2F&t=Learn%
20to% using
20submit%
20HTML% php&summary=In
20data% this
20to%
20MySQL% session we
20database% will design
20using%
20php) an html
form ,add
the data
(http://twitter.com/share?
text=Learn% into it and
20to%
20submit% submit it
20HTML% to the
20data%
20to% database
20MySQL% by
20database%
20using% connecting
20php&url=https%
3A% it to
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 13 of 35
MySQL
database
using
php . To
design the
html form
follow the
steps
given
below :
Install the
Xampp
Shares server in
your
(http://www.facebook.com/sharer.php? machine
u=https%
3A% and if it
2F%
2Fwww.eduonix.com% already
2Fblog% installed
2Fweb-
programming- just go)
tutorials%
2Flearn-
submit-
html-
data-
mysql-
database-
using-
php%Learn to connect database in php
2F&t=Learn%
20to%
(https://www.eduonix.com/blog/web-
20submit%
20HTML%
programming-tutorials/learn-connect-database-
20data%
20to%
php/)
20MySQL%
20database%
20using%
20php)
Implementing functions and file inclusion in php
(http://twitter.com/share?
text=Learn% (https://www.eduonix.com/blog/web-
20to%
20submit%programming-tutorials/implementing-functions-
20HTML%
20data% file-inclusion-php/)
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 14 of 35
Article Tags
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 15 of 35
Facebook Comments
Shares
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F%
2Fwww.eduonix.com%
2Fblog%
2Fweb-
programming-
tutorials%
2Flearn-
submit-
html-
data-
mysql-
database-
using-
php%
2F&t=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php)
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 16 of 35
47 Comments
Add a comment...
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 17 of 35
Website Comments
eban emmanuel
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=351#respond)
September 3rd, 2014 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-351)
(http://www.facebook.com/sharer.php?
u=https%
3A% Webbience
2F% Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
Decembermysql-database-using-php/?replytocom=4380#respond)
25th, 2014 (https://www.eduonix.com/blog/web-programming-
2Fwww.eduonix.com%
2Fblog% tutorials/learn-submit-html-data-mysql-database-using-php/#comment-4380)
2Fweb-
programming- Nice Form Data submission tutorial. If you provided a sample to
tutorials%
2Flearn- store form data (comment) in text file and refresh the html page
submit-
html- on submission and display the comment instantly. Thanks.
data-
mysql-
database-
using-
php% johnny
2F&t=Learn%
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
20to% May 1st,mysql-database-using-php/?replytocom=6057#respond)
2015 (https://www.eduonix.com/blog/web-programming-tutorials/learn-
20submit%
20HTML% submit-html-data-mysql-database-using-php/#comment-6057)
20data%
20to% There are some mistakes here, but the majority of your code is
20MySQL%
20database% ok. Thank you for this tutorial.
20using%
20php)
Will
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-
submit-html-data-mysql-database-using-php/?replytocom=6372#respond)
June 18th, 2015 (https://www.eduonix.com/blog/web-programming-
(http://twitter.com/share?
text=Learn% tutorials/learn-submit-html-data-mysql-database-using-
20to%
20submit% php/#comment-6372)
20HTML%
20data% Agreed Johnny. A few too many I think.
20to%
20MySQL% The most glaring is action=”” instead of
20database% action=”process.php”
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 18 of 35
joseph
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=6096#respond)
May 10th, 2015 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-6096)
Chorpher
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=7911#respond)
September 2nd, 2015 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-7911)
tutorials/learn-submit-html-data-mysql-database-using-
(http://twitter.com/share? php/#comment-15135)
text=Learn%
20to% same to me
20submit%
20HTML%
20data%
20to%
20MySQL%
20database% Amaan
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-
20using% submit-html-data-mysql-database-using-php/?replytocom=17123#respond)
October 21st, 2016 (https://www.eduonix.com/blog/web-
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 19 of 35
programming-tutorials/learn-submit-html-data-mysql-database-
using-php/#comment-17123)
ayya (http://notyetmake)
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=8329#respond)
September 23rd, 2015 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-8329)
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 20 of 35
Venkatesh Mogili
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=9861#respond)
November 3rd, 2015 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-9861)
pradeep
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=9904#respond)
December 8th, 2015 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-9904)
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 21 of 35
ali baba
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=10045#respond)
December 16th, 2015 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-10045)
Bramhananda |Reddy
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=11755#respond)
March 4th, 2016 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-11755)
Shares
When I followed the series of steps you given above, I got an
error message like this:
(http://www.facebook.com/sharer.php?
u=https% Parse error: syntax error, unexpected ‘index’ (T_STRING),
3A% expecting ‘,’ or ‘;’ in C:xampphtdocsaddempprocess.php on line
2F%
2Fwww.eduonix.com% 19.
2Fblog% Kindly get me the rectification for the above error.
2Fweb-
programming-
tutorials%
2Flearn- arsalan
submit- Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-
html- submit-html-data-mysql-database-using-php/?replytocom=22278#respond)
February 27th, 2017 (https://www.eduonix.com/blog/web-
data-
programming-tutorials/learn-submit-html-data-mysql-database-
mysql-
database- using-php/#comment-22278)
using-
php% put it in comment section if you are getting errot
2F&t=Learn%
20to%
20submit%
20HTML%
20data%
20to% Amir
20MySQL% Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
20database% mysql-database-using-php/?replytocom=12213#respond)
March 20th, 2016 (https://www.eduonix.com/blog/web-programming-
20using%
20php) tutorials/learn-submit-html-data-mysql-database-using-php/#comment-12213)
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 22 of 35
This page certainly has all the info I needed concerning this
subject and didn’t know who
to ask.
aclu-san-diego
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=13525#respond)
May 12th, 2016 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-13525)
I feel this is one of the such a lot vital information for me.
And i’m satisfied studying your article. But should statement on
some general issues,
Shares
The site taste is great, the articles is in reality excellent : D.
Excellent job, cheers
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F%
2Fwww.eduonix.com%
2Fblog% Ekom etuk
2Fweb- Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
programming- May 26th, mysql-database-using-php/?replytocom=14042#respond)
2016 (https://www.eduonix.com/blog/web-programming-
tutorials% tutorials/learn-submit-html-data-mysql-database-using-php/#comment-14042)
2Flearn-
submit-
html- I am a student of imfi ict academy uyo, please How can i
data- partition my site to have many columns and rows without using
mysql-
database- table?
using-
php%
2F&t=Learn%
20to%
20submit%
isaac
20HTML%Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
20data% August mysql-database-using-php/?replytocom=15633#respond)
25th, 2016 (https://www.eduonix.com/blog/web-programming-
20to%
20MySQL% tutorials/learn-submit-html-data-mysql-database-using-php/#comment-15633)
20database%
20using% Please send complate tutorial on connection of html to database
20php)
(http://twitter.com/share?
text=Learn% john colt
20to% Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
20submit% August mysql-database-using-php/?replytocom=15656#respond)
27th, 2016 (https://www.eduonix.com/blog/web-programming-
20HTML%
20data% tutorials/learn-submit-html-data-mysql-database-using-php/#comment-15656)
20to%
20MySQL% Guys Help this is my process.php
20database%
20using%
20php&url=https%
3A% and this is my index.php
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 23 of 35
label
{
display:inline-block;
width:150px;
margin-bottom:10px;
}
Add Applicant
Add Applicant
(http://www.facebook.com/sharer.php?
Last Name:
u=https%
3A%
2F%
2Fwww.eduonix.com%
Passport Number:
2Fblog%
2Fweb-
programming-
tutorials% Date of Birth:
2Flearn-
submit-
html- Place of Issue:
data-
mysql-
database-
using- Date of Expiration:
php%
2F&t=Learn%
20to% Email:
20submit%
20HTML%
20data%
20to% and my database.php
20MySQL%
20database%
20using%
20php) but it does not connect or save to my data base. Am i doing
something wrong. please help
(http://twitter.com/share?
text=Learn%
20to%
20submit% ubot
20HTML%Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
20data% mysql-database-using-php/?replytocom=17986#respond)
November 11th, 2016 (https://www.eduonix.com/blog/web-programming-
20to%
20MySQL% tutorials/learn-submit-html-data-mysql-database-using-php/#comment-17986)
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 24 of 35
I think that what you said made a lot of sense. However, what
about this?
what if you composed a catchier post title? I mean, I don’t wish
to tell you how to run your blog, however what if you added
a post title that makes people want more? I mean Learn to
submit HTML data
to MySQL database using php is kinda vanilla.
You should look at Yahoo’s front page and watch how they
write
news headlines to get people interested. You might add a
related video or a related pic or two to
Shares
get readers interested about everything’ve written. Just my
opinion, it might bring
(http://www.facebook.com/sharer.php?
u=https% your posts a little bit more interesting.
3A%
2F%
2Fwww.eduonix.com%
2Fblog%
2Fweb-
programming- arvind
tutorials%Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=18354#respond)
November 24th, 2016 (https://www.eduonix.com/blog/web-programming-
2Flearn-
submit- tutorials/learn-submit-html-data-mysql-database-using-php/#comment-18354)
html-
data- not work
mysql-
database-
using-
php%
2F&t=Learn%
20to% gaurav adhav
20submit% Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
20HTML% mysql-database-using-php/?replytocom=18809#respond)
December 5th, 2016 (https://www.eduonix.com/blog/web-programming-
20data% tutorials/learn-submit-html-data-mysql-database-using-php/#comment-18809)
20to%
20MySQL%
20database% I have to make a website in html.
20using% In which if the staff name and password correct then he can
20php)
add documents.
So how to make database and how can I connect with it with
(http://twitter.com/share?
text=Learn% HTML file.
20to%
20submit%
20HTML%
20data%
20to% Antonina
20MySQL%Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
20database% mysql-database-using-php/?replytocom=19726#respond)
December 29th, 2016 (https://www.eduonix.com/blog/web-programming-
20using%
20php&url=https% tutorials/learn-submit-html-data-mysql-database-using-php/#comment-19726)
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 25 of 35
1st
in process.php in the first two printscreens you don’t close the
php it supposed to be like that? if yes then i have error when
i’m running this file:
Notice: Undefined index: first_name in
C:xampphtdocsaddempprocess.php on line 4
Notice: Undefined index: email in
C:xampphtdocsaddempprocess.php on line 6
2nd
in the modification of process.php
“<?php
Shares
print_r($_POST); "
my output is this: "Array ( ) "
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F% 3rd
2Fwww.eduonix.com%
You don't mention to create a database; what records, what
2Fblog%
2Fweb- data type … these infos are missing from the first steps when
programming-
tutorials% you first tell to open phpmyadmin to see the results!
2Flearn-
submit-
html- 1st
data-
mysql- in process.php in the first two printscreens you don't close the
database- php it supposed to be like that? if yes then i have error when
using-
php% i'm running this file:
2F&t=Learn%
20to% Notice: Undefined index: first_name in
20submit% C:xampphtdocsaddempprocess.php on line 4
20HTML%
20data% Notice: Undefined index: email in
20to% C:xampphtdocsaddempprocess.php on line 6
20MySQL%
20database%
20using%
20php) 2nd
in the modification of process.php
"<?php
(http://twitter.com/share?
text=Learn% print_r($_POST); "
20to%
20submit% my output is this: "Array ( ) "
20HTML%
20data%
20to% 3rd
20MySQL%
20database% You don't mention to create a database; what records, what
20using%
data type … these infos are missing from the first steps when
20php&url=https%
3A% you first tell to open phpmyadmin to see the results!
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 26 of 35
4th
in last insertion of data after executin index and then going to
process.php
" Parse error: syntax error, unexpected 'index' (T_STRING),
expecting ',' or ';' in C:xampphtdocsaddempprocess.php on line
19 "
Jay
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
Januarymysql-database-using-php/?replytocom=20203#respond)
3rd, 2017 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-20203)
Shares
Good concept regarding “How to insert data into database from
HTML form”.
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F%
2Fwww.eduonix.com%
2Fblog% Uday Pratap Singh
2Fweb- Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
programming- Januarymysql-database-using-php/?replytocom=20375#respond)
6th, 2017 (https://www.eduonix.com/blog/web-programming-
tutorials% tutorials/learn-submit-html-data-mysql-database-using-php/#comment-20375)
2Flearn-
submit-
html- thank you very much!!!
data-
mysql-
database-
using-
php% Atif
2F&t=Learn%
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
20to% Januarymysql-database-using-php/?replytocom=20916#respond)
17th, 2017 (https://www.eduonix.com/blog/web-programming-
20submit%
20HTML% tutorials/learn-submit-html-data-mysql-database-using-php/#comment-20916)
20data%
20to% Thank you very much for this query. Finally……..
20MySQL%
20database%
20using%
20php)
P'jones
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
(http://twitter.com/share?
Januarymysql-database-using-php/?replytocom=21216#respond)
26th, 2017 (https://www.eduonix.com/blog/web-programming-
text=Learn%
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-21216)
20to%
20submit%
20HTML% Please folks, I’m just taking programming as a career and I’m
20data% loving it despite discovering the tasking part of it. For this I’m
20to%
20MySQL% beginning with web design and development, still a fresher in it
20database%
20using% I can say I am, but believing persistent practice makes perfect.
20php&url=https%
Now, the issue I’m facing is, I added password to my MySQL
3A%
2F% from the console and I discovered my phpMyAdmin shows me
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 27 of 35
error anytime I try to access it. Please, any idea to come out of
this will be highly appreciated. WampServer is what I use for
more certainty in proffering solution. Thank you
santhosh
Reply (https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-
mysql-database-using-php/?replytocom=21711#respond)
February 9th, 2017 (https://www.eduonix.com/blog/web-programming-
tutorials/learn-submit-html-data-mysql-database-using-php/#comment-21711)
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 28 of 35
Message..
Name:
Email:
Shares
(http://www.facebook.com/sharer.php?
u=https% Website:
3A%
2F%
2Fwww.eduonix.com%
2Fblog%
2Fweb-
programming- Post comment.
tutorials%
2Flearn-
submit-
html-
data-
mysql-
database-
using-
php%
2F&t=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php)
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 29 of 35
Shares
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F%
2Fwww.eduonix.com%
2Fblog%
2Fweb-
programming-
tutorials%
2Flearn-
submit-
html-
data-
mysql-
database-
using-
php%
2F&t=Learn%
20to%
20submit% (https://www.kickstarter.com/projects/1311831077/learn-
20HTML% 5-best-mobile-development-frameworks)
20data%
20to%
20MySQL%
20database%
20using%
20php)
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 30 of 35
01 Database Programs ›
02 SQL Server ›
03 SQL Scripts ›
04 Database Management ›
05 Web-Based ›
Shares
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 31 of 35
(https://www.eduonix.com/blog/web-
(http://www.facebook.com/sharer.php?
programming-tutorials/learn-auto-
u=https%
3A% increment-sequences-mongodb/)
2F%
2Fwww.eduonix.com%
2Fblog%
2Fweb-
programming-
tutorials% Recent Comments
2Flearn-
submit-
html-
data- Learn How to Build OS Module Utility
mysql- Modules in Node.js – Full-Stack Feed
database-
using- (https://fullstackfeed.com/learn-how-
php% to-build-os-module-utility-modules-
2F&t=Learn%
20to% in-node-js/) on Learn How to Build OS
20submit% Module Utility Modules in NodeJS
20HTML%
20data% (https://www.eduonix.com/blog/web-
20to%
20MySQL% programming-tutorials/learn-build-
20database% os-module-utility-modules-
20using%
20php) nodejs/#comment-23976)
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 32 of 35
Angular 2
(https://www.eduonix.com/blog/web-
programming-tutorials/learn-build-
tabs-component-app-
angular-2/#comment-23514)
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 33 of 35
Interviews
(https://www.eduonix.com/blog/category/interviews/)
iPhone Apps
(https://www.eduonix.com/blog/category/iphone-
apps/)
iPhone Tutorials
(https://www.eduonix.com/blog/category/iphone-
tutorials/)
Java Programming
(https://www.eduonix.com/blog/category/java-
programming-2/)
Shares
jQuery Tutorials
(http://www.facebook.com/sharer.php?
(https://www.eduonix.com/blog/category/jquery-
u=https% tutorials/)
3A%
2F%
2Fwww.eduonix.com% Marketing
2Fblog% (https://www.eduonix.com/blog/category/marketing/)
2Fweb-
programming-
tutorials% Mobile Programming
2Flearn- (https://www.eduonix.com/blog/category/mobile-
submit-
html- programming/)
data-
mysql- Networking and Security
database-
using- (https://www.eduonix.com/blog/category/networking-
php% and-security/)
2F&t=Learn%
20to%
20submit% Newsletters
20HTML% (https://www.eduonix.com/blog/category/newsletters/)
20data%
20to%
20MySQL% Perl Programming
20database% (https://www.eduonix.com/blog/category/perl-
20using%
20php) programming/)
PhoneGap
(http://twitter.com/share? (https://www.eduonix.com/blog/category/phonegap/)
text=Learn%
20to% Press Release
20submit%
20HTML% (https://www.eduonix.com/blog/category/press-
20data% release/)
20to%
20MySQL%
20database% Shell Scripting
20using% (https://www.eduonix.com/blog/category/shell-
20php&url=https%
3A% scripting/)
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 34 of 35
Software Development
(https://www.eduonix.com/blog/category/software-
development/)
System Programming
(https://www.eduonix.com/blog/category/system-
programming/)
Uncategorized
(https://www.eduonix.com/blog/category/uncategorized/)
(http://twitter.com/share?
text=Learn% (https://www.linked
20to%
20submit%
20HTML% learning-
20data%
20to% solutions-
20MySQL%
20database%
20using% pvt-
20php&url=https%
3A% (http://www.facebook.com/eduo
(https://twitter.com/Tutor_
ltd)
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17
Learn to submit HTML data to MySQL database using php Page 35 of 35
Shares
(http://www.facebook.com/sharer.php?
u=https%
3A%
2F%
2Fwww.eduonix.com%
2Fblog%
2Fweb-
programming-
tutorials%
2Flearn-
submit-
html-
data-
mysql-
database-
using-
php%
2F&t=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php)
(http://twitter.com/share?
text=Learn%
20to%
20submit%
20HTML%
20data%
20to%
20MySQL%
20database%
20using%
20php&url=https%
3A%
2F%
2Fwww.eduonix.com%
https://www.eduonix.com/blog/web-programming-tutorials/learn-submit-html-data-mys... 26-03-17