<form method="post">
User Name : <input type="text" name="values[]"><br/>
User Mobile: <input type="text" name="values[]"><br/>
User Email: <input type="text" name="values[]"><br/>
<input type="submit" name="submit" values="submit">
</form>
My Code/Logic
<?php
$con=mysql_connect('localhost','root','');
mysql_query('testing_user',$con);
if(isset($_POST['submit']))
{
$x=$_POST['values'];
$data_values=array();
for($i=0;$i<count($x);$i++)
{
echo $x[$i]."<br/>";
array_push($data_values,$x[$i]);
}
//print_r($data_values[0]);
$name=$data_values[0];
$mobile=$data_values[1];
$email=$data_values[2];
mysql_query("insert into user_data values('','$name','$mobile','$email')");
}
?>
Check My Logic Please Write New Php Logic to register user record in mysql. i need Your Help ! Thank You