RE: [PHP-WIN] asp to php

From: Date: Fri, 23 Mar 2001 18:29:55 +0000
Subject: RE: [PHP-WIN] asp to php
Groups: php.windows 
Request: Send a blank email to php-windows+get-6269@lists.php.net to get a copy of this message
I don't know any ASP, but you could try http://www.naken.cc/ for an automated ASP2PHP program. From what your code looks like it's doing, I would say it is fairly easy to do in PHP... :) This is the output from asp2php 0.75.10: <? //Response.write(Request.Form("Navigazione")) $CreateObject["CDONTS.Newmail"] $objMail.$MailFormat=$cdoMailFormatMIME; $objMail.$From=$HTTP_POST_VARS["tuamail"]; $objMail.echo $HTTP_POST_VARS["suamail"]; $objMail.$Bcc="ex@example.com"; $objMail.$Subject="## example ##"; //Composizione body $Body=$Body."Buongiorno,".chr(13).chr(10); $objMail.$Body=$Body; $objMail.$Send; $objMail=null; header("Location: "."conferma.php"); exit; //Response.write(body) ?> It commented out two lines... I don't know if they are important... HTH, Madruga -----Original Message----- From: analyst@libero.it [mailto:analyst@libero.it] Sent: sexta-feira, 23 de Março de 2001 16:29 To: php-windows@lists.php.net Subject: [PHP-WIN] asp to php I need to convert this ASP file into PHP file. Could you help me ? Thanks a lot Ivan ------ <% 'Response.write(Request.Form("Navigazione")) Set objMail = CreateObject("CDONTS.Newmail") objMail.MailFormat = cdoMailFormatMIME objMail.From = Request.Form("tuamail") objMail.To = Request.Form("suamail") objMail.Bcc = "ex@example.com" objMail.Subject = "## example ##" 'Composizione body Body=Body&"Buongiorno,"&chr(13) &chr(10) objMail.Body = Body objMail.Send Set objMail = Nothing Response.redirect("conferma.asp") 'Response.write(body) %> -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.windows (#6269) next »