Re: [PHP] Dynamic HTML Creation

2004-09-02 Thread Sam Hobbs
"Ramil Sagum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > given a template : > - > > User Information: > Name: {$name} > Address: {$address} > > - > and the php code: > > $smarty = new Smarty; > $smarty->assign('name', 'george smith'); > $smarty->assign('address'

Re: [PHP] Dynamic HTML Creation

2004-08-29 Thread FrzzMan
Sam Hobbs wrote: "Ramil Sagum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Ah. You should have said this in your first mail (which was confusing). It now becomes clear. I think what you are looking for is a template engine, like smarty http://smarty.php.net/ If Smarty is a good sol

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Sam Hobbs
"Ramil Sagum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Ah. You should have said this in your first mail (which was > confusing). It now becomes clear. I think what you are looking for is > a template engine, like smarty > > http://smarty.php.net/ If Smarty is a good solutio

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Ramil Sagum
On Sat, 28 Aug 2004 12:30:48 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > This is for osCommerce, which is a shopping cart system written in PHP. Many > of it's pages (the HTML) are not modifiable directly using a WYSIWYG editor, > which make the content difficult to modify, especially for non-tec

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Jason Davidson
I suppose it was too much to ask for some clearification. I hope someone else helps you. Good luck, by they way, the difference between VBScript and Javascript is monumental when using Gecko based browsers. Jason "Sam Hobbs" <[EMAIL PROTECTED]> wrote: > > Read the original question again; it

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Sam Hobbs
Read the original question again; it is quite clear about the relevance to PHP. "Jason Davidson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > its possible to add HTML elements with DOM, im not sure what it has to > do with php though? -- PHP General Mailing List (http://www.php

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Sam Hobbs
"Ramil Sagum" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Yes, it is possible. And you are right, PHP is a server side > language. In addition to PHP, > use a client-side scripting language (like JavaScript). JavaScript > also has functions for accessing the DOM (createElement

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Sam Hobbs
"Justin Patrin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 27 Aug 2004 23:17:29 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > > Is it possible to use the DOM to add (HTML) elements to a page at the time > > the page is being shown? The HTML and VBScript shown below is a s

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Jason Davidson
its possible to add HTML elements with DOM, im not sure what it has to do with php though? Jason "Sam Hobbs" <[EMAIL PROTECTED]> wrote: > > Is it possible to use the DOM to add (HTML) elements to a page at the time > the page is being shown? The HTML and VBScript shown below is a simplified > v

Re: [PHP] Dynamic HTML Creation

2004-08-28 Thread Ramil Sagum
On Fri, 27 Aug 2004 23:17:29 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > Is it possible to use the DOM to add (HTML) elements to a page at the time > the page is being shown? The HTML and VBScript shown below is a simplified > version of what I need to do but of course I need to do it in PHP. Sin

Re: [PHP] Dynamic HTML Creation

2004-08-27 Thread Justin Patrin
On Fri, 27 Aug 2004 23:17:29 -0700, Sam Hobbs <[EMAIL PROTECTED]> wrote: > Is it possible to use the DOM to add (HTML) elements to a page at the time > the page is being shown? The HTML and VBScript shown below is a simplified > version of what I need to do but of course I need to do it in PHP. Sin

[PHP] Dynamic HTML Creation

2004-08-27 Thread Sam Hobbs
Is it possible to use the DOM to add (HTML) elements to a page at the time the page is being shown? The HTML and VBScript shown below is a simplified version of what I need to do but of course I need to do it in PHP. Since PHP is server-side (right?) perhaps it is not possible. Dynamic Table De