Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create new web pages from code

Status
Not open for further replies.

bsgottesman

Programmer
Apr 30, 2009
1
Hi,

I'm working on an events section for a website and have run up against the following problem: I would like every event registered to have its own web page on the site. What I would like to do is to have a template with basic layout, etc., and then every time a new event is entered, a new page would automatically be created in a specific folder on the site with the name mysite/events/name of event, with all the information from the database, or that was entered into the form, correctly laid out in as I specified in the template.

I know this sounds crazy, but is there any way to do this programmatically? I have no way of knowing how many events will be registered, so I can't set up the pages beforehand and then fill in the info.

I originally did it by sending a querystring with the event id to a single reused eventsdetails page that used the id to pull all data about that event out of the database, but my boss wants to have a higher search ranking by having more pages on the site, so he wants one page per event.

Thanks a lot in advance,
Bsg
 
WOW. That is a terrible idea! Again, the idea coming from management that is clearly confused. There are ways to get better ranking from your site designed the way it is. The way it is designed is the correct way. However, this is a question of SEO. You will need to research ways to get better ranking, rather than redesigning your web site in an aweful, awful way.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top