passing data re: POST ( I read the sticky!)
Posted: Tue Feb 25, 2003 5:34 pm
I'm new at this. I want to have a user choose from a displayed list & pass
the choice to another page. I've tried session variables, $_POST. I can send the displayed array pointer I want (requestoption), but not the data in
the chosen row9identbook[]). Thanks for your patience:)
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
$identbook[]=$row["bookid"];
echo "<p><strong>".($i+1).". Title: ";
echo stripslashes($row["title"]);
echo "</strong><br>Author: ";
echo stripslashes($row["author"]);
echo "<br>Genre: ";
echo $row["genre"];
echo " Format: ";
echo $row["format"];
echo " Condition: ";
echo $row["condition"];
}
echo "</p>";
}
?>
<form action="confirmation.php" method="post" >
<font face="Arial, Helvetica, sans-serif"><strong>Request
Option #:</strong></font>
<input type="hidden" name="identbook[]">
<input type="text" name="requestoption" maxlength=4 size=4>
<input type=submit name="Confirm" value="Confirm">
</form>
the choice to another page. I've tried session variables, $_POST. I can send the displayed array pointer I want (requestoption), but not the data in
the chosen row9identbook[]). Thanks for your patience:)
for ($i=0; $i <$num_results; $i++)
{
$row = mysql_fetch_array($result);
$identbook[]=$row["bookid"];
echo "<p><strong>".($i+1).". Title: ";
echo stripslashes($row["title"]);
echo "</strong><br>Author: ";
echo stripslashes($row["author"]);
echo "<br>Genre: ";
echo $row["genre"];
echo " Format: ";
echo $row["format"];
echo " Condition: ";
echo $row["condition"];
}
echo "</p>";
}
?>
<form action="confirmation.php" method="post" >
<font face="Arial, Helvetica, sans-serif"><strong>Request
Option #:</strong></font>
<input type="hidden" name="identbook[]">
<input type="text" name="requestoption" maxlength=4 size=4>
<input type=submit name="Confirm" value="Confirm">
</form>