Re: Generating forms and form elements
| From: | Bastien Koert | Date: | Tue, 20 Jun 2006 21:11:17 +0000 |
| Subject: | Re: Generating forms and form elements | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-42104@lists.php.net to get a copy of this message | ||
Not commenting on the appropriateness or security of the eval function. Merely offering a possible path. It is up to the OP to decide if that solution is the correct one.
B
From: Stut <stuttle@gmail.com> To: Bastien Koert <bastien_k@hotmail.com> CC: Zanoni@goowy.com, php-db@lists.php.net Subject: Re: [PHP-DB] Generating forms and form elements Date: Tue, 20 Jun 2006 22:09:06 +0100 Bastien Koert wrote:whoops eval ($code);Someone relatively famous[1] once said "If eval is the answer then you're asking the wrong question." The eval function is dangerous. Extremely dangerous. From every point of view there is. If there's another way to do what you're doing (and there almost always is), do that instead. In this case a description of the form would be a better thing to store in the DB rather than the code to generate it. -Stut [1] Rasmus, a while back, can't recall when, but it stuck in my mindBastien-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phpFrom: "Bastien Koert" <bastien_k@hotmail.com> To: Zanoni@goowy.com, php-db@lists.php.net Subject: RE: [PHP-DB] Generating forms and form elements Date: Tue, 20 Jun 2006 16:44:22 -0400 eval$code); bastienFrom: Mark Fellowes <Zanoni@goowy.com> Reply-To: Mark Fellowes <Zanoni@goowy.com> To: php-db@lists.php.net Subject: [PHP-DB] Generating forms and form elements Date: Tue, 20 Jun 2006 15:37:10 GMT Hi, Hitting up the list for maybe a decent link(s) or pointers. I need to figure out how to generate forms and form elements from php code inside database tables. Hope this makes sense. It's not a complete picture of what I need to do but the first step I'll need to take. TIA Mark-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php