FormMail.php script for PHP5?
Hi guys! Does anyone know where I can get an updated version of Jacks FormMail.php script for PHP5?
I've tried updating the version I have, but it's throwing errors in places that it really shouldn't.
Even with all my years of PHP behind me, I still can't figure out what that script's doing.
I know one thing — v5 doesn't work with my hosts install of PHP5!
register_globals set to off in PHP 5
I really don't know what I'm talking about, so don't necessarily trust the messenger, however I've been messing with Jacks script all day. I found this link:
and its helped tremendously. It says that PHP 5 defaults to register_globals off and Jacks and many other older scripts use register_globals on. He recommends against turning it back on and just fixing the scripts.
If only I wern't a PHP noob.:confused:
HOWEVER, I am now getting the emails with the correct email address and subject, and my user is being correctly redirected, BUT my emails are blank. I've quadruple checked my forms and made a new completely simple form in case I missed something so I don't think its a form issue. Any ideas?
HTTP_POST_VARS not supported
Change all the HTTP_POST_VARS in Jacks script to $_POST and fix the other problems from the post above and you should be good to go.:)
I'm now a proud, and tired noob....
Hope that helped you too.