Real Estate Forums
| Increasing Conversion Converting Visitors to Leads, thats why real estate agents have their websites in the first place. Share tips, tricks and secrets on how to get more leads from the net! |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|||
|
Hi there!
I have used Phpformgenerator via fantastico/cpanel and is working very well. Emails are being recieved fine, no problems at all. Just one minor thing that is annoying me though. The message area where customers type their enquiry into - Ie: the Textarea tag.. is sending me the message with wierd code where there are line breaks. In the process.php there is a line of code that has " <br />" in it, which looks like the culprit. --------------------------------------------------------------------------------------------- Here's the full line of code it came from: $Message=preg_replace("/(\015\012)|(\015)|(\012)/"," <br />", $Message);if($YourName=="" || $EmailAddress=="" || $Message=="" ){ --------------------------------------------------------------------------------------------- Here's what the Thank You page displayed upon submitting the email: just testing this page out to see if it works. this is a test line so is this line 123 123 123 123 --------------------------------------------------------------------------------------------- Then here's what I am getting via email - bear in mind it was a test email to myself via my enquiry page. Your Name: jack Business Name: Email Address: jack@jack.com Contact Number: 0403 123 456 Message: just testing this page out to see if it works. <br /> <br />this is a test line <br />so is this line <br /> <br />123 <br />123 <br /> <br />123 <br /> <br />123 Any ideas as to what might be causing those <br /> and   being inserted into the Message/textarea? All replies GREATLY APPRECIATED!! ![]() Thanks so much, Julian |
|
|||
|
ahh bugger... thanks for your reply
I was afraid someone was going to say that :P Im actually developing an enequiry page for a very good friend to whom I owe a favour to. But she hardly knows HTML code, for me it's not a prob to distinguish the HTML and plain text. So deinfately no other way to send the textarea text as Plain Text w./out html?? EDIT: I forgot to let you know that my friend is using outlook express, but when i view the emails in via my webmail no problems - as one would expect. But she doesn't use her webmail service!! arghhh, silly outllook express!! Cheers, Julian ![]() Last edited by praet123; 07-01-2005 at 09:13 AM. Reason: forgot some information |
|
|||
|
I have been using the same program and I noticed this too. Kind of annoying but I just left it alone. Another thing that has me stumped is that it won't accomodate multi selects in drop down lists. I thought I noticed this as a bug report in the program. When somebody multi selects I only get a response for the very last one selected.
does anybody know what this problem might be? |
|
|||
|
Yes, there is a way to stop the html from showing up. In your process.php file, you would need to take out the <br /> out of that code.
$Message=preg_replace("/(\015\012)|(\015)|(\012)/"," <br />", $Message);if($YourName=="" || $EmailAddress=="" || $Message=="" ){ So it would look like this. $Message=preg_replace("/(\015\012)|(\015)|(\012)/","", $Message);if($YourName=="" || $EmailAddress=="" || $Message=="" ){ Last edited by Joe; 03-25-2006 at 11:07 PM. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|