PDA

View Full Version : AARON or anyone who can help me recieve form info


gloryboy
10-16-2006, 07:01 AM
HI GUYS

IM HAVING SOME TROUBLE SETTING UP MY PHP FORMMAIL SCRIPT, I DOWNLOADED PHPFORMMAIL YESTERDAY TO RECEIVE MY FORM SUBMISSIONS FOR A SITE HOSTED ON HOSTMONSTER AND I HAVE HAD TROUBLE SETTING IT UP. I AM NEW TO ALL THIS, SO ANY ADVICE NEEDS TO BE IN BASIC TERMS.

IN MY HTML FORM I HAVE PUT:
<form id="myform" class="cssform" action="formmail.php" method="post">
<input type="hidden" name="recipient" value="email@mydomain.com">

WHEN I SUBMIT INFO THE MESSAGE READS
The following information has been submitted:
email: email@example.com

IN MY EMAIL INBOX I GET THE MESSAGE:
Below is the result of your feedback form. It was submitted by
email@example.com on October 16th, 2006 at 03:51AM (MDT).
email: email@example.com

I AM RECIEVING THE EMAIL BUT NOT THE INFO INPUTTED IN THE FORM.

THIS TELLS ME I AM NOT FILLING IN THE SCRIPT PROPERLY, CAN ANYONE HELP ME OUT, MY UNDERSTANDING IS:

// To change the address the e-mail comes from use define('FROM', 'Example Name <email@example.com>');
define('FROM', 'email@MYDOMAIN.com', null);

$referers = array('www.MYHOSTINGCOMPANY.com', 'MYDOMAIN.com');

// $recipient_array format is $recipient_array = array('sometext'=>'email@MYDOMAIN.com','asdf'=>'email2@example.com');
$recipient_array = array();

$valid_env = array('REMOTE_HOST', 'REMOTE_ADDR', 'REMOTE_USER', 'HTTP_USER_AGENT');

Thanks in advance

sjlplat
10-16-2006, 07:32 AM
I use the form feedback wizard from thesitewizard.com (http://www.thesitewizard.com/wizards/feedbackform.shtml). It's pretty easy to use, and you can customize it to your liking after the code is generated. Hope this helps.

Aaron
10-16-2006, 09:03 AM
Try changing myhostingcompany.com to mydomain.com (see below)

$referers = array('www.MYHOSTINGCOMPANY.com', 'MYDOMAIN.com');