Hey, I’m Ruchika!
Welcome to my first blog post.
Before starting our blog topic let me share
something about myself.
I’m Ruchika Solanki. By profession, I’m a full-stack web developer.
I was always thinking to start blogging. So a few days ago when I was working on a web project I got stuck in solving a bug, then
after some time when the bug was solved I got an idea why not start blogging on
programming languages. And that’s my story of starting a blog.
Okay enough about me.
Now Let’s start with our topic.
To insert form data into MySql database using PHP and
AJAX we will go with some steps:
Requirements: Xampp or Wamp Server and an editor (notepad,
notepad++, sublime,….etc)
Step
1: Create a database in Xampp or Wamp Server.
Now Create database “Registration” (Here you can give your database name).
After creating the database create a table “register_mst_t” with three fields
‘Name, ‘Email’, ‘Password’.
Step
2: Create a folder “Example” with index.html, register.php these 2 files in it.
Step
3: Now Create an HTML form with three input fields.
Step
4: Then send the form data to PHP using AJAX.
Step
5: And at the end add the form data into a database and send the response back to
ajax
using PHP.
Step
6: Output:
Thank you
ReplyDeleteyour welcome
Delete