SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Mar 2008
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    adding youtube url to my database?

    How can i add a youtube url upload link so the user can see the video on my site?

    I've got a input form with takes the link, then the user clicks save, and it saves the link in the database but when i go to view the link i'm not gettin any video at all just a white space where the video should be... is there something i'm missing?

    my code to show the video is

    PHP Code:
    <object width="80" height="80">
                    <
    param name="movie" value="http://www.youtube.com/v/F6P8Zxn5VpY&hl=en&fs=1"></param>
                    <
    param name="allowFullScreen" value="true"></param>
                    <
    embed src="http://www.youtube.com/v/F6P8Zxn5VpY&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="80" height="80"></embed>
                  </
    object
    all i accept in the my upload input form is the value and src e.g. the url link (http://www.youtube.com/v/F6P8Zxn5VpY&hl=en&fs=1)

    any ideas?

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2006
    Location
    Italy
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have tested your code and it works correctly.

    Are you sure it isn't an HTML/CSS issue (maybe the floating or z-order) or a client issue?
    If copy only the generated HTML code (the object tag) in an empty web page, can you see the video?


Bookmarks

Posting Permissions

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