Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

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
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back