Generating forms and form elements
Generating forms and form elements
am 20.06.2006 17:37:10 von Mark Fellowes
------=_EDNP_0000_0647b4da-ada9-409c-a1ca-faccd089f427
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
ï»=BFHi, Hitting up the list for maybe a decent link(s) or pointers.=
=0AI 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 complet=
e picture of what I need to do but the first step I'll need to take.=0A=
=0ATIA=0AMark
------=_EDNP_0000_0647b4da-ada9-409c-a1ca-faccd089f427--
Re: Generating forms and form elements
am 20.06.2006 20:49:22 von dpgirago
Mark Fellows previously described:
> 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.
Do you mean you want to store PHP code or HTML markup in the DB?
David
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Generating forms and form elements
am 20.06.2006 21:45:30 von dpgirago
>> Mark Fellows previously described:
>>> 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.
>> Do you mean you want to store PHP code or HTML markup in the DB?
>> David
> PHP code to generate HTML markup. Or maybe just HTML code and then have
the php generate it from the markup in the table ?
>
> Mark
I've not done anything like this, but it doesn't make sense to me to store
PHP in the DB.
HTML makes much more sense. Maybe others have a different opinion...
David
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Generating forms and form elements
am 20.06.2006 22:44:22 von Bastien Koert
eval$code);
bastien
>From: Mark Fellowes
>Reply-To: Mark Fellowes
>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
RE: Generating forms and form elements
am 20.06.2006 22:47:07 von Bastien Koert
whoops
eval ($code);
Bastien
>From: "Bastien Koert"
>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);
>
>bastien
>
>>From: Mark Fellowes
>>Reply-To: Mark Fellowes
>>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
Re: Generating forms and form elements
am 20.06.2006 23:09:06 von Stut
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"
>> 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);
>>
>> bastien
>>
>>> From: Mark Fellowes
>>> Reply-To: Mark Fellowes
>>> 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
Re: Generating forms and form elements
am 20.06.2006 23:11:17 von Bastien Koert
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
>To: Bastien Koert
>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 mind
>
>>Bastien
>>
>>
>>>From: "Bastien Koert"
>>>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);
>>>
>>>bastien
>>>
>>>>From: Mark Fellowes
>>>>Reply-To: Mark Fellowes
>>>>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
Re: Generating forms and form elements
am 20.06.2006 23:15:14 von Stut
Bastien Koert wrote:
> 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.
I would accept that if you'd mentioned, or at least hinted at the issues
that need to be addressed when using eval. You didn't so I thought it
needed to be pointed out. I think we, as a community, have a
responsibility to point out the potential security and stability
pitfalls of the possible solutions we provide. But that's just me.
-Stut
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Generating forms and form elements
am 20.06.2006 23:51:13 von Stut
Micah Stevens wrote:
> Stut wrote:
>> Bastien Koert wrote:
>>> 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.
>>
>> I would accept that if you'd mentioned, or at least hinted at the
>> issues that need to be addressed when using eval. You didn't so I
>> thought it needed to be pointed out. I think we, as a community, have
>> a responsibility to point out the potential security and stability
>> pitfalls of the possible solutions we provide. But that's just me.
>
> Last time I handed someone a rope, I didn't tell them to not hang
> themselves. :)
Then you assumed they knew what a rope was and that it's generally a bad
idea to use it to suspend themselves in the air by their neck. Likewise
you assumed the OP knew that eval was dangerous.
-Stut
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Generating forms and form elements
am 20.06.2006 23:53:27 von Micah Stevens
Stut wrote:
> Micah Stevens wrote:
>> Stut wrote:
>>> Bastien Koert wrote:
>>>> 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.
>>>
>>> I would accept that if you'd mentioned, or at least hinted at the
>>> issues that need to be addressed when using eval. You didn't so I
>>> thought it needed to be pointed out. I think we, as a community,
>>> have a responsibility to point out the potential security and
>>> stability pitfalls of the possible solutions we provide. But that's
>>> just me.
>>
>> Last time I handed someone a rope, I didn't tell them to not hang
>> themselves. :)
>
> Then you assumed they knew what a rope was and that it's generally a
> bad idea to use it to suspend themselves in the air by their neck.
> Likewise you assumed the OP knew that eval was dangerous.
>
> -Stut
Exactly.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php