Question:
I want to add a simple form to my Web page, but I can’t figure it out. I want a form that lets my users enter text into a textarea box, and an onSubmit function that will send the text to a nearby frame (or iframe) and save it there for others to see it, like a guest book. I just need name and textarea boxes. How can I go about doing this? Thank you in advance.
Answer:
The following code shows how combining Active Server Pages (ASP) with an HTML form can enable you to pass information from a form to code. If building a guestbook, I would save the names to a database. To conserve space, I didn’t implement that piece, but I did make the names available to ASP, from which the names could be passed to database code.
This page allows users to enter names to a guestbook. All of the names are remembered and displayed in a textarea HTML control. The names could actually be displayed anywhere you want them. The secret is the HTML
Browse the Guestbook: