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 <[EMAIL PROTECTED]>
To: Bastien Koert <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED],  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 mind

Bastien


From: "Bastien Koert" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], 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);

bastien

From: Mark Fellowes <[EMAIL PROTECTED]>
Reply-To: Mark Fellowes <[EMAIL PROTECTED]>
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



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to