Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Help - Including "if" statements into email $message

Started 1 month, 2 weeks ago by ghost2012
How do I include and "if" statement into an email $message. Example PHP Code: <?php $order01 = $_POST [ "order01" ]; $order02 = $_POST [ "order02" ]; $order03 = $_POST [ "order03" ]; if ( $order01 > 0 ) { echo " amount of $order01 <br />" ; } if ( $order02 > 0 ) { echo " amount of $order02 <br />"...
Site: PHPBuilder.com  PHPBuilder.com - site profile
Forum: General Help  General Help - forum profile
Total authors: 2 authors
Total thread posts: 7 posts
Thread activity: no new posts during last week
Domain info for: phpbuilder.com

Other posts in this thread:

dagon replied 1 month, 2 weeks ago
instead of echo, assign the value to a variable, and send that with in the email.

ghost2012 replied 1 month, 2 weeks ago
i only want sent what is selected not "all" the variables i have ask this question in many forms and it seems no one is smart enough to figure it out and i'm new to this.

dagon replied 1 month, 2 weeks ago
Quote: Originally Posted by ghost2012 i only want sent what is selected not "all" the variables i have ask this question in many forms and it seems no one is smart enough to figure it out and i'm new to this. that's probably because your question is poorly phrased, but i will try again. PHP Code:...

dagon replied 1 month, 2 weeks ago
your doing your self no favours posting this to at least 7 different forums, most have given you the same answer as me. Please try and understand what's been posted before you start on 8+

ghost2012 replied 1 month, 2 weeks ago
Dagon sorry but i've tried your code your way and different other ways but to no effect does it work so let me help you out with what does work: PHP Code: $order01 = & $_POST [ "order01" ]; $order02 = & $_POST [ "order02" ]; $order03 = & $_POST [ "order03" ]; $aOrder = array(); if ( $order01 > 0 ) { $aOrder [] = " amount of ...

dagon replied 1 month, 2 weeks ago
Excellent, I'm glad you found a solution that works for you. Please mark the therad as resolved using the Thread Tools above

 

Top contributing authors

Name
Posts
dagon
4
user's latest post:
Help - Including "if"...
Published (2009-11-04 14:27:00)
Excellent, I'm glad you found a solution that works for you. Please mark the therad as resolved using the Thread Tools above
ghost2012
3
user's latest post:
Help - Including "if"...
Published (2009-11-04 13:39:00)
Dagon sorry but i've tried your code your way and different other ways but to no effect does it work so let me help you out with what does work: PHP Code: $order01 = &amp; $_POST &#91; "order01" &#93;; $order02 = &amp; $_POST &#91; "order02" &#93;; $order03 = &amp; $_POST &#91; "order03" &#93;;&nbsp;&nbsp; $aOrder = array(); if ( $order01 &gt; 0 ) {...

Related threads on "PHPBuilder.com":

Related threads on other sites:

Thread profile page for "Help - Including "if" statements into email $message" on http://www.phpbuilder.com. This report page is a snippet summary view from a single thread "Help - Including "if" statements into email $message", located on the Message Board at http://www.phpbuilder.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity