plugin href var question
-
Hello,
I have created a wp plugin that adds a record to a custom table.
When this task is completed, I wanted to display a message depending on what happenedIn my add.php code I have the following….
….
$iResult = mysql_query($sSQL) or die (‘Invalid query: ‘ . mysql_error());if ($iResult)
{
$sMsg = “Product successfully added.”;
header(“Location: http://eastcoasttechwriter.ca/?page_id=1758&Msg=’$sMsg'”);
}
…in the code for the wp page 1758, I have….
<?php
print (“Message: $Msg”);
?>The variable $Msg is not displaying anything.
The topic ‘plugin href var question’ is closed to new replies.