I’m trying to do the following and wonder if somebody could possibly help?
I’m populating a form with several rows of values populated out of an MySQL DB, as follows:
<?php
echo '<FORM ACTION="GoAndDoThis.php" METHOD="POST">';
echo '<SELECT SIZE=18 WIDTH=50 MULTIPLE NAME="pd">';
while ($row = mysqli_fetch_array($sql_result, MYSQLI_NUM))
{
echo '<OPTION VALUE='.$row[0].'>'.$row[0].' - '.$row[1];
}
echo '</SELECT>';
echo '<BR><BR>';
echo '<INPUT TYPE="SUBMIT" VALUE="Select Row">';
echo chr(32).'<b>... click to see more information</b>';
echo '</FORM>';
?>
… when I select a row and hit the submit value, the php routine “GoAndDoThis.php” is called/executed but the information I need (just grid of related data) appears on a new page.
I would like this information to appear directly underneath the form instead of going off to a new page.
I think it may involve JavaScript but not sure.
Appreciate some help with this if at all possible.