form button doesn't work

Posted on 2006-05-16
Medium Priority
Last Modified: 2010-04-01

I have this code for the buttons in my form

<td colspan="2" ><br><input type="submit"  class="button"  value="Search CCIM Members" </td>
<td colspan="2" ><br><input type="button"  class="button"  value="Add New Member" onClick="/chapters/templates_admin/add_members.jsp"> </td>


add_member.jsp is an empty page which says hello world. The problem is that when I press thebbutton it does nothing, not even show the link. I am not sure what's wrong. Any help will be greatly appreciated

Question by:royalcyber
LVL 11

Accepted Solution

fargo earned 2000 total points
ID: 16697048
Use the following
<td colspan="2" ><br><input type="submit"  class="button"  value="Search CCIM Members" </td>
<td colspan="2" ><br><a href="/chapters/templates_admin/add_members.jsp"><input type="button"  class="button"  value="Add New Member" ></a></td>

You were referring a page from the onclick event, and is not correct. You either can use a link, like shown. Or u can either submit a form with javascript with the onclick event.

Expert Comment

ID: 16698637
as above really, try the:

<a href="yourlink.jsp"><input type="button" etc /></a>

and that should sort you out.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Currently, there is an issue with being able to copy values from an external application to a dropdown list in Project Web Access (PWA).  The standard copy and paste methods don't seem to work properly. Here is a way to accomplish this task to s…
In the below post we have mentioned the best hosting type for startups. Also, check out some of the superlative web hosting companies that are proposing affordable web hosting solutions to host your startup website.
Loops Section Overview
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question