Welcome Guest ( Log In | Click here to Register a free account now! )
Welcome to Bleeping Computer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.![]() ![]() |
May 25 2009, 05:35 AM
Post
#1
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Members Posts: 357 Joined: 25-July 08 Member No.: 225,183 |
Thanks, Wolfy87. -------------------- C++ | C | xhtml | CSS | JavaScript | jQuery | PHP | MySql | Visual Basic | Action Script 3.0 / Flex I like to keep my options open. Click here for my first physics engine. |
|
|
|
May 25 2009, 08:19 AM
Post
#2
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: HJT Sophomore Classmen Posts: 440 Joined: 26-August 08 From: Victoria Member No.: 233,642 |
from what i can remember i think it is a \n or a \r i honestly can't remember.
i think it will also depend on whether you are using an email client that views the emails as text or html. Just throwing a few ideas around... -------------------- If I am helping you and don't reply in 24 hours please send me a PM
Currently in training... There's no place like 127.0.0.1 There are 10 types of people in the world, those that can read binary, and those who can't. |
|
|
|
May 25 2009, 08:38 AM
Post
#3
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Members Posts: 357 Joined: 25-July 08 Member No.: 225,183 |
Right, I will try that in a sec but is that not used in the Ubuntu/Linux terminal? oh...maby im thinking of c...\n rings a bell somwhere
-------------------- C++ | C | xhtml | CSS | JavaScript | jQuery | PHP | MySql | Visual Basic | Action Script 3.0 / Flex I like to keep my options open. Click here for my first physics engine. |
|
|
|
May 25 2009, 01:35 PM
Post
#4
|
|
|
Forum Regular ![]() ![]() ![]() Group: Members Posts: 221 Joined: 9-July 07 From: Houston, TX Member No.: 142,377 |
\n rings a bell somwhere "\n" moves to the next line in C++, Java, and likely other languages. -------------------- ![]() ![]() ![]() |
|
|
|
May 26 2009, 10:25 PM
Post
#5
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: HJT Sophomore Classmen Posts: 440 Joined: 26-August 08 From: Victoria Member No.: 233,642 |
how'd you go wolfy?
-------------------- If I am helping you and don't reply in 24 hours please send me a PM
Currently in training... There's no place like 127.0.0.1 There are 10 types of people in the world, those that can read binary, and those who can't. |
|
|
|
May 29 2009, 02:50 PM
Post
#6
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Members Posts: 357 Joined: 25-July 08 Member No.: 225,183 |
Well I tried this:
CODE <form action="mailto:info@flowwebdesign.co.uk" method="post"> <input type="text" name="username\n"> <input type="text" name="password"> <input type="submit" value="submit"> </form> Which sort of did nothing but add on the charicter key, then i tried this: CODE <form action="mailto:info@flowwebdesign.co.uk" method="post"> <input type="text" name="username">\n <input type="text" name="password"> <input type="submit" value="submit"> </form> Which also just added on the charicter key, I then tried it with \r for both ways but it still didnt work. I'm not quite sure what is going on here, I suppose i am putting it in the wrong place. Thanks, Wolfy87. -------------------- C++ | C | xhtml | CSS | JavaScript | jQuery | PHP | MySql | Visual Basic | Action Script 3.0 / Flex I like to keep my options open. Click here for my first physics engine. |
|
|
|
May 29 2009, 04:17 PM
Post
#7
|
|
![]() Hail Groovicus! ![]() ![]() ![]() ![]() ![]() ![]() Group: Site Admin Posts: 7,960 Joined: 5-June 04 From: Centerville, SD Member No.: 689 |
The line break has to be embedded in the email message directly, like this:
This is a \nline of text -------------------- |
|
|
|
May 29 2009, 08:39 PM
Post
#8
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: HJT Sophomore Classmen Posts: 440 Joined: 26-August 08 From: Victoria Member No.: 233,642 |
aha, so it was \n
-------------------- If I am helping you and don't reply in 24 hours please send me a PM
Currently in training... There's no place like 127.0.0.1 There are 10 types of people in the world, those that can read binary, and those who can't. |
|
|
|
Jun 1 2009, 12:35 AM
Post
#9
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Members Posts: 357 Joined: 25-July 08 Member No.: 225,183 |
But it's not exactly text, they are text boxes that I want to display there contents on seperate lines so it is readable so where dose the \n go on it?
This post has been edited by Wolfy87: Jun 1 2009, 12:36 AM -------------------- C++ | C | xhtml | CSS | JavaScript | jQuery | PHP | MySql | Visual Basic | Action Script 3.0 / Flex I like to keep my options open. Click here for my first physics engine. |
|
|
|
Jun 1 2009, 12:41 AM
Post
#10
|
|
|
Senior Member ![]() ![]() ![]() ![]() Group: HJT Sophomore Classmen Posts: 440 Joined: 26-August 08 From: Victoria Member No.: 233,642 |
do you have access to an SMTP server?
-------------------- If I am helping you and don't reply in 24 hours please send me a PM
Currently in training... There's no place like 127.0.0.1 There are 10 types of people in the world, those that can read binary, and those who can't. |
|
|
|
Jun 1 2009, 06:50 AM
Post
#11
|
|
![]() Hail Groovicus! ![]() ![]() ![]() ![]() ![]() ![]() Group: Site Admin Posts: 7,960 Joined: 5-June 04 From: Centerville, SD Member No.: 689 |
QUOTE But it's not exactly text, they are text boxes that I want to display there contents on seperate lines so it is readable so where dose the \n go on it? What is in those text boxes? Do you know what the \n does? Did you try writing a test program that uses it in a line of text to see what it does? String manipulation is the most basic of all programming functions tasks. -------------------- |
|
|
|
Jun 1 2009, 02:59 PM
Post
#12
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Members Posts: 357 Joined: 25-July 08 Member No.: 225,183 |
Text is in the text boxes, The \n in theory should do something along the lines of <br />, I have tested this but as my question stated
QUOTE so where dose the \n go on it? And I do know all about string manipulation (do not take that literally, I do not know all of it obviously). All I wish to know is where to insert the \n in my "<form..." code to make it separate the text boxes text. Thank you. -------------------- C++ | C | xhtml | CSS | JavaScript | jQuery | PHP | MySql | Visual Basic | Action Script 3.0 / Flex I like to keep my options open. Click here for my first physics engine. |
|
|
|
Jun 1 2009, 04:10 PM
Post
#13
|
|
![]() Hail Groovicus! ![]() ![]() ![]() ![]() ![]() ![]() Group: Site Admin Posts: 7,960 Joined: 5-June 04 From: Centerville, SD Member No.: 689 |
The new line character is not HTML. You can't use it in HTML. It is text.
How are you trying to send email? -------------------- |
|
|
|
Jun 1 2009, 05:17 PM
Post
#14
|
|
![]() Senior Member ![]() ![]() ![]() ![]() Group: Members Posts: 357 Joined: 25-July 08 Member No.: 225,183 |
Yes I see that \n cannot be used in HTML, I am sending the email with a form and it's action being a mailto link and it's method being post, this all work fine, it brings up outlook etc and sends to me (I am currently learning some php that will send it without outlook), the text that has been entered in the text boxes also sends fine. My only problem is how to display them on seperate lines and if I cannot put the \n in the html then where will it go.
Thankyou for your time, Wolfy87. -------------------- C++ | C | xhtml | CSS | JavaScript | jQuery | PHP | MySql | Visual Basic | Action Script 3.0 / Flex I like to keep my options open. Click here for my first physics engine. |
|
|
|
Jun 1 2009, 06:20 PM
Post
#15
|
|
![]() Hail Groovicus! ![]() ![]() ![]() ![]() ![]() ![]() Group: Site Admin Posts: 7,960 Joined: 5-June 04 From: Centerville, SD Member No.: 689 |
Doing it that way, you can not put in line breaks. That is the limitation of the method you are trying to use. It has nothing to do with how you are email, but rather the program that is being called by the mailto tag.
-------------------- |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 21st November 2009 - 08:07 PM |