Ver Mensaje Individual
  #1 (permalink)  
Antiguo 28/08/2003, 01:34
Avatar de hechizero
hechizero
 
Fecha de Ingreso: marzo-2002
Mensajes: 50
Antigüedad: 22 años, 1 mes
Puntos: 0
Convertir Asp en PHP

tengo una pagina en flash, y un formulario con unos cuantos campos Nombre, empresa, etc, y lo tenia en asp, pero ahora lo necesito en php y no se como hacerlo, si alguien me pudiese ayudar lo agradeceria.

Este es el codigo asp

<%
Set Mailer = Server.CreateObject ("SMTPsvg.Mailer")
Mailer.FromName = Request.FORM("nombre")
Mailer.FromAddress = Request.FORM("email")
Mailer.Subject = "SOLICITUD DE INFORMACION"
Mailer.RemoteHost = "correoms.acens.net"
Mailer.AddRecipient "Webmaster", "[email protected]"



strMsgHeader = "SOLICITUD DE INFORMACION" & vbCrLf & "**************************" & vbCrLf
strMsgFooter = vbCrLf & ""

strBody = strBody & "<font face='Verdana, Arial, Helvetica, sans-serif' size='2' color='#555555'>"
strMsgInfo = strMsgInfo & "Nombre= " & Request.FORM("nombre") & vbCrLf
strMsgInfo = strMsgInfo & "Empresa= " & Request.FORM("empresa") & vbCrLf
strMsgInfo = strMsgInfo & "Actividad= " & Request.FORM("actividad") & vbCrLf
strMsgInfo = strMsgInfo & "Direccion= " & Request.FORM("direccion") & vbCrLf
strMsgInfo = strMsgInfo & "C.Postal= " & Request.FORM("cp") & vbCrLf
strMsgInfo = strMsgInfo & "Ciudad= " & Request.FORM("ciudad") & vbCrLf
strMsgInfo = strMsgInfo & "Provincia= " & Request.FORM("provincia") & vbCrLf
strMsgInfo = strMsgInfo & "Telefono= " & Request.FORM("telefono") & vbCrLf
strMsgInfo = strMsgInfo & "Email= " & Request.FORM("email") & vbCrLf
strMsgInfo = strMsgInfo & "Comentario= " & Request.FORM("comentario") & chr(10)
strBody = strBody & "</font>"





Mailer.BodyText = strMsgHeader & strMsgInfo & strMsgFooter

if Mailer.SendMail then


' Message send failure
Response.Write ("An error has occurred.")
' Send error message
Response.Write ("The error was " & Mailer.Response)
end if

%>