By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,624 Members | 2,179 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,624 IT Pros & Developers. It's quick & easy.

Variables on web pages

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
"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

P: n/a
"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.