Jump to content


Photo

advice


  • Please log in to reply
2 replies to this topic

#1 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 26 April 2006 - 03:36 PM

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 line
when 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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.


#2 obsidian

obsidian
  • Staff Alumni
  • Advanced Member
  • 3,202 posts
  • LocationSeattle, WA

Posted 26 April 2006 - 03:43 PM

[!--quoteo(post=368872:date=Apr 26 2006, 11:36 AM:name=businessman332211)--][div class=\'quotetop\']QUOTE(businessman332211 @ Apr 26 2006, 11:36 AM) View Post[/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 line
when 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.
You can't win, you can't lose, you can't break even... you can't even get out of the game.

<?php
while (count($life->getQuestions()) > 0)
{   $life->study(); } ?>
  LINKS: PHP: Manual MySQL: Manual PostgreSQL: Manual (X)HTML: Validate It! CSS: A List Apart | IE bug fixes | Zen Garden | Validate It! JavaScript: Reference Cards RegEx: Everything RegEx

#3 Ninjakreborn

Ninjakreborn
  • Members
  • PipPipPip
  • Information Technology Specialist
  • 3,922 posts
  • Age:33

Posted 26 April 2006 - 03:50 PM

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: $location
that 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.

------

Business Website: http://www.infotechnologist.biz

Personal Website: http://www.joyelpuryear.com

Blog Site: http://www.realmofwriting.com
Services: Web development, application development, mobile development, and custom development. All services listed on my website.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users