Custom Tag
Posted: Sat Feb 18, 2006 5:45 am
Hey all,
I am trying to put up a contact form that I have previously used but it doesn't seem to be passing the variable along. Below are my steps:
1. Set up user tag {contact_submitted}
$SiteName = "http://www.sitename.com";
$SiteEmail = "admin@site.com";
$ip = $REMOTE_ADDR;
echo 'Thankyou $UserName for your message.';
$AdminMessage .= "$UserName, Submitted the following Information:\n\n";
$AdminMessage .= "Full Name: $UserName\n";
$AdminMessage .= "E-mail: $UserEmail\n";
$AdminMessage .= "Comments: $UserComments\n\n";
mail("$SiteEmail", "$SiteName", $AdminMessage, "From: $UserEmail");
2. Set form up with following:
Name:
Email:
Message:
3. Insert user tag into contact_submitted.
Basically none of the information is being passed to the Contact Submitted page. I am going to most likely try and use the Form module but was wondering why it was wasn't working for future reference.
Cheers
Damian
I am trying to put up a contact form that I have previously used but it doesn't seem to be passing the variable along. Below are my steps:
1. Set up user tag {contact_submitted}
$SiteName = "http://www.sitename.com";
$SiteEmail = "admin@site.com";
$ip = $REMOTE_ADDR;
echo 'Thankyou $UserName for your message.';
$AdminMessage .= "$UserName, Submitted the following Information:\n\n";
$AdminMessage .= "Full Name: $UserName\n";
$AdminMessage .= "E-mail: $UserEmail\n";
$AdminMessage .= "Comments: $UserComments\n\n";
mail("$SiteEmail", "$SiteName", $AdminMessage, "From: $UserEmail");
2. Set form up with following:
Name:
Email:
Message:
3. Insert user tag into contact_submitted.
Basically none of the information is being passed to the Contact Submitted page. I am going to most likely try and use the Form module but was wondering why it was wasn't working for future reference.
Cheers
Damian