Did you set up a mail server?
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
and doesn't use TRUE and FALSE definitions ( $send = "no"!? What kind of rubbish is that? )
I agree. That's a poor way to set flags around your code. I'd see if there was a way to manipulate if statements rather than flagging like this. At the very least, don't use "yes" or "no," use 1 or 0.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
or prefeably, true or false. Then, it's just a matter of
if( $send )
{
// send
}
I never liked checking for true like this. For one, if you have register_globals=ON, you can easily define it through the URL. And second, if you have a lot of code, you can accidently define it before you check accidently.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
only idiots have register globals enabled. And obviously it's best to be content specfic, eg $send_mail or whatever.
You'd be surprised how many idiots there are in the world.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18