You are here: Re: Re: Re: better way to mix html and php code? « PHP « IT news, forums, messages
Re: Re: Re: better way to mix html and php code?

Posted by "Dan Baker" on 11/22/05 01:46

"Robert Cummings" <robert@interjinn.com> wrote in message
news:1132600810.27185.32.camel@blobule.suds...
> On Mon, 2005-11-21 at 13:41, Dan Baker wrote:
>> I'm curious ... how do you generally handle forms and urls? What if the
>> programmer wants to add a link, something like:
>> <a href="page.php?op=View&id=1234">View my info</a>
>>
>> How is the data (op=View&id=1234) separated from the formatting?
>
> There are two ways for retrieving data. The first you have seen is the
> tag form, but obviously that's a problem when the data goes into a tag
> :) For this there is the embed form (a simple example follows but data
> can be retrieved from modules/components in the same way):
>
> <a href="page.php?op=View&id={jinn:echo value={jinn:getValue name=_GET,
> path=id}}">

It appears that the data "op=View" is embedded in the html data. This seems
strange, because the PHP programmer is the one who needs to set this value,
not the page designer.

Also, the jinn:getValue seems a lot like programming -- The "id" value must
come from a database, based on who is currently logged in. I assume it can
be done, but seems like these queries would get rather complex, as well as
redundant. Seems like you are changing from programming in PHP to
programming in this new jinn language.

I am interested in how this works, but am skeptical.
DanB

 

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

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