The following is code that was generated with another ASP to PHP converter. Much different, but looks more like PHP to me, still get a lot of errors, and don't know where to start.
<?
if ($HTTP_POST_VARS[ "FFSubmitted" ] == "yes" )
{
$FormFields = "PriorExp~TwoYears~Name~ss1~ss2~ss3~Address~Address2~City~State~Zip~Phone~EveningPhone~CellPhone~Email~EmergencyName~EmergencyPhone~Particulars~Age18~Convicted~ReliableTransport~MinHours~MaxHours~StartSun~EndSun~StartMon~EndMon~StartTues~EndTues~StartWed~EndWed~StartThur~EndThur~StartFri~EndFri~StartSat~EndSat~HourlyRate~Day~Month~Year~EmployerName~Location~Supervisor~SupervisorContact~Position~Wage~ReasonLeft~StartDate~EndDate~EmployerName~Location~Supervisor~SupervisorContact~Position~Wage~ReasonLeft~StartDate~EndDate~CrimeExplanation~Commitments~PositionExplained~Teamwork~Wish~AdditionalComments~Position" ;
if ($FormFields != "" )
{
$arrFormFields = $split[ $FormFields ][ "~" ] ;
}
if ($HTTP_POST_VARS[ "PriorExp" ] == "Yes" )
{
// $objCDO is of type "CDONTS.NewMail"
;
}
else
{
// $objCDO is of type "CDONTS.NewMail"
;
}
mail($BodyString =str_replace( "~" , char( 13 ) . char( 10 ) , "" ) .char( 13 ) , ,,"From: ".$Subject ="Online Application");
mail( $If $FormFields <>""$Then ,$For $Each $item $In $arrFormFields ,$BodyString =$BodyString .$item .": ".$HTTP_POST_VARS[ $item ] .char( 13 ) ,"From: ".$Bcc ="");
;
}
mail( $objCDO=null;
,$RedirectURL ="thankyou.php",$If $RedirectURL <>""$then ,"From: ".$Send );
;
}
else
{
header("Location: ". $RedirectURL );
mail( $If $HTTP_GET_VARS <>""$Then ,$response .$redirect[ $RedirectURL . "?" . $HTTP_GET_VARS ] , $If ,"From: ".$MailFormat =1);
;
}
;
}
mail( , ,,"From: ".$BodyFormat =1);
mail( ,,,"From: ".$Body =$BodyString );
mail( $Next , , ,"From: ".$Cc ="");
mail( ,,,"From: ".="email_here");
mail( ,,,"From: ".$From ="email_here");
?>
<? $MM_EditAction = ${ "URL" } ;
if (( $HTTP_GET_VARS != "" ) )
{
$MM_EditAction = $MM_EditAction . "?" . $HTTP_GET_VARS ;
}
?>