Notes property/method of forms???

Discussion in 'HTML' started by Noozer, Jul 27, 2005.

  1. Noozer

    Noozer Guest

    Forgive the scant example, but it shows exactly what my issue is...

    In MyPage.html:
    <form id="MyForm" name="MyForm" method="post" action="DoIt.asp">
    <input name="Notes" id="Notes">
    <button onclick="ProcForm();">
    </form>

    <script language="javascript">
    document.forms("MyForm").Notes.value="HELLO!"
    </script>

    In DoIt.asp:

    <%
    Notes = request.Form("Notes")
    response.write Notes
    response.flush
    response.end
    %>

    ....Results in "undefined" showing in my browser. Change "Notes" to "Nts" and
    now it puts "HELLO!" into my browser as expected.

    Is there a "Notes" property or method to Form objects?????
    Noozer, Jul 27, 2005
    #1
    1. Advertising

  2. Noozer

    Adrienne Guest

    Gazing into my crystal ball I observed "Noozer" <>
    writing in news:csLFe.52435$s54.28980@pd7tw2no:

    > Forgive the scant example, but it shows exactly what my issue is...
    >
    > In MyPage.html:
    ><form id="MyForm" name="MyForm" method="post" action="DoIt.asp">
    > <input name="Notes" id="Notes">
    > <button onclick="ProcForm();">
    ></form>
    >
    ><script language="javascript">
    > document.forms("MyForm").Notes.value="HELLO!" </script>
    >
    > In DoIt.asp:
    >
    ><%
    > Notes = request.Form("Notes")
    > response.write Notes
    > response.flush
    > response.end
    > %>
    >
    > ...Results in "undefined" showing in my browser. Change "Notes" to
    > "Nts" and now it puts "HELLO!" into my browser as expected.
    >
    > Is there a "Notes" property or method to Form objects?????
    >
    >
    >


    It would be better if you provided a URL, and personally, I think you're
    doing this the long way.

    <% if request.servervariables("request_method") = "POST" then
    response.write "notes: " & request.form("notes")
    end if
    %>

    <form method="post" action="<%=request.servervariables("script_name")%>">
    <p>
    <input type="text" id="notes" name="notes" value="Hello">
    <input type="submit" value="Submit">
    </p>
    </form>



    --
    Adrienne Boswell
    http://www.cavalcade-of-coding.info
    Please respond to the group so others can share
    Adrienne, Jul 27, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bjorn Jensen
    Replies:
    0
    Views:
    1,189
    Bjorn Jensen
    Mar 22, 2005
  2. =?Utf-8?B?S01heA==?=

    Lotus Notes LDAP server forms authenticaton

    =?Utf-8?B?S01heA==?=, May 19, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    556
    =?Utf-8?B?S01heA==?=
    May 19, 2005
  3. SteveM
    Replies:
    5
    Views:
    1,575
    Mark Rae [MVP]
    Aug 28, 2007
  4. Phlip
    Replies:
    2
    Views:
    289
    Phlip
    Oct 23, 2010
  5. Eric
    Replies:
    2
    Views:
    499
Loading...

Share This Page