Results 1 to 2 of 2

Thread: Simple Tagboard Form

  1. #1

    Thread Starter
    Lively Member CagedConfession's Avatar
    Join Date
    Oct 2002
    Posts
    98

    Simple Tagboard Form

    I'm wanting to make a simple tag board form that takes input from a user and displays it in a text box or i-frame. I haven't learned the concept of makeing a simple input form so i have no clue how to do this
    Is there some easy code i could understand that you could post?

    For example

    Name.........
    Message........
    Text Area........(Where the message and name are displayed once submit button is pressed)
    (Submit Button)

    Is it possible to make the message and name display in a text area or does it have to be an i-frame??
    [vbcode]Private Sub Form_Load()
    I would rather be hated for who I am than loved for who I'm not.[/vbcode]
    End Sub

  2. #2
    Member
    Join Date
    Dec 2002
    Location
    Delaware
    Posts
    34
    <script language="JavaScript" type="text/JavaScript">

    function add2textarea(form) {
    if (form.Name.value && form.Message.value) {
    form.Result.value = form.Name.value + "\n\n" + form.Message.value;
    }
    return true;
    }

    </script>
    ...
    <form>
    <input type="text" name="Name" onBlur="add2textarea(this.form);">
    <br>
    <input type="text" name="Message" onBlur="add2textarea(this.form);">
    <p>
    <textarea cols="65" rows="10" name="Result">
    </form>
    Tolkien is the greatest writer ever.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width