tsguitar2004
08-13-2004, 10:45 PM
Here's the code:
<INPUT TYPE="submit" NAME="-FindAll" VALUE="Show All Employees">
I want that submit button to be a text link. However, I also need to be sure that the NAME of the button is sent along with the submission. It's running a querry to a database and needs the NAME to return the correct information.
<a href="#" onClick="document.staff_search.submit();">click here</a>.</p>
has been suggested, but I need to make sure that the NAME is passed, too. Without it, an error is returned because the database doesn't know what to look for. By the way, "staff_search" is the name of the form I want to submit. There are two forms on the page.
Next thing I'd like is a way to submit that button, with that NAME, on page load.
Thanks, all.
-ts
<INPUT TYPE="submit" NAME="-FindAll" VALUE="Show All Employees">
I want that submit button to be a text link. However, I also need to be sure that the NAME of the button is sent along with the submission. It's running a querry to a database and needs the NAME to return the correct information.
<a href="#" onClick="document.staff_search.submit();">click here</a>.</p>
has been suggested, but I need to make sure that the NAME is passed, too. Without it, an error is returned because the database doesn't know what to look for. By the way, "staff_search" is the name of the form I want to submit. There are two forms on the page.
Next thing I'd like is a way to submit that button, with that NAME, on page load.
Thanks, all.
-ts