hey,
i was wondering how i could you something like
<?
if ($_POST['submit']) {
$num = count($_POST['select']);
for ($i=0;$i<$num;$i++) {
$i2 = $i+1;
echo $i2.". ".$_POST['select'][$i]."<br>";
}
}
else {
?>
<form method="POST" action="<?=$_SERVER['PHP_SELF']?>">
<p>
<select size="4" name="select[]" multiple>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select></p>
<p><input type="submit" value="Submit" name="submit"><input type="reset" value="Reset" name="B2"></p>
</form>
<?
}
?>
inside a table field, and then use a query to output it, showing the code as if it were just on a seperate page
thanks