humbleprogrammer
Programmer
Hi,
I have a form that takes a users input and creates an Ad page. It takes info such as background color, text size, color, font, images in add, border color, etc. I then have this form post to a page, which displays what the Ad will look like.
I also have a scrolling text box that I want to display the generated HTML code in. I have it coded so they can click the copy button, which will copy the content to their clipboard. What I am unsure about is what's the best way to display the HTML code in the text box? Do I have to request all the form values and response.write them with the proper HTML tags or is there an easier way?
Thanks!
I have a form that takes a users input and creates an Ad page. It takes info such as background color, text size, color, font, images in add, border color, etc. I then have this form post to a page, which displays what the Ad will look like.
I also have a scrolling text box that I want to display the generated HTML code in. I have it coded so they can click the copy button, which will copy the content to their clipboard. What I am unsure about is what's the best way to display the HTML code in the text box? Do I have to request all the form values and response.write them with the proper HTML tags or is there an easier way?
Thanks!