How do i write a php code that emails an evaluation to me if Q8 is a Yes.
I tried this But it didn't work, any help please I'm totally new to this
if ($Q8) == Yes)
{
$sendMailTo .= "1234@yahoo.com";
}
If statement in Php code
Moderator: General Moderators
-
mickeyunderscore
- Forum Contributor
- Posts: 129
- Joined: Sat Jan 31, 2009 9:00 am
- Location: UK
Re: If statement in Php code
Code: Select all
if ($Q8 == 'Yes')
{
$sendMailTo .= "1234@yahoo.com";
}- Skoalbasher
- Forum Contributor
- Posts: 147
- Joined: Thu Feb 07, 2008 8:09 pm
Re: If statement in Php code
Even faster, make Q8 a bool
Lol. It's a LOT less code.. 
Code: Select all
if ($Q8)
{
$sendMailTo .= "1234@yahoo.com";
}