Hi,
The script described below receive the following input (output in the browser address windows: http://localhost/select1.php?nam=gate&num=+&desginer=+)
Script:
<html>
<head>
<title>Results</title>
</head>
<body>
<?php
if (($GET['nam'] != "+") && ($GET['num'] == "+") && ($GET['designer'] == "+")) {
$d=$GET['nam'];
$sen="name='$d'";
}
if (($GET['nam'] == "+") && ($GET['num'] != '+') && ($GET['designer'] == '+')) {
$d=$GET['num'];
$sen="no='$d'";
}
if (($GET['nam'] == "+") && ($GET['num'] == '+') && ($GET['designer'] != '+')) {
$d=$GET['designer'];
$sen="design='$d'";
}
print $sen;
?>
</body>
</html>
After running the script it seems to be that I have no output, is it a problem with the if statement? And how can I fix it.
Thanks.