Poppycock
07-15-2005, 10:22 PM
Is there a way to use a variable ( for example“A” or "B") to represent a string of numbers (an item number "12345" or "12346") in the code of a page.
Something like:
<img src="images/thumbnails/A.gif">
<img src="images/thumbnails/B.gif">
...
<input type="hidden" value=“A”>
...
<input type="hidden" value=“B”>
...
Where the browser reads it as:
<img src="images/thumbnails/12345.gif">
<img src="images/thumbnails/12346.gif">
...
<input type="hidden" value=“12345”>
...
<input type="hidden" value=“12346”>
...
What I want to do is make a list of items and that can be updated by replacing the meaning of a variable (i.e; replacing a discontinued item’s number with a new one) thereby only having to change one line of code per product rather than 5 or 6.
It would be really useful if I could make one page with a list of all of my variables (several hundred) that each page of the website consults for the meaning of the variables rather than having to have a list for each page. If any of this is even possible.
I’d greatly appreciate any help anyone would care to give me; as I am completely lost and what I’m doing now to update takes far too much time.
Edit: I just realized that this is the wrong place to post this. Sorry; I’ll have to look at what I’m doing more carefully next time.
Something like:
<img src="images/thumbnails/A.gif">
<img src="images/thumbnails/B.gif">
...
<input type="hidden" value=“A”>
...
<input type="hidden" value=“B”>
...
Where the browser reads it as:
<img src="images/thumbnails/12345.gif">
<img src="images/thumbnails/12346.gif">
...
<input type="hidden" value=“12345”>
...
<input type="hidden" value=“12346”>
...
What I want to do is make a list of items and that can be updated by replacing the meaning of a variable (i.e; replacing a discontinued item’s number with a new one) thereby only having to change one line of code per product rather than 5 or 6.
It would be really useful if I could make one page with a list of all of my variables (several hundred) that each page of the website consults for the meaning of the variables rather than having to have a list for each page. If any of this is even possible.
I’d greatly appreciate any help anyone would care to give me; as I am completely lost and what I’m doing now to update takes far too much time.
Edit: I just realized that this is the wrong place to post this. Sorry; I’ll have to look at what I’m doing more carefully next time.