NameSilo

Link instead of button

Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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
•••
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
•••
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
•••
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
•••
I'm pretty sure it would be:

Code:
<a href="javascript:document.forms.search.submit()">Search</a>
 
0
•••
Truehost — .com domains from $4.99, hosting includedTruehost — .com domains from $4.99, hosting included

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back