How to display code instead of results - Posted (909 Views)
Member Locked
JohnC
Posts: 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!<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Moderator
AnonJr
Posts: 5768
5768
You could use the Server.HTMLEncode() function built in to ASP/VBScript<
Posted
Member Locked
JohnC
Posts: 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!<
 
You Must enter a message