I used a form to capture data from clients. In this form is an iframe that loads youtube videos onto youtube. The reason for the different URL is because my original code was written in CakePHP and the youtube api uses the Zend Framework.
Now I need the values returned from youtube that is stored in the URL of the iframe to save in the DB, so that when called later the video will open with the correct listing.
Any advise?
There is no way to get any information about pages loaded into an iframe if the document loaded into it comes from a different domain. This is due to the same origin policy.
YouTube has an API that allows people to perform searches of YouTube from your website. You could use that to allow people to select videos instead of trying to reverse engineer the YouTube URI system.