cnl83 Posted March 21, 2007 Share Posted March 21, 2007 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; ?> Quote Link to comment Share on other sites More sharing options...
per1os Posted March 21, 2007 Share Posted March 21, 2007 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. Quote Link to comment Share on other sites More sharing options...
cnl83 Posted March 21, 2007 Author Share Posted March 21, 2007 Sorry if I sound naive, but its because im not really a pro at php. You are saying I need to add $_SERVER[REMOTE_ADDR] like this? if ($_SERVER[REMOTE_ADDR]) $ip = "no ip"; else $ip = getHostByAddr($REMOTE_ADDR); Quote Link to comment Share on other sites More sharing options...
per1os Posted March 21, 2007 Share Posted March 21, 2007 http://us2.php.net/register_globals Maybe that will explain it better than I can. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.