| Posted by william.clarke@gmail.com on 02/03/06 00:11 
I've used something along the lines of:
 //I'll assume you know how to start a session, if not check the
 manual.
 //Call it whatever you like....it is just a flag to stop the message
 getting resent.
 $_SESSION("Message_Sent") = true;
 
 Then before mailing, check the value of this session variable.
 
 You could also uses Javascript to disable the button (but this can get
 fiddly if the user hits refresh, but using PHP to generate the
 javascript code means you can check the same Session variable and keep
 the button disabled if it's value is true.).
  Navigation: [Reply to this message] |