Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help and Spyware Removal Computer Help Forums Windows Startup Programs Database Virus, Spyware, and Malware Removal Guides Computer Tutorials Uninstall Database File Database Computer Glossary Computer Resources
 

Welcome Guest ( Log In | Click here to Register a free account now! )



Register a free account to unlock additional features at BleepingComputer.com
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.
Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Using a form and mailto
Wolfy87
post May 25 2009, 05:35 AM
Post #1


Senior Member
****

Group: Members
Posts: 357
Joined: 25-July 08
Member No.: 225,183



I know how to send a forms in puted text to my e-mail but it all comes out on one line, I am using <br /> at the end of each line so what else can i do to put them all on separate lines

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.
Go to the top of the page
 
+Quote Post
KamakaZ
post 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.
Go to the top of the page
 
+Quote Post
Wolfy87
post 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.
Go to the top of the page
 
+Quote Post
MadDawg
post 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



QUOTE(Wolfy87 @ May 25 2009, 08:38 AM) *
\n rings a bell somwhere

"\n" moves to the next line in C++, Java, and likely other languages. whistling.gif


--------------------


Go to the top of the page
 
+Quote Post
KamakaZ
post 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.
Go to the top of the page
 
+Quote Post
Wolfy87
post 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.
Go to the top of the page
 
+Quote Post
groovicus
post 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


--------------------
Never Argue With Stupid People



Microsoft Senior Student Partner
Go to the top of the page
 
+Quote Post
KamakaZ
post 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.
Go to the top of the page
 
+Quote Post
Wolfy87
post 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.
Go to the top of the page
 
+Quote Post
KamakaZ
post 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.
Go to the top of the page
 
+Quote Post
groovicus
post 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.


--------------------
Never Argue With Stupid People



Microsoft Senior Student Partner
Go to the top of the page
 
+Quote Post
Wolfy87
post 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.
Go to the top of the page
 
+Quote Post
groovicus
post 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?


--------------------
Never Argue With Stupid People



Microsoft Senior Student Partner
Go to the top of the page
 
+Quote Post
Wolfy87
post 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.
Go to the top of the page
 
+Quote Post
groovicus
post 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.


--------------------
Never Argue With Stupid People



Microsoft Senior Student Partner
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 21st November 2009 - 08:07 PM


Advertise   |   About Us   |   Terms of Use   |   Privacy Policy   |   Contact Us   |   Site Map   |   Chat   |   Tutorials   |   Uninstall List
Discussion Forums   |   The Computer Glossary   |   Resources   |   RSS Feeds   |   Startups   |   The File Database   |   Virus Removal Guides

© 2003-2009 All Rights Reserved Bleeping Computer LLC.