Results 1 to 2 of 2

Thread: Variables

  1. #1
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Variables

    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.
    Last edited by Poppycock; 07-16-2005 at 12:28 AM.

  2. #2
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Talking

    Never mind.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •