Jump to content

displaying html code as a form value


poleposters

Recommended Posts

Hi. I have a form on my site to add videos as well as transcripts of the videos.Its simply a textarea for the transcript and a text input for the video in which I usually copy and paste a youtube embed link.

 

I also have a similar form which edits an existing entry in the database. For convenience I display the transcript as a value of the textarea so that it can be edited rather than re-entered.

 

I want to do the same thing for video, but the problem i've discovered is that if a i print the embed object straight into the value of the text input, the video is displayed rather than the string value.

 

How do I get around this?

Link to comment
https://forums.phpfreaks.com/topic/169300-displaying-html-code-as-a-form-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.