Jump to content

Is PHP configured correct on this server, because my form doesnt work


cnl83

Recommended Posts

Here is the php info on the server im using http://www.allsaidaudiosolutions.com/test.php

The problem I have is that my form doesnt work. I cant figure out why it would not. It works on every other server ive used it on.

 

PHP

<?  
// Enter your contact email address here
$adminaddress = "myaddy"; 

// Enter the address of your website here include http://www. 
$siteaddress ="myaddy"; 

// Enter your company name or site name here 
$sitename = "All said audio solutions"; 

/*******************************************************

No need to change anything below ... 

*******************************************************/

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

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

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
if ($action != ""): 
mail("$adminaddress","Web email form", 
"A visitor at $sitename has left the following information\n
Name: $fname 
Organization: $organization
Department: $department
Email: $email
Telephone: $telno\n
City & State: $city
Budget: $state


Project and Budget:
------------------------------
$comments

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

//This sends a confirmation to your visitor
mail("$email","Thank You for visiting $sitename", 
"Hi $fname,\n
Thank you for your interest in $sitename!
$siteaddress","FROM:$adminaddress"); 

//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Thank you for visiting <a href = \"$siteaddress\" target = \"_blank\"><u>$sitename</u></a>. You will receive a confirmation email shortly. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";

endif;

?>

The server at www.allsaidaudiosolutions.com is taking too long to respond.

 

Chances are Register_globals is turned off for security settings.

 

Meaning you need to use $_SERVER[REMOTE_ADDR] to reference some variables. Same with $_POST and $_GET.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.