Link instead of button

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

toolman

Account Closed
Impact
0
Hi

I am trying to use a text link instead of a button.

This is what i have but i get an error.

PHP Code:
Code:
 <form name="search" action="auctionsearch.php" method="post"><input size=25 name="basicsearch"> 

<input name="searchok" type="submit" > 

<a href="#" onClick="document.search.submit()">Search</a> 
    </form>

Any ideas what im doing wrong?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
try this;

Code:
<form name="search" action="auctionsearch.php" method="post"><input size=25 name="basicsearch"> 

<input name="searchok" type="submit" > 

<a href="document.search.submit()">Search</a> 
    </form>

it may work, it may not, i'm just guessing.
 
1
Close
i think u need a Javascript in there, so the search link would look like this:

<a href="Javascript:document.search.submit()">Search</a>
 
1
Close
nasaboy007 said:
i think u need a Javascript in there, so the search link would look like this:

<a href="Javascript:document.search.submit()">Search</a>

yes. we need to put JavaScript there...
 
0
Close
I'm pretty sure it would be:

Code:
<a href="javascript:document.forms.search.submit()">Search</a>
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back