For you coders this is a very basic project and it is probably already available somewhere for download, but I don't have the time to research it, so if you can whip this out in your sleep... here's a quick job...
I need a simple script that will change **TWO** fields of text on a web page when a new visitor accesses the page.? This is similar to the scripts that change a greeting based on "time of day" - such as:
"Good morning, thanks for stopping by"? or? "Good afternoon, thanks for stopping by"
Essentially, the (INSERTED FIELDS) I need will be part of a welcome message that will say something like (example)...
"**Joe Smith** from **Pittsburgh** says that our products are the best."
Joe Smith = "**PERSON'S NAME FIELD**"
Pittsburgh = "**NEAREST CITY FIELD**"
"**PERSON'S NAME FIELD**" can pull names from a text file - or - a database of public names. Which ever source is easier to access.? The names will be ficticious, so the only thing that is important is that a different name appears for each unique page visitor.
However, if the visitor refreshes this page, or revisits this page, they should see the same name they saw originally.? "PERSON'S NAME FIELD" only changes for NEW visitors.
"**NEAREST CITY**" will be pulled from a lookup of the visitor's IP address and inserting the city associated with that IP address into that field.
Let me know of any questions or clarifications you need.? Thanks.