RE: How to $_POST from a grid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--- Jay Blanchard
<jay.blanchard@xxxxxxxxxxxxxxxxxxxxx> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux