NameSilo

Link instead of button

Spacemail by SpaceshipSpacemail by Spaceship
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
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back