Jump to content

mafkeesxxx

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mafkeesxxx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [quote author=kenrbnsn link=topic=109934.msg443693#msg443693 date=1159538318] Find this line in your code: [code]<?php $MailBody =  $TemplateData; ?>[/code] replace it with: [code]<?php $MailBody =  nl2br($TemplateData); ?>[/code] Ken [/quote] Thanks dude, Just what i needeed! It works  ;D
  2. @HuggieBear Thanks, But i don't know how to apply it to the script i posted above.
  3. [b]Ok, still doens't work, this is my mailscript. Hope you can help me now!  :)[/b] [code][/code]
  4. Ok, Thanks for all your help, but probably is a bit more complicated. I have a mail form wich is HTML with mail.php included. This results in a HTML template that is send via mail and recognises the form fields like this {Comments} Now i want to apply the nl2br to the {Comments} Damn, LOL  ;D ??? Hope you understand  :-\
  5. The comment field will be send via e-mail. So i want to apply nl2br to the field, otherwise i recieve the mailed comment field without enters <br>
  6. Hello! I have made a form with a comment field. Now i want to apply the [b]nl2br[/b] string to my comment field. I've tried some things, but didn't work. How can i do this? This is my HTML: <textarea name="Comments" cols="60" rows="15"></textarea> Thanks in advance.
  7. Hi, I'm trying to make a form and i have this code if($_POST['[b]A'[/b]]==1) { $MailToArray[] = "[b]A[/b]@blaat.com"; } This works fine, but now i have more values then A, and i want to combine these as they result in another e-mail address. Something like this. But ofcourse this doens't work, because php doesn't understand my [b]and[/b] command. if($_POST['[b]A[/b]']==1) and ($_POST['[b]B[/b]']==1) { $MailToArray[] = "[b]AB[/b]@blaat.com"; } Any Ideas how to make this work?
  8. [quote author=Orio link=topic=107334.msg430460#msg430460 date=1157710899] Sure, using arrays :) Here's an example: [code]<?php $usernames=array("User1","User2","User3"); $replacement=array("Alpha","Bravo","Charlie"); $user=str_replace($usernames,$replacement,$$user); ?>[/code] Orio. [/quote] GREAT!!! Thanks dude. This was exactly what i needed!
  9. Hi! I have a string here: $_SERVER['LOGON_USER'] Now, this displays the "current logged on user" Now i want to translate these usernames into realnames. Something like: username1 = Alpha username2 = Bravo username3 = Charlie I can use str_replace, but then it works only for one username, is it possible to make a code to do this for more then one username?
  10. [quote author=wildteen88 link=topic=106839.msg427719#msg427719 date=1157376173] Looks like you pass the $sThanksmail  variable through htmlentities/htmlspecialchars function. Or your own function which converts any html chars into their html entity equivalent. [/quote] GREAT !!! It works! I deleted the [b]htmlspecialchars[/b] function Thanks !
  11. [quote author=AndyB link=topic=106839.msg427711#msg427711 date=1157374858] careful with the " character so the php interpreter doesn't get confused about where a string ends.  You can either do it like this: [code]$sThanksmail = "<font color='ff0000'>Thanks for your mail.</font>";[/code] or this: [code]$sThanksmail = "<font color=\"ff0000\">Thanks for your mail.</font>";[/code] [/quote] Ok, thank you very much, now i recieve an e-mail with: [b]<font color='ff0000'>Thanks for your mail.</font> [/b] When i look in de source: [b]&lt;font color='ff0000'&gt;Thanks for your mail.&lt;/font&gt;[/b] Any Ideas? :-)
  12. Hi, I'm a total newbee here. My question is. How can i combine PHP and HTML in a mailform. I have this code: [b]$sThanksmail = "Thanks for you mail.";[/b] Now everything works fine, but i would like to put some HTML in the mail the user will recieve, something like a color. But if i try this: [b]$sThanksmail = "<font color="ff0000">Thanks for you mail.</font>";[/b] It doens't work. Can anyone tell me what i have to do to make this work? Thanks in advance.
×
×
  • 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.