mivec
03-22-2004, 06:54 PM
hi all...u see...i was doing an if-else so that i can different stuff in difference conditions. here is the code for the ifelse:
<? if (($_POST["selNameFirst"] == 'Bride') && ($_POST["selNametype"] == 'First Names Only')) {
statements
.
.
.
}
elseif (($_POST["selNameFirst"] == 'Groom') && ($_POST["selNametype"] == 'First and Last Name')) {
statements.
.
.
.
}
else{
echo("error");
}
i know it's long...but if someone can help me in this i am really greatfull. the problem here is that whenever i click the send button from the previous page, the if and elseif statements kjust doesn't seem to be processed and hence the it goes to the 'echo("error");' part. is my syntax wrong?i have been starring at this prob since 2 hours ago.pls help.thank you thank you
<? if (($_POST["selNameFirst"] == 'Bride') && ($_POST["selNametype"] == 'First Names Only')) {
statements
.
.
.
}
elseif (($_POST["selNameFirst"] == 'Groom') && ($_POST["selNametype"] == 'First and Last Name')) {
statements.
.
.
.
}
else{
echo("error");
}
i know it's long...but if someone can help me in this i am really greatfull. the problem here is that whenever i click the send button from the previous page, the if and elseif statements kjust doesn't seem to be processed and hence the it goes to the 'echo("error");' part. is my syntax wrong?i have been starring at this prob since 2 hours ago.pls help.thank you thank you