I have a page that shows up as an error page on my website if the db cant connect.
I added the following to the page. This provides a form to a user to alert the admin that the site is down (works with sms) I will place a notice like" you are the first to see this erorror please advise the site admin"
Then once theyve submitted it to me I dont want it to show up to anyone else.
I was thinking on the form submit to set a variable to 1 and later check the variable if its 1 I will not show the form code otherwise I will.
I have no clue as to how to make this work any thoughts Do I simply
define $count as global
$count = 1; in the code that transmits the sms? Will this hold that variable no matter how many times the page is loaded?
<form method="POST" action="<?php echo $PHP_SELF; ?>">
<input type="text" name="number" maxlength="10" class="inputbox"><br />
(Example: 8001234567; US Only)<br /><br />
<input type="text" name="subject" maxlength="20" class="inputbox"><br />
(Max 20 Characters)<br /><br />
<textarea name="message" rows="10" cols="15" class="inputbox"></textarea><br />
(Between 3 - 120 Characters)<br /><br />
<input type="submit" name="do" value="Send" class="button">