Form Button

  • Thread starter Thread starter Ed Richter
  • Start date Start date
E

Ed Richter

I added a push button to a page that returns records. What I want to happen is upon clicking the button, it will take you to another page per the link as shown t oallow editing of the record, but it doesn't seem to be working. I just added it a "normal" button as this isn't part of a form that I can submit. Can I use a push button for this purpose??

<p><input type="button" value="Edit Comments" name="B6" <A HREF="evaluation_edit_comments.asp?Rec_num=<% = rsObj("Rec_Num") %>">></A> </p>
 
I think you need to add "onclick='evaluation_edit_comments.asp?Rec_num=<% =
rsObj("Rec_Num") %>';" to the <input type> tag.

Using the a href like you have below won't work, as it is a button you're
dealing with, not an image, and hyperlinks are done differently, as above.

Also , you may need to place the button between the <form> and </form> tags
as some browsers might not recognise it as a form element, and in some
browsers it may not do anything unless put in a <form>.


I added a push button to a page that returns records. What I want to happen
is upon clicking the button, it will take you to another page per the link
as shown t oallow editing of the record, but it doesn't seem to be working.
I just added it a "normal" button as this isn't part of a form that I can
submit. Can I use a push button for this purpose??

<p><input type="button" value="Edit Comments" name="B6" <A
HREF="evaluation_edit_comments.asp?Rec_num=<% = rsObj("Rec_Num") %>">></A>
</p>
 
as some browsers might not recognise it as a form element

All except for IE will not recognize it as a form element.
 
Back
Top