|
Posted by Gary L. Burnore on 10/17/07 01:25
On Wed, 17 Oct 2007 01:19:43 GMT, dba <dba@somewhere.org> wrote:
>Without giving a lot of script at this time, I am having a problem with
>php and form input type="hidden". Problem is that the hidden variable
>displays last line from database query.
>
>Some code.
>if ($field_name=="member_lname") {
>echo "<input type='radio' name='selection' value=' " .
>$result['member_lname']. ',' .$result['member_fname'] ." ' > " .
>$result['member_lname'] . ', ' . $result['member_fname'] . "<br />";
>echo "<input type='hidden' name='member_id' value=" .
>$result['member_id'] . " ' >" . $result['member_id'] . " />" ; }
This would return:
<input type='hidden' name='member_id' value=NNNN ' > NNNNN />
Bet that's not what you want.
Oh, and ; } is sloppy programming.
>
>produces this from form:
>Back, Joe 0026
>Clan, Bill 0025
>Dant, Norbert 0020
>Cleene, Nor 0013
>De Wa, Frank 0012
>Erick, B.C. 0006
>Evans, Mary 0027
>Far, Steve 0005
>
>after selection from form $_POST produces
>correct name "Dant, Norbert" but grabs last number "0005" and not "0020".
>
>Any help would be appreciated.
--
gburnore at DataBasix dot Com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
Official .sig, Accept no substitutes. | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ 0 1 7 2 3 / Ý³Þ 3 7 4 9 3 0 Û³
Black Helicopter Repair Services, Ltd.| Official Proof of Purchase
===========================================================================
Navigation:
[Reply to this message]
|