You are here: Re: New ideas « PHP Programming Language « IT news, forums, messages
Re: New ideas

Posted by Jon Slaughter on 05/21/07 16:09

"Toby A Inkster" <usenet200703@tobyinkster.co.uk> wrote in message
news:2s48i4-s96.ln1@ophelia.g5n.co.uk...
> Jon Slaughter wrote:
>
>> If anyone things this thing might be useful then I'm thinking about
>> rewriting everything and make it a little more clean. What it does allow
>> one
>> to do is treat forms as inline objects that are not event driven. The
>> drawback is that the code to handle them must be in a string instead of
>> actual php code that will be parsed, say, by an IDE. Maybe someone knows
>> of
>> a way around this or has some idea to make it better(I know there are
>> going
>> to be the regular nay sayers but who knows).
>
> What you're describing sounds fairly like my form handling code for
> demiblog <http://demiblog.org/etc/forms>. Using my form handling classes
> you can do something like:
>


Well, kinda. Your forms is just a wrapper for html with some extra stuff but
has similar goals as mine... and maybe I was headed down that path. I just
didn't want to wrap the forms though but I thought about it. I just don't
see any benefit except that it could make the code I'm using easier to
use(since, say, all the functions need to know what type of method is used
but if you wrap everythign in php you can set it once).

Your set_validity_check seems to be very similar to what I was doing except
I didnt' call it validation and mine is more primitive. Mine simply executes
code and that code can be anything. It is attached to a form(or could be
attached to the page) and is executed when the form is processed. In this
way one can do anything they want when a form is submitted rather than just
validate data... although I suspect that your function is not that
restrictive either?

Are the forms you created fixed in style by the php class or are the basic
html forms that are completely modified by css selection? One of the issues
that is keeping me from wrapping the html forms is that it seems that it is
to restrictive. Either you have to define the format of the form or you end
up wrapping the primitives of the form so that it just becomes a dead
wrapper. What I mean is, say I want to insert a div for absolute positioning
of some element inside a form... can I do that with your class easily?

Maybe if one completely wrapped html or used xml interface and a parser for
it they could get a similar result but much more close to html? (what I
means is add some new tags to it and then handle ther semantics in php)

Thanks,
Jon

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация