RE: [PHP-DB] Re: Posting Data to MySQL
| From: | Galbreath, Mark A | Date: | Thu, 24 Jun 2004 14:14:45 +0000 |
| Subject: | RE: [PHP-DB] Re: Posting Data to MySQL | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-34910@lists.php.net to get a copy of this message | ||
Doesn't matter how many fields are on a form; they are returned as an array
of strings in the request object. Just iterate through the array and update
the corresponding database fields.
Mark
-----Original Message-----
From: Torsten Roehr [mailto:roehr@zilleon.com]
Sent: Thursday, June 24, 2004 10:02 AM
To: php-db@lists.php.net
Subject: [PHP-DB] Re: Posting Data to MySQL
"Tom Chubb" <tom@ps-hosting.co.uk> wrote in message
news:JPEMIHJHEEGAJDFPLGHIMEJIEMAA.tom@ps-hosting.co.uk...
> I am trying to design a form that posts the data to a DB, but being new to
> PHP/MySQL, it takes me ages to hand write the code and I'm sure there must
> be an easier way to do it?
> My form has 100 fields using 20 rows and 5 columns and it's taking me ages
> to write the code for it.
> Can anyone advise how they code large forms like that and if you know of
any
> software to make it easier?
> I've searched Google for hours and checked loads of Database scripts on
> sites like Hotscripts, but can't find anything.
Hi Tom,
that's a lot of information to display on one page. Can you split it up into
several forms? Of course this would not mean fewer work but maybe make it a
bit mor concise.
Regards, Torsten Roehr
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php