RE: [PHP] How to $_POST from a grid
| From: | Stuart Felenstein | Date: | Wed, 24 Nov 2004 17:36:37 +0000 |
| Subject: | RE: [PHP] How to $_POST from a grid | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-202772@lists.php.net to get a copy of this message | ||
--- Jay Blanchard
<jay.blanchard@niicommunications.com> wrote:
> Without a lick of code or a pointer to the grid on
> the web we would be
> hard pressed to offer solutions or advice. Arrays
> maybe? Hidden form
> fields?
>
Jay, fine - I thought I could spare you the code but
address what the problem might be.
In the grid, I am posting via $_POST the PrimaryID
via:
<input name="JID" type="hidden" id="JID" value="<?php
echo $rsVJ->Fields('JID'); ?>">
Then in the update form:
if (isset($_POST['JID'])) {
$PJID = $_POST['JID'];
$query .= sprintf("SELECT * FROM vj_prm WHERE JID =
$PJID
I hope this is a better story ;)
Stuart