I'm using Jack's Form Mail script (http://www.dtheatre.com/scripts/formmail.php) for my contact form. The email sends via the form BUT there is no message body in the email, no form results - nothing.

I can't figure this out. I tried a different version of the script (this one (http://www.dtheatre.com/scripts/source_view.php?path=formmail_code/formmail.x.phps)) and I'm getting the same results.

Here's the original script I used:

<?
/*
##############################################################################
# PLEASE DO NOT REMOVE THIS HEADER!!!
#
# COPYRIGHT NOTICE
#
# FormMail.php v5.0
# Copyright 2000-2004 Ai Graphics and Joe Lumbroso (c) All rights reserved.
# Created 07/06/2000 Last Modified 10/28/2003
# Joseph Lumbroso, http://www.aigraphics.com, http://www.dtheatre.com
# http://www.dtheatre.com/scripts/
##############################################################################
#
# This cannot and will not be inforced but I would appreciate a link back
# to any of these sites:
# http://www.dtheatre.com
# http://www.aigraphics.com
# http://www.dtheatre.com/scripts/
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
#
##############################################################################
*/

// for ultimate security, use this instead of using the form
$recipient = "steph@site.com"; // youremail@domain.com

// function to check the referer for security reasons.
// contributed by some one who's name got lost.. Thanks
// goes out to him any way.
function check_referer($referers) {
if (count($referers)) {
$found = false;

Both of those seem to be more geared to PHP4 or a server with register_globals on, which is insecure. Hopefully your server is running PHP5 and has register_globals off, but that will break these. There are more modern scripts available. Just include "php5" in your search string.

mssteph

03-05-2010, 10:50 PM

Thanks - yeah, I found an updated/better script at http://www.tectite.com/ and it works like a dream. Anyone with this sort of issue using Jack's Formmail should definitely give Tectite's a try.