need help with php/html search links?

  • Thread starter Thread starter Blackcompe
  • Start date Start date
B

Blackcompe

Guest
what i would is utilize javascript to create a dynamic text field. When you type a letter, it show sites below the field. You need ajax for this.
 
what i would is utilize javascript to create a dynamic text field. When you type a letter, it show sites below the field. You need ajax for this.
 
i want to make a link, for example, "auto". instead of typing it into a search box and clicking search, this will be a link for the most popular searches. Since the content changes daily, it has to work through the search.php script.

heres the code from my website.

<form name="search_form" method="post" enctype="multipart/form-data" action="search.php">

<table id="quick-search" cellpadding=0 cellspacing=0>

<tr><td class="white">Search</td><td></td><td>

<input name="word" type="text" size="15" maxlength="50" class="search_inputs" onfocus="this.className='search_inputs-focus';" onblur="this.className='search_inputs';"></td>

<td><input name="Submit" type="image" value="Search" src="http://mywebsite.com/templates/default/images/search.png" style="border: 0px;"></td>

</tr></table>

</form>

when i try the following code> <a href="http://mywebsite.com/search.php?
post=toyota" >toyota</a>

the results are, all the content on the website. is there a way i can modify the code so only toyotas appear in the results or whatever i choose?

thanks in advanced
 
what i would is utilize javascript to create a dynamic text field. When you type a letter, it show sites below the field. You need ajax for this.
 
Back
Top