Formating form email
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Formating form email
Using the email processor (Form processing - Use built-in PHP form processor script - Message Edit) and putting in "edit" HTML and the source code, the email that arrives has all the words together as if it were a long line instead of respecting spaces, typography, etc. How is it solved? I want the email to arrive in a nice format.
You can test it here, use your own email address to receive the email: https://wfh.com.ar/IA-Test
You can test it here, use your own email address to receive the email: https://wfh.com.ar/IA-Test
Re: Formating form email
Maybe this will be helpful?
viewtopic.php?t=64476
viewtopic.php?t=64476
Re: Formating form email
I tried RTF and HTML with no success... please check the link I sent you
Source: https://wfh.com.ar/IA-Test/IA-humano-6.wbs
Source: https://wfh.com.ar/IA-Test/IA-humano-6.wbs
Re: Formating form email
The form seems to be correct.
Although, I recommend to only use one form per page.
What is the exact problem with the form?
Are you sure this is not an issue with your email application?
Although, I recommend to only use one form per page.
What is the exact problem with the form?
Are you sure this is not an issue with your email application?
Re: Formating form email
The problem is that if you complete the "Text" field with a text with a line feed or other text characteristics, what is sent by email and arrives to you is as if the text were all on one line. Please try it with a text like the one I am sending you below, and you will see how the email arrives, as if it were all one long line, without spaces.
EXAMPLE TO SEND:
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
EXAMPLE TO SEND:
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
This is a test.
- BaconFries
-
- Posts: 5933
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Formating form email
This is correct a text field or the (Editbox) is for singular line only it does not support carriage returns, line feed or breaks hence why it will show in one line. If you need to have the text break or use carriage return or line feed you will need to used the textarea object for thisThe problem is that if you complete the "Text" field with a text with a line feed or other text characteristics, what is sent by email and arrives to you is as if the text were all on one line
Re: Formating form email
An editbox only support one line, a TextArea supports multiple lines..
The built-in form script sends the input "AS IS". This means that a plain text input field will be send as one line.
If you wish to convert the input to multiple lines then you will have to do that yourself.
For example, by adding following code in Page HTML -> Start of Page:
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['InputName']))
{
$_POST['InputName'] = nl2br($_POST['InputName']);
}
?>
Note that this is not specific to WWB.
The built-in form script sends the input "AS IS". This means that a plain text input field will be send as one line.
If you wish to convert the input to multiple lines then you will have to do that yourself.
For example, by adding following code in Page HTML -> Start of Page:
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['InputName']))
{
$_POST['InputName'] = nl2br($_POST['InputName']);
}
?>
Note that this is not specific to WWB.
Re: Formating form email
Using "textarea" I get the same result. Please try it and you will see how the email arrives, all in one line.
Re: Formating form email
Did you try my suggestion?
Re: Formating form email
I did not try to modify the HTML code since you told me that textarea would work as I expect, but I tried it and it gives me the same result: everything in a single line.
Re: Formating form email
I did not say that, I said "The built-in form script sends the input "AS IS".I did not try to modify the HTML code since you told me that textarea would work as I expect,
Note that you do not have to edit the HTML code. you can add it to the Page HTML.
I have tried it and it works for me.
Please share the updated project, if you need further help.
Re: Formating form email
Sorry, but the link does not work for me.
Are you sure it is correct?
Are you sure it is correct?
Re: Formating form email
You have added the code in the wrong place.
If should be at the start of the page.
Also, you should update all variable to match the name of the input field.
And in the HTML message of the form there should not be a complete web page, only the body content!
If should be at the start of the page.
Also, you should update all variable to match the name of the input field.
Code: Select all
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['TextArea1']))
{
$_POST['TextArea1'] = nl2br($_POST['TextArea1']);
}
?>
Re: Formating form email
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['Texto']))
{
$_POST['Texto'] = nl2br($_POST['Texto']);
}
?>
Is at begining of the page. HTML corrected.
All the text arrives to email in one line. Please help! Please see wbs file
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['Texto']))
{
$_POST['Texto'] = nl2br($_POST['Texto']);
}
?>
Is at begining of the page. HTML corrected.
All the text arrives to email in one line. Please help! Please see wbs file
Re: Formating form email
PHP is case sensitive, so I think 'Texto' should be 'texto'
Re: Formating form email
Problem SOLVED!
Thank you very much!
Thank you very much!