3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by daviddoria
0

I'm not aware of support for this outside of scripting, with the emerging exceptions of certain things in HTML5 (like client side storage). I presume the CSS spec may one day evolve to support things like mixins, but we'll have to wait awhile for those things to be well defined, supported, and widely available to a substantial set of browsers.

0

Is there a way to make a string variable in "normal" html (that is, not inside of a <script> tag)? I want to do something like

Number='005'
<a href="http://domain.com/"+Number+".html">my link</a>

Is this possible?

Thanks,

David

You need PHP for this. HTML cannot analyze data; it can only display it.

$Number='005';
echo '<a href="http://domain.com/'.$Number.'.html">my link</a>';
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.