Ninjakreborn Posted April 26, 2006 Share Posted April 26, 2006 ok I finally made headway, can someone please explain this, I had a problem, someone here fixed my script, perfectly, I got into line feeds, I tried them on all the lines because of this.[a href=\"http://us3.php.net/manual/en/function.mail.php\" target=\"_blank\"]http://us3.php.net/manual/en/function.mail.php[/a]it said all lines under message should have a line feed at the end of each linewhen I did this it made the output in the email look extremly retarded, so what I did was I removed them and it went back to normal, I understand a little why the line feed worked like that now, ubt I don't understand why in the manual it says to insert a line feed after each one. Quote Link to comment Share on other sites More sharing options...
obsidian Posted April 26, 2006 Share Posted April 26, 2006 [!--quoteo(post=368872:date=Apr 26 2006, 11:36 AM:name=businessman332211)--][div class=\'quotetop\']QUOTE(businessman332211 @ Apr 26 2006, 11:36 AM) [snapback]368872[/snapback][/div][div class=\'quotemain\'][!--quotec--]ok I finally made headway, can someone please explain this, I had a problem, someone here fixed my script, perfectly, I got into line feeds, I tried them on all the lines because of this.[a href=\"http://us3.php.net/manual/en/function.mail.php\" target=\"_blank\"]http://us3.php.net/manual/en/function.mail.php[/a]it said all lines under message should have a line feed at the end of each linewhen I did this it made the output in the email look extremly retarded, so what I did was I removed them and it went back to normal, I understand a little why the line feed worked like that now, ubt I don't understand why in the manual it says to insert a line feed after each one.[/quote]two things to keep in mind: one is your desire to have your content look good. the second is that your content will look different in almost every email application known to man. what happens when a plain text email is run is that without setting up a word wrap, your message will never look the same for every user. now, in using "\r\n" for line breaks, you can force a word-wrap or formatting to be much closer to the original that you had in mind. i tend to try to force my line breaks as the manual says whenever writing any sort of paragraph text to keep a user from having to get an email with paragraphs that span the entire width of their screen without wrapping. Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted April 26, 2006 Author Share Posted April 26, 2006 is there any easier way to force checked boxes into an array and filter them into the message. Because someone came up with the perfect solution, but there is no way I can remember that and apply it to every situation.Age: $age\n";foreach ($_POST['choices'] as $choices)$message .= "Choices: $choices\n";$message .= "Location: $locationthat was cut directly into my code, which it worked, very miraculously it worked, I was very happy about that, but is there a way that I can rememebr, so when I make them again, I will nkow how to, whatever the situation when working with check boxes in a form. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.