PDA

View Full Version : what is "vbCrLf"? PLEASE HELP!!!


reub77
09-10-2002, 08:03 PM
I'm converting a page of ASP into PHP and I've stumbled onto something I've never come across in ASP. Whoever coded the ASP is trying to format a message into an email message that makes sense to a reader.

$a = "A request form has been filled out and submitted" & vbCrLf
$a = $a & "by " $company & $email & vbCrLf
$a = $a & "on " & date("F d, Y") & " at " & date("H:i:s") & "." & vbCrLf & vbCrLf
$a = $a & "The following:" & vbCrLf & vbCrLf
$a = $a & "Snack Mixes-" & vbCrLf & vbCrLf

This is just a sampling. What is it doing? If it is a specific function what would I use that is similar in PHP? If I know what it does I can find out at least. Is it a line break or something? The code above is partly converted to PHP as you see the form elements aren't request.form. What is the "vbCrLf" part of it?

Please Help

Zvona
09-10-2002, 08:30 PM
vbCrLf stands for "Carriage return, Line feed". In your case it means that empty row is added after every string.

reub77
09-10-2002, 08:51 PM
Do you by chance know how to convert this chunk of code into PHP?

Set objMail = CreateObject("CDONTS.Newmail")
objMail.To = "jo@jo.net"
objMail.From = "jo@jo.net"
objMail.Subject = "jo.com order"
objMail.Body = $a
objMail.Send
Set objMail = Nothing


This is a PHP email packet. Would it change much in PHP?

Morgoth
09-11-2002, 02:34 PM
Would you not be able to find a mailing form for PHP online somewhere?