RE: [PHP] How to $_POST from a grid

2004-11-25 Thread Graham Cossey
[snip] I'm doing my development in Dreamweaver though the code is basic. To get to the grid I'm passing over the userID . Then basic a select statement in the results grid with a while loop the returns all the records related to the userID. It's just odd - because in Dreamweaver I build

RE: [PHP] How to $_POST from a grid

2004-11-25 Thread Stuart Felenstein
--- Graham Cossey [EMAIL PROTECTED] wrote: Hi Stuart Have you looked at the HTML generated by your PHP code? Using view source you'll see what values each of your 3 forms contains and therefore what will be submitted in the POST. My guess from one of your previous posts is that all 3

[PHP] How to $_POST from a grid

2004-11-24 Thread Stuart Felenstein
I have set up a record grid, where the user may see a list of their records. Repeat region, etc. There is a button next to each record the user may click to allow them to update the particular record. This all worked fine with $_GET where I did a link on the button to send the PrimaryID over.

RE: [PHP] How to $_POST from a grid

2004-11-24 Thread Jay Blanchard
[snip] I have set up a record grid, where the user may see a list of their records. Repeat region, etc. There is a button next to each record the user may click to allow them to update the particular record. This all worked fine with $_GET where I did a link on the button to send the PrimaryID

Re: [PHP] How to $_POST from a grid

2004-11-24 Thread Jason Wong
On Thursday 25 November 2004 00:28, Stuart Felenstein wrote: Since the grid only is echos of the recordset fields, how does it know the correct PrimaryID to send when I hit the submit button. I'm thinking this is perhaps my problem. Hidden fields, or give the submit button a name that's

Re: [PHP] How to $_POST from a grid

2004-11-24 Thread Stuart Felenstein
--- Jason Wong [EMAIL PROTECTED] wrote: Since the grid only is echos of the recordset fields, how does it know the correct PrimaryID to send when I hit the submit button. I'm thinking this is perhaps my problem. Hidden fields, or give the submit button a name that's based on the

RE: [PHP] How to $_POST from a grid

2004-11-24 Thread Stuart Felenstein
--- Jay Blanchard [EMAIL PROTECTED] 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

Re: [PHP] How to $_POST from a grid

2004-11-24 Thread David Bevan
On November 24, 2004 11:28, Stuart Felenstein wrote: I have set up a record grid, where the user may see a list of their records. Repeat region, etc. There is a button next to each record the user may click to allow them to update the particular record. snip / Since the grid only is echos of

Re: [PHP] How to $_POST from a grid

2004-11-24 Thread Bruno B B Magalhães
Hy David, well here is my code... I use smarty templating system for parsing values, but should give you a very clear idea of what must to be done. == MODULES LISTING TEMPLATE == {include file=$controllerTemplates/head.tpl} table width=100%

Re: [PHP] How to $_POST from a grid

2004-11-24 Thread David Bevan
On November 24, 2004 16:35, Stuart Felenstein wrote: To get to the grid I'm passing over the userID . Then basic a select statement in the results grid with a while loop the returns all the records related to the userID. It's just odd - because in Dreamweaver I build the grid with one

Re: [PHP] How to $_POST from a grid

2004-11-24 Thread Stuart Felenstein
--- David Bevan [EMAIL PROTECTED] wrote: Would it be possible to see the code that generates the grid? Both the php and HTML. -- I'm preferring not to post the code solely becasue I don't want to expose all my database fields here. Of course this may cost me the help I need. I'm doing