Page 1 of 1

php header

Posted: Tue Mar 09, 2010 8:42 am
by bkchf123
hello i have a script that stops duplicate entries into a data dase then when the user tries to enter entry twice

if (mysql_num_rows($specials)>0) {
//display the html page with the error message
header("Location: specials_Insert.php?msg=ERROR: It appears that <special name here> allready exits ..");
exit();
}
it will print it ERROR: It appears that special name allready exits .. no problem
this is where the message is sent
<?php if (isset($_GET['msg'])) { echo "<div id=\"errorMessage\"> $_GET[msg] </div>"; } ?>

what I would like to do is add echo to it to show the name which allready exits
<?php echo $row_specials['specialName']; ?> is that possible

same with this to print or echo the name added
$WA_redirectURL = "specials_Detail.php?msg=Congradulations: <special name here> has been added..";