Results 1 to 3 of 3

Thread: Submitting FORM without pressing button

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2002
    Posts
    59

    Question Submitting FORM without pressing button

    Hello:

    I want to thank all that reply.

    Is there a way to have this form submitted using code, instead of making the user press a button?

    <form action="checkcustomer.asp" method="post">
    <input type="Hidden" name="cmd" value="_cart">
    <input type="hidden" name="Business" value="[email protected]">
    <input type="hidden" name="item_name" value="<%=descpt%>">
    <input type="hidden" name="amount" value=<%=currentPrice%>>
    <input type="hidden" name ="ItemID" value=<%=SelTitles.Fields("Item.ID")%>>

    <div align="Left"><%=extdesc%><div align="left"><a href="DisplayPict.asp?Picture=<% =seltitles("Picturename")%>" target="Frame2"><img src="images/view.jpg" width="81" height="20" border="0"></a>

    </form>

    If there is another way, could you please explain.

    Thanks
    David M. Camp

  2. #2
    Frenzied Member axion_sa's Avatar
    Join Date
    Jan 2002
    Location
    Joburg, RSA
    Posts
    1,724
    You might wanna give your form a name, and replace [form name] below with it.

    Code:
    <body onload="javascript:document.[form name].submit();">
      waka waka
    </body>

  3. #3
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    <body onload="form1.submit()">
    Last edited by shahid; Oct 5th, 2002 at 05:05 AM.

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