HTML Variables

liunx

Guest
I know this may sound like a really basic question but my knowledge of HTML is really basic. I need to pass a variable from one .htm file to another .htm file. I'm trying to pass over a colour choice from a hyperlink. So the hyper link reads 'Light Blue' and the link underneath needs to be something like: <A HREF=http://www.webdeveloper.com/forum/archive/index.php/"gallery.htm?colour_id=#00CCCC"> but I'm sure this is probably not quite right. And on the gallery.htm page I have: <body bgcolor=colour_id> but of course it's not working.<br />
I know I'm missing something out but don't know what. I've read maybe there needs to be a '$' sign somewhere and all the examples I can find are for .cfm files which I've never used and don't know how to use. Is the above possible on .htm? Somebody help please. Thank you.<br />
Mimmy.<!--content-->Both HTML and XHTML have variables; in fact you use one every time you use an &nbsp;. Support, however, for you defining your own is non-existant in HTML and spotty at best in XHTML. You need to simply do some style sheet switching. Start with a page in HTML 4.01 Strict (<!-- m --><a class="postlink" href="http://www.w3.org/TR/html4/">http://www.w3.org/TR/html4/</a><!-- m -->) and using CSS2 (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/">http://www.w3.org/TR/REC-CSS2/</a><!-- m -->). Then simply follow the directions at <!-- m --><a class="postlink" href="http://www.alistapart.com/articles/alternate/">http://www.alistapart.com/articles/alternate/</a><!-- m -->.
 
Back
Top