Jump to content

This script worked two weeks ago, why doesn't it now?


bcdeery

Recommended Posts

I apologize in advance for posting the entire code (it's short), but I have no idea why it's not working anymore.  I've contaced my web host and they insist it's nothing on their end.  The "Information Request" Page is [url=http://www.wavechange.com/inforequest.html]www.wavechange.com/inforequest.html[/url].

As you can see, no fields are required.  If no email address is entered, the loaded page is a "server error" page.  If a valid email address is entered, my "Thank You" page shows, but no emails are sent.  WHY!?!?!?


[code]<?
  $PlanOfAction = $_REQUEST['PlanOfAction'] ;
$ResponseMethod = $_REQUEST['ResponseMethod'] ;
$Name = $_REQUEST['Name'] ;
$Title = $_REQUEST['Title'] ;
$Company = $_REQUEST['Company'] ;
$Address = $_REQUEST['Address'] ;
$City = $_REQUEST['City'] ;
$ProvinceState = $_REQUEST['ProvinceState'] ;
$Country = $_REQUEST['Country'] ;
$ZipPostalCode = $_REQUEST['ZipPostalCode'] ;
$Phone = $_REQUEST['Phone'] ;
$Fax = $_REQUEST['Fax'] ;
$Email = $_REQUEST['Email'] ;
$HowDidYouFindUs = $_REQUEST['HowDidYouFindUs'] ;
$GTSPInterest = $_REQUEST['GTSPInterest'] ;
$Comments = $_REQUEST['Comments'] ;

$Contents = "Plan Of Action: $PlanOfAction \n Prefered Response: $ResponseMethod \n Name: $Name \n Title: $Title \n Company: $Company \n Address: $Address \n City: $City \n ProvinceState: $ProvinceState \n Country: $Country \n Postal Code: $ZipPostalCode \n Phone: $Phone \n Fax: $Fax \n email: $Email \n How They Found Us: $HowDidYouFindUs \n Answers Interest: $GTSPInterest \n Comments: $Comments";

  mail( "[email protected]", "Information Request from Wavechange.com",
  $Contents, "From: $Email" );

mail( $Email, "Your information Request", "Thank you for visiting Wavechange Logistics on the web.  We will be contacting you within the next 24 hours.", "From: [email protected]" );

  header( "Location: http://www.wavechange.com/thankyou.html" );

 
?>[/code]

Thank you so much for any help.  I'm losing hair on such a simple matter. 

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.