Saturday, 14 September 2013

How do I echo last input?

How do I echo last input?

I have connected database to my site.
I have this code:
<form action="insert.php" method="post">
<label for="ime">Ime:</label> <input type="text" name="ime">
<label for="priimek">Priimek:</label> <input type="text" name="priimek">
<input type="submit">
</form>
which import data to database. How do I now echo this input? I want url to
be like /?id=434412
now I have just this code:
$result = mysqli_query($con,"SELECT * FROM person");
while($row = mysqli_fetch_array($result))
{
echo $row['ime'] . " " . $row['priimek'];
echo "<br>";
}

No comments:

Post a Comment