pass variable

Discussion in 'ASP General' started by weiwei, Aug 20, 2004.

  1. weiwei

    weiwei Guest

    Hi all
    How can I pass the variable in two button situation see below code
    <html>
    <body>
    <form action="" method="post">
    <input type="text" name="name">
    <input type="button" value="Add"
    onclick="this.form.action='add.asp?name=<%=name%>';this.form.submit();"><br>
    <input type="button" value="Delete"
    onclick="this.form.action='delete.asp';this.form.submit();">
    </form>
    </body>
    </html>
    As a result, I got to the next page , but showing error

    thanks in advance
    wei
     
    weiwei, Aug 20, 2004
    #1
    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. Jerry
    Replies:
    20
    Views:
    7,959
    Roedy Green
    Sep 9, 2005
  2. Ben Kial
    Replies:
    1
    Views:
    666
    Eric Enright
    Nov 15, 2004
  3. Tricky
    Replies:
    0
    Views:
    581
    Tricky
    Mar 19, 2009
  4. Tricky
    Replies:
    0
    Views:
    1,009
    Tricky
    Mar 19, 2009
  5. Reuven
    Replies:
    0
    Views:
    598
    Reuven
    Mar 19, 2009
Loading...

Share This Page