Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Thanked 0 Times in 0 Posts

    Database entry + UNIQUE URL


    I know the title is not very good but here it goes.

    I plan on making a page that people can visit on the page i need there to be a text entry area that a user can post an embed code for there YouTube video,
    YouTube Upon doing so, the user will have a unique URL given to them,

    Say they input there details they will have a domain i.e www.dubstepground.com/video/1293

    And i want this page to display there YouTube video that they entered,

    What is the best way to do this?

    I don't need them to log in or anything just so they visit page click create and it creates a new URL with there YouTube video embedded.

    Thank you!
    James Wright.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Thanked 328 Times in 324 Posts
    You can do this with one table and some PHP (or whatever server side language you prefer) and mod_rewrite.

    Though instead of letting them paste in the code for the embedded video, you should just take a link to the YouTube video and generate the embedded code yourself. Two reasons for this:

    1) It will avoid you duplicating lots of data in your DB table.
    2) Letting people just paste in HTML and having your server load it is just ripe for abuse by spammers


    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts