By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,394 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

Creating pages on the fly and expiring pages

P: 2
I'm really new to coding so my question might not be worded the best or just dumb, forgive me. Here's what I'm trying to do:

I have a basic text-entry form:
Expand|Select|Wrap|Line Numbers
  1. <div id="chatfind">
  2. <form action="form_action.php">
  3. School: <input type="text" name="chatname" value="Technology"/>
  4. <input type="submit" value="Go" />
  5. </form>
  6. </div>
  7.  
The user will essentially enter a word such as 'Technology' which will take them to the location (.com/technology). Basically users are creating pages on the fly. How would that work? This next question might not be PHP related but I'd also like pages that are inactive for 24 hours to be deleted.

How would I go about doing this, any tips or maybe I'm going about this wrong?

In it's simplest terms, I'd like a user to create a public page under my domain using a word (which will be filtered) where other users can post comments about the topic (technology). I know I could use a message board, chat room, plenty of other alternatives but I have more I'd like to add to this, just having a hard time understanding multiple languages.
Mar 14 '12 #1
Share this Question
Share on Google+
3 Replies


Dormilich
Expert Mod 5K+
P: 8,639
The user will essentially enter a word such as 'Technology' which will take them to the location (.com/technology). Basically users are creating pages on the fly.
it may seem that way but most of the times, that is just database driven (i.e. you write the content to a DB) and you use URL rewriting to make it look like it's a separate page (but actually it's only an URL parameter to the script).
Mar 15 '12 #2

P: 2
Gotcha, if they access a page that hasn't been made yet what must the form_action.php contain to create that page?
Mar 15 '12 #3

Dormilich
Expert Mod 5K+
P: 8,639
that depends on your CMS (content management system).
Mar 15 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.