PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
The problem is that the mailer.php below generates a new page and messes things up. I would like to place an <alert> to inform the user that his message has been sent. I would also like to clear the form (already done) and stay or reload the original page (code listed above). Any suggestions, ideas would be welcome.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
If it works and you're happy with it, then there's no reason to add such complexity. If you want something to give the user a "rich application" experience, then such complexity is well worth it. It all depends on what your goals are.