caynada
07-22-2003, 12:05 PM
Can anyone spot where I'm going wrong with the following form script. $Address is a textarea as is $Comments. $HearAbout is a drop down list.
<?
$mailto = 'mc2@candw.ky' ;
$subject = "Information Request" ;
$formurl = "http://www.stuartslaw.com/form.html" ;
$thankyouurl = "http://www.stuartslaw.com/thankyou.html" ;
$FirstName = $_POST['FirstName'] ;
$LastName = $_POST['LastName'] ;
$Title = $_POST['Title'] ;
$Company = $_POST['Company'] ;
$Department = $_POST['Department'] ;
$Address = $_POST['Address'] ;
$POBox = $_POST['POBox'] ;
$City = $_POST['City'] ;
$State = $_POST['State'] ;
$Country = $_POST['Country'] ;
$Zip = $_POST['Zip'] ;
$Business = $_POST['Business'] ;
$Phone = $_POST['Phone'] ;
$Mobile = $_POST['Mobile'] ;
$Fax = $_POST['Fax'] ;
$Email = $_POST['Email'] ;
$CurrentClient = $_POST['CurrentClient'] ;
$CaymanBusiness = $_POST['CaymanBusiness'] ;
$InvestmentFunds = $_POST['InvestementFunds'] ;
$CapitalMarkets = $_POST['CapitalMarkets'] ;
$ProjectFinance = $_POST['ProjectFinance'] ;
$RealEstate = $_POST['RealEstate'] ;
$Compliance = $_POST['Compliance'] ;
$PrivateClient = $_POST['PrivateClient'] ;
$Insurance = $_POST['Insurance'] ;
$Regulatory = $_POST['Regulatory'] ;
$Shipping = $_POST['Shipping'] ;
$Other = $_POST['Other'] ;
$Referal = $_POST['Referal'] ;
$HearAbout = $_POST['HearAbout'] ;
$comments = $_POST['comments'] ;
mail("$mailto", "$subject," "From:$mailto");
header( "location: $thankyouurl" );
?>
<?
$mailto = 'mc2@candw.ky' ;
$subject = "Information Request" ;
$formurl = "http://www.stuartslaw.com/form.html" ;
$thankyouurl = "http://www.stuartslaw.com/thankyou.html" ;
$FirstName = $_POST['FirstName'] ;
$LastName = $_POST['LastName'] ;
$Title = $_POST['Title'] ;
$Company = $_POST['Company'] ;
$Department = $_POST['Department'] ;
$Address = $_POST['Address'] ;
$POBox = $_POST['POBox'] ;
$City = $_POST['City'] ;
$State = $_POST['State'] ;
$Country = $_POST['Country'] ;
$Zip = $_POST['Zip'] ;
$Business = $_POST['Business'] ;
$Phone = $_POST['Phone'] ;
$Mobile = $_POST['Mobile'] ;
$Fax = $_POST['Fax'] ;
$Email = $_POST['Email'] ;
$CurrentClient = $_POST['CurrentClient'] ;
$CaymanBusiness = $_POST['CaymanBusiness'] ;
$InvestmentFunds = $_POST['InvestementFunds'] ;
$CapitalMarkets = $_POST['CapitalMarkets'] ;
$ProjectFinance = $_POST['ProjectFinance'] ;
$RealEstate = $_POST['RealEstate'] ;
$Compliance = $_POST['Compliance'] ;
$PrivateClient = $_POST['PrivateClient'] ;
$Insurance = $_POST['Insurance'] ;
$Regulatory = $_POST['Regulatory'] ;
$Shipping = $_POST['Shipping'] ;
$Other = $_POST['Other'] ;
$Referal = $_POST['Referal'] ;
$HearAbout = $_POST['HearAbout'] ;
$comments = $_POST['comments'] ;
mail("$mailto", "$subject," "From:$mailto");
header( "location: $thankyouurl" );
?>