praet123
07-01-2005, 04:15 PM
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?
The html doesnt show up in my webmail service, but shows up in outlook express. This is actually a HUGE favour for a good friend of mine, and she doesnt understand HTML and dislikes webmail, and prefers outlook express :(
All replies GREATLY APPRECIATED!! :)
Thanks so much,
Julian
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?
The html doesnt show up in my webmail service, but shows up in outlook express. This is actually a HUGE favour for a good friend of mine, and she doesnt understand HTML and dislikes webmail, and prefers outlook express :(
All replies GREATLY APPRECIATED!! :)
Thanks so much,
Julian