Like the title says: Submit Form - Error/Success message on Index file
At the "insertken.php" I got this script:
This is the end by the way..
Anyhow, I would like to have this Error or Successful message on my index file ( form.php )
Any idea how I can make that happen ?
The thing is that I would really like my website not to go to the other page, but rather update on the same site, like.. ajax etc.
But it also needs to remove everything in the form, and show a success/error message at the buttom.
Maybe this wasn't a good way to explain but, yeah? ask if you wounder about anything. Could send a picture if needed.
$sql="INSERT INTO $tbl_name(id, name, description, price, sla, quantity, fix)VALUES('$id', '$name', '$description', '$price', '$sla', '$quantity', '$fix')";
$result=mysql_query($sql);
if($result){
echo "Successful";
echo "<BR>";
echo "<a href='form.php'>Back to main page</a>";
}
else {
echo "ERROR";
}
?>