Skip to main content
Missed closing parenthesis
Source Link
Machavity
  • 31.8k
  • 27
  • 97
  • 108

Like Fred said, sessions are good solution here. Pseudo code below

session_start(); if(!isset($_SESSION['mail_sent'])) { mail('someaddresss'...); $_SESSION['mail_sent'] = true; } 

Like Fred said, sessions are good solution here. Pseudo code below

session_start(); if(!isset($_SESSION['mail_sent']) { mail('someaddresss'...); $_SESSION['mail_sent'] = true; } 

Like Fred said, sessions are good solution here. Pseudo code below

session_start(); if(!isset($_SESSION['mail_sent'])) { mail('someaddresss'...); $_SESSION['mail_sent'] = true; } 
Source Link
Machavity
  • 31.8k
  • 27
  • 97
  • 108

Like Fred said, sessions are good solution here. Pseudo code below

session_start(); if(!isset($_SESSION['mail_sent']) { mail('someaddresss'...); $_SESSION['mail_sent'] = true; }