...

View Full Version : Custom Search Box Question(s)



chriscct7
07-15-2011, 05:08 PM
Ok,
I have what I think is a javascript question (correct me if Im wrong).

I designed a custom form in DreamWeaver but can't get it to work. Im thinking I need to add some javascript to work.

Heres my form code at the moment:

<form id="search-form" action="" method="post" enctype="multipart/form-data">
<fieldset>
<div class="search-form">
<input type="text" name="search" value="Type Keyword Here" onBlur="if(this.value=='') this.value='Type Keyword Here'" onFocus="if(this.value =='Type Keyword Here' ) this.value=''" />
<a href="#" onClick="document.getElementById('search-form').submit()">Search</a>

</div>
</fieldset>
</form>
What I want to do is have the user type in something, click on search, and then show up the results on another page named results.


What do I need to do?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum