467,915 Members | 1,198 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,915 developers. It's quick & easy.

Variables on web pages

Is there a way to use variables on a web page?

I suppose I mean simple text replacements, such as replacing each occurrence
of the expression, say, "title" with "World Encycopaedia of Insects". Or
replacing "date" with the current date.

Would it mean scripting or programming?

I'd appreciate any pointers you can give me.

Thanks
Richard
Jul 20 '05 #1
  • viewed: 1435
Share:
3 Replies
Richard Treadgold wrote:
Is there a way to use variables on a web page?
In HTML? No.
I mean simple text replacements, such as replacing each occurrence of
the expression, say, "title" with "World Encycopaedia of Insects". Or
replacing "date" with the current date.

Would it mean scripting or programming?
Yes.
I'd appreciate any pointers you can give me.


Client-side scripting: you want to learn about javascript.

Server-side scripting: lots of possibilities, including php, perl, and asp.

Which do you want? And if server-side, which script language is
available to you?

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #2
"Richard Treadgold" <ri*****@NOSPAMwordshine.com> a écrit dans le
message de news:Xn******************************@203.96.92.12
Is there a way to use variables on a web page?


What do you really want to do ?

Jul 20 '05 #3
"Pierre Goiffon" <pg******@nowhere.invalid> wrote:
Is there a way to use variables on a web page?


What do you really want to do ?


"To use a preprocessor", that's my guess. Or maybe SSI or similar
technique. Whatever the question is, among the imaginable possibilities,
the answer is not in HTML.

(Well, in practice, that is. Nobody prevents you from defining named
constants using <!ENTITY> declarations, by SGML rules; however, even the
HTML 2.0 specifications, a great improvement over its successors, does
not require support to entity declarations - it just says that "HTML user
agents - - may support an internal declaration subset with supplemental
entity, element, and other markup declarations". Moreover, hardly any
browser ever made even a serious attempt at actually supporting HTML as
an SGML application.)

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Paul Yanzick | last post: by
reply views Thread by Van Steenbergen Jan | last post: by
17 posts views Thread by Davíð Þórisson | last post: by
1 post views Thread by ChrisN | last post: by
6 posts views Thread by Kenneth Keeley | last post: by
10 posts views Thread by EOZyo | last post: by
8 posts views Thread by e_matthes | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.