Hi, I have the following code, that stores form data into a MySQL database.
How do I provide a link on this page, that navigates to a page called "card.php", and displays the appropriate id for that person?
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die(mysql_error());
}
mysql_select_db("db", $con);
$sql="INSERT INTO users (id, name, account)
VALUES ('$_POST[id]','$_POST[name]','$_POST[account]')";
if (!mysql_query($sql,$con))
{
die(mysql_error());
}
echo $_POST[name]."'s Account Created Successfully!";
mysql_close($con)
?>