Wednesday, 1 February 2017

how to create Multistep registration Form in PHP

01:13

(1) Create  database  ajax  & then create table record:
SQL>
create table  record
(id int primary key auto_increment,
 name  varchar(200),
 contact varchar(200),
 email varchar(200),
 address   varchar(200),
 subject   varchar(200),
 message   varchar(2000));
(2)create   page1.php  file:

<form action="page2.php" method="post">
 name <input type="text"  name="name">
 Contact <input type="text" name="contact">
 <input type=submit name=submit  value="next">
</form>

(3)create page2.php file:
<?php

session_start();
foreach($_POST  as  $key=>$value)
{
$_SESSION['omsir'][$key]=$value;
}

?>


<form action="page3.php" method="post">
 email <input type="text"  name="email">
 Address <input type="text" name="address">
 <input type=submit name=submit  value="next">
</form>

(4)write  code for page3.php file:

<?php

session_start();
foreach($_POST  as  $key=>$value)
{
$_SESSION['omsir'][$key]=$value;
}

?>
<form action="page4.php" method="post">
 subject <input type="text"  name="subject">
 message<input type="text" name="message">
 <input type=submit name=submit  value="submit">
</form>

(5)write code for page4.php file:
<?php

session_start();

foreach($_POST  as  $key=>$value)
{

$_SESSION['omsir'][$key]=$value;

}

extract($_SESSION['omsir']);

echo $name;
echo$contact;
echo$email;
echo$address;
echo$subject;
echo $message;
$con=mysql_connect("Localhost","root","");
mysql_select_db("ajax",$con);
$sql="insert into record(name,contact,email,address,subject,message)
values('$name','$contact','$email','$address','$subject','$message')";
$result=mysql_query($sql);

if($result)
{

echo "record inserted";

}
else

{

echo "record not inserted";

}


?>

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

5 comments:

  1. Great post! I am actually getting ready to across this information, It's very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.
    PHP Training in Chennai

    ReplyDelete
  2. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in JQUERY
    , kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on JQUERY. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us:
    Name : Arunkumar U
    Email : arun@maxmunus.com
    Skype id: training_maxmunus
    Contact No.-+91-9738507310
    Company Website –http://www.maxmunus.com



    ReplyDelete
  3. Use Multi Step Registration Form Plugin designed & developed by https://www.witonilabs.com Its giving wonderful front end experience ad its very powerful. I'm personally using it, TRY ONCE

    Thanks
    Devin Smith

    ReplyDelete
  4. The Fourdy Network; Leading Digital Marketing Company & 2D 3D animation studio Offers Seo, Social Media Marketing, Website Development, Mobile Apps Development, Lead Generation Services In Dubai UAE Malaysia & India.

    ReplyDelete

PHP Training Mumbai, PHP MySQL Training Mumbai, PHP Course Mumbai, PHP Institute Mumbai

 

© 2013 PHP TRAINING IN MUMBAI BY OM SIR . All rights resevered. Designed by OM SIR

Back To Top