Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with if statement

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm trying to get this to work, but it isn't:

Code:
if ($the_email != "") {

if ($useform == "yes") { 
$email = "something";
} else {
$email = "something2";
}

} else { //for 1st if statement
$email = "something3, if \$the_email is null"; 
}
 
Hello.

Thank you for the reply.

I got it to work. It was just that I had the wrong variable in the wrong place.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top