What you'll need to do is check the content of the variable "$message" and display the appropriate message based on what it contains. Here's a simplified example, untested, but should work. Place this at or near the top of your index.php file:
Quote:
Originally Posted by hunterhdolan
Ok so I am designing a script and I need to display a message when a person clicks a link.
How can I get php to reconize
index.php?message=1
then say success.
and
index.php?message=2
then say Error
Above the content.
but not show ether when it is just index.php
|