1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Free $10 PayPal to first person who posts solution!

Discussion in 'General Programming Chat' started by DrzMedia, Mar 16, 2009.

  1. DrzMedia

    DrzMedia Regular Member

    Joined:
    Sep 19, 2008
    Messages:
    445
    Likes Received:
    108
    I have this one thing that I have to keep doing but it would be good if it was automated.

    Hi this is [insert product name here], and here is [insert item name here] go here to buy [itemname]. <img src="[image url of item]">

    Is there a script which I can use to make this type of template and just fill in the [insert] parts? (I'm using HTML)

    Here is an example of what I need.

    I have this HTML code and then I have added parameters in the HTML like [itemname], [item image url] etc. Obviously the [itemname] parameters are replaced by name of the item and then the [item image url] parameters are replaced by image source of the item's image.

    What I need is to program something that already knows the HTML code but all it does is ask me hey what is the [itemname], what is the [item image url], and other parameters but you get the point, and then afterwards it generates the HTML and rreplaces the [itemname] parameter with the actual item name I input. If anyone can tell me how to do this I'll donate $10 PayPal.
     
  2. aмillionaírе

    aмillionaírе Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 20, 2008
    Messages:
    532
    Likes Received:
    358
    Do you want a client user provide that information or you (server) will?
     
    • Thanks Thanks x 1
    Last edited: Mar 16, 2009
  3. DrzMedia

    DrzMedia Regular Member

    Joined:
    Sep 19, 2008
    Messages:
    445
    Likes Received:
    108
    I will. It will insert it into the same HTML code containing this parameter. Then I will post it on a new website HTML page.

    Ok let me be more clear. For example I have this parameter [itemimage] and [itemname]

    now [itemimage] = http://domain.com/image1.gif
    and [itemname] = item 1

    and then I have this HTML
    <img src="[itemimage]> [itemname]

    I want a form where I can input the [itemimage] (http://domain.com/image1.gif) and [itemname] (item 1) and other parameters I specify in the HTML and then it generates the HTML with the parameters I entered.
     
    Last edited: Mar 16, 2009
  4. DrzMedia

    DrzMedia Regular Member

    Joined:
    Sep 19, 2008
    Messages:
    445
    Likes Received:
    108