Creating pages on the fly and expiring pages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • famenixon
    New Member
    • Mar 2012
    • 2

    Creating pages on the fly and expiring pages

    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:
    Code:
    <div id="chatfind">
    <form action="form_action.php">
    School: <input type="text" name="chatname" value="Technology"/>
    <input type="submit" value="Go" />
    </form>
    </div>
    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.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    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).

    Comment

    • famenixon
      New Member
      • Mar 2012
      • 2

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

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        that depends on your CMS (content management system).

        Comment

        Working...