i have the following php form which is passed back thorugh the same php page and carries out different tasks depending on what is selected in the form.
<form method="post" action"<?php echo $PHP_SELF?>">
<input type="text" name="id" value="<?php echo $id ?>">
<input type="submit" name="selectid" value="go">
<select name="select">
<option value=selected>Select</option>
<option value="<?php echo $all ?>">List all</option>
<option value="<?php echo $type ?>">List sections</option>
</select>
</form>
if ($id) {do this
}
elseif ($select) {do this depending on which option is selected
}
part 1 works fine with no problems, part 2 nearly works, how can i specify to take into account which option was selected ??
it works if they choose a option but at the moment i can't get it to defiatiate between the options ie the 'type' and 'all' ??
thanks