470,575 Members | 1,265 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,575 developers. It's quick & easy.

Getting the Button's value

100 100+
i do not want to submit for the "button" with the name "buttonname"...For some reason i want that button's value...once i submit i shud get "buttonvalue"...wat is wrong with my code???

Expand|Select|Wrap|Line Numbers
  1. <form name='rag' action='tt.asp' method='post'>
  2. <input  type='button' value='butonvalue' name='buttonname' />
  3. <input type='submit' value='OK' name='submit'/>
  4. </form>

tt.asp has this
Expand|Select|Wrap|Line Numbers
  1. <%
  2. response.write request.form("buttonname")
  4. %>
Feb 6 '08 #1
2 1025
6,050 Expert 4TB
This isn't a html problem.
Post in the relevant forum.
Feb 6 '08 #2
428 256MB
I don't see anything not html about an html form question.

If you want to distinguish which submit button was clicked, give each button the same name, and a different value.

<INPUT TYPE="SUBMIT" NAME="submit" VALUE="buttonvalue">
Feb 6 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by VK | last post: by
1 post views Thread by livre | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.