Search and Replace within a Webpage

Discussion in 'HTML & Website Design' started by BizMentor, Mar 5, 2008.

  1. #1
    Can anyone tell me where I might find the code, or instructions on how to code this:
    What i'd like to do, for example, is have a story - or multiple stories (in form text boxes) on a webpage - all of which contain descriptive fields (such as "$name", "$age", etc.), and also on that page there should be a form where the visitor will enter their (name and age) - and each story on that page will then be customized to their input.

    So, if the story were:
    One day, $name celebrated his $age birthday!

    and the user inputted John and 34, a new page will come up (or the text will change on the current page) with the story reading:
    One day, John celebrated his 34 birthday!


    Sorry if this is confusing - I might just be making it sound that way!!

    TIA,
    TG
     
    BizMentor, Mar 5, 2008 IP
  2. FredRoe

    FredRoe Guest

    Messages:
    167
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You have to use a programming language like php or asp to get it done. Although I suppose you could wangle it with cgi if you had to.
     
    FredRoe, Mar 5, 2008 IP
  3. BizMentor

    BizMentor Well-Known Member

    Messages:
    350
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    120
    #3
    thanks!
    does anyone have any site they can refer me to that might explain better?

    Terry
     
    BizMentor, Mar 6, 2008 IP