Tom743
New Member
- Messages
- 72
- Reaction score
- 0
- Points
- 0
PHP:
if ( !preg_match( "/http:\/\/(.*)youtube(.*)\/watch?v=(.*)/", $_POST['yturl'] ) ) {
echo "<div class=\"regerror\">Invalid Youtube URL</div>";
}
Im using the code above to check if the Youtube url someone has entered is valid. However its saying invalid Youtube url for an url I have copied directly from Youtube.