PDA

View Full Version : Convert Php to C# ?



admans
08-10-2005, 07:35 AM
Convert Php to C# ?

I need to convert Php to C# to add to an Asp page. How would I do this? Here is the code. Any help woul be greatly appreciated. Thanks,

if (isset($Submit)==false) $Submit="";
if (isset($Name)==false) $Name="";
if (isset($Company)==false) $Company="";
if (isset($EMail)==false) $EMail="";
if (isset($Phone)==false) $Phone="";
if (isset($Fax)==false) $Fax="";
if (isset($Questions)==false) $Questions="";
if (isset($ClassName)==false) $ClassName="";
if (isset($ContactName)==false) $ContactName="";
if (isset($ContactCompany)==false) $ContactCompany="";
if (isset($ContactEMail)==false) $ContactEMail="";
if (isset($ContactPhone)==false) $ContactPhone="";
if (isset($ContactFax)==false) $ContactFax="";
if ($Submit==""||$Name==""||$Company==""||$EMail==""||$Phone==""||$Fax=="")
{
if ($Name !="") $ContactName =$Name;
if ($Company!="") $ContactCompany=$Company;
if ($EMail !="") $ContactEMail =$EMail;
if ($Phone !="") $ContactPhone =$Phone;
if ($Fax !="") $ContactFax =$Fax;