Re: Generating forms and form elements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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@xxxxxxxxx>
To: Bastien Koert <bastien_k@xxxxxxxxxxx>
CC: Zanoni@xxxxxxxxx,  php-db@xxxxxxxxxxxxx
Subject: Re:  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" <bastien_k@xxxxxxxxxxx>
To: Zanoni@xxxxxxxxx, php-db@xxxxxxxxxxxxx
Subject: RE:  Generating forms and form elements
Date: Tue, 20 Jun 2006 16:44:22 -0400


eval$code);

bastien

From: Mark Fellowes <Zanoni@xxxxxxxxx>
Reply-To: Mark Fellowes <Zanoni@xxxxxxxxx>
To: php-db@xxxxxxxxxxxxx
Subject:  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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux