468,316 Members | 2,050 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,316 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>
  5.  
  6.  

tt.asp has this
Expand|Select|Wrap|Line Numbers
  1. <%
  2. response.write request.form("buttonname")
  3.  
  4. %>
  5.  
Feb 6 '08 #1
2 994
Markus
6,050 Expert 4TB
This isn't a html problem.
Post in the relevant forum.
Feb 6 '08 #2
mrhoo
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">
<INPUT TYPE=SUBMIT NAME="submit" VALUE="OK">
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
By using this site, you agree to our Privacy Policy and Terms of Use.