Hello, could you help me please? I have the code below. There is a form at form.php and sends some information (name, email, age) at insert.php where is the code below. In insert.php there is also another form for addinional information but I want data from the first form and the second one to be saved at MySQL simutaneously, as if it were one single form.


$con = mysql_connect("","","");
if (!$con)
  die('Could not connect: ' . mysql_error());

mysql_select_db("", $con);

$sql="INSERT INTO table (name, email, age)

if (!mysql_query($sql,$con))
  die('Error: ' . mysql_error());
echo " 


<form action="insert.php" method="post">
my form for additional info......

Thank you in advane! :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.