Re: [PHP] Dynamic HTML Creation

2004-09-02 Thread Sam Hobbs
Ramil Sagum [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] given a template : - body User Information:p Name: {$name}br Address: {$address}br /body - 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

[PHP] Dynamic HTML Creation

2004-08-28 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. HTML HEAD

Re: [PHP] Dynamic HTML Creation

2004-08-28 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. Since

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. Since

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 version

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 simplified

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 and

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

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 is

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

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 solution that