How to display code instead of results - Postet den (911 Views)
Medlem er låst
JohnC
Innlegg: 215
215
I'll try to explain this the best way I can. I have an ASP script/page that displays MySQL data, but the data is editable -- meaning it's displayed in form fields, similar to what shows when you go into your profile on Snitz Forums. Now, I have one field where you can enter the code to display (embed) a video. When I pull up the page with the database results, instead of showing the video code, it shows the video. How do I get the video code to display on the ASP page instead of the embeded video? Right now I go into the MySQL database and enter or edit the video code there. Thanks for any help!<
   
 Sidestørrelse 
Postet den
Forum Moderator
AnonJr
Innlegg: 5768
5768
You could use the Server.HTMLEncode() function built in to ASP/VBScript<
Postet den
Medlem er låst
JohnC
Innlegg: 215
215
Thanks for your reply, AnonJr! I actually figured it out. I changed the form field on the ASP page from "<input..." to "<textarea..." and it works great!<
 
Du må legge inn en melding