Jump to content

advice


Ninjakreborn

Recommended Posts

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.
Link to comment
Share on other sites

[!--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 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.
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.