Can you post an example of what you have stored in $vidlect? If it's simply the URL to a youtube video you won't be able to view it on the page. To embed a youtube video you need the 'embed' code, which includes the flash player etc:
<object width="425" height="344"> <param name="movie" value="http://www.youtube.com/v/GwQMnpUsj8I&hl=en& +fs=1"> </param><param name="allowFullScreen" value="true"> </param><param name="allowscriptaccess" value="always"> </param><embed src=http://www.youtube.com/v/GwQMnpUsj8I&hl=en&fs=1 type="application/x-shockwave-flash" allowscriptaccess="always" allowf +ullscreen="true" width="425" height="344"> </embed></object>
You're restricting this to 140 characters in your text field.
Update: confised size and maxlength. OP has updated their post
In reply to Re: Displaying Youtube Video
by marto
in thread Displaying Youtube Video (Resolved)
by Tsalagi_4
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |