php header

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bkchf123
Forum Newbie
Posts: 11
Joined: Mon Jan 25, 2010 3:01 pm

php header

Post 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..";
Post Reply