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',
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
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
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
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
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
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
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
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
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
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
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
12 matches
Mail list logo