Mark Colvin wrote:
> I have a php script that executes a query and depending on the results
> builds a section of a table for each record returned in the query. Each
> section has some fields and three buttons. My problem is this. When I want
> to change the data in one particular section, how can I submit the form
> passing only the data for that particular section?
> 

1. Use a separate form for each field.
2. Use different names in buttons:

<INPUT TYPE=SUBMIT NAME=field1 VALUE="Submit">
<INPUT TYPE=SUBMIT NAME=field2 VALUE="Submit">
<INPUT TYPE=SUBMIT NAME=field3 VALUE="Submit">

3. Use a single form, but fill all it's fields with
their previous values SELECTing them from the
database before displaying the form.


-- 
For technical support contracts, visit https://order.mysql.com/
    __  ___     ___ ____  __
   /  |/  /_ __/ __/ __ \/ /    Mr. Alexander Barkov <[EMAIL PROTECTED]>
  / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Full-Time Developer
/_/  /_/\_, /___/\___\_\___/   Izhevsk, Russia
        <___/   www.mysql.com   +7-902-856-80-21


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to