Hi,
I'm passing $Goal from another form. I'm trying to see if the variable has a value of "$". If it does I want to make that value a "0". Otherwise accept the value in $Goal. The script below doesn't work. Any help would be great.
$Goal=$_POST['Goal'];
if ($Goal == "$") {
$Goal ==$_POST['0'];
} else {
$Goal==$_POST['Goal'];
}
I'm passing $Goal from another form. I'm trying to see if the variable has a value of "$". If it does I want to make that value a "0". Otherwise accept the value in $Goal. The script below doesn't work. Any help would be great.
$Goal=$_POST['Goal'];
if ($Goal == "$") {
$Goal ==$_POST['0'];
} else {
$Goal==$_POST['Goal'];
}