Status
Not open for further replies.

sjosue96

Registered
May 9, 2011
2
0
51
I've been trying to work on a script. When I finally uploaded it (i have a godaddy account: windows account but it handles php5) but im not receiving anything when testing :/

Heres the code:

<?php

$adminaddress = "[email protected]";
$siteaddress ="http://www.myperfectclean.com";
$sitename = "www.MyPerfectClean.com";

// Gets the date and time from server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

//Gets the message from flash contact form
$firstname = $HTTP_POST_VARS['firstname'];
$lastname = $HTTP_POST_VARS['lastname'];
$email = $HTTP_POST_VARS['email'];
$zipcode = $HTTP_POST_VARS['zipcode'];
$phonenumber = $HTTP_POST_VARS['phonenumber'];
$message = $HTTP_POST_VARS['message'];



//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
mail ("$adminaddress","Info Request",
"A visitor at $sitename has left the following information\n
Name: $firstname $lastname
Email: $email
ZipCode: $zipcode
Phonenumber: $phonenumber

The visitor said:
------------------------------
$message

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:Perfect Clean" ) ;

//This sends a confirmation to the visitor
mail ("$email","Thank You for visiting $sitename",
"Hi $firstname $lastname,\n
Thank you for your interest in $sitename!
A represenative will contact you shortly!
Regards,
$sitename
$siteaddress","FROM:Perfect Clean") ;

//Confirmation is sent back to the Flash form that the process is complete
echo "&verify=success&";

?>

Does anybody have any suggestions? or know what's wrong?
 
Last edited:

Infopro

Well-Known Member
May 20, 2003
17,090
519
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
This appears to be a script thats been around a while. Not sure what this has to do with cPanel.

You might like to have a closer look at these posts on google:
/http://www.google.com/search?q=//Confirmation is sent back to the Flash form that the process
 
Status
Not open for further replies.