hi all...please solve my simple problem...actually im making a php script for my web page and its not working....how would you make it if you have to enter two different words saperately in a text box and press submit using get method..and as a result, saperate page opens for saperate word....for example,if i enter YES in a text box and press submit, it opens page-1....then i go back ....and if i enter NO..then it opens page-2....
what would be the simplest php programming for that???
yes i can see that code but what code you put in if{} then(????) i mean code in php (if then) statement about page location???
<?php
if ($_GET['val']) {
if($_GET['val'] == "yes") {
//do this if it was yes(DO WHAT? WHAT IS THE CODE FOR MOVING TO PAGE-1)
} else {
//do this if it wasn't yes(DO WHAT? WHAT IS THE CODE FOR MOVING TO PAGE-2)
}
is there any command like (goto) in php??
Tags: