Go Back   Computer Forums > Web Design | Website Development > Web Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 08-05-2006, 07:32 PM   #1
Baseband Member
ussvoyager74656's Avatar
Join Date: Jun 2006
Posts: 58
Question 2 Submit buttons 1 field

Okay, I am trying to put these two different search engines on my web page. Google and Ebay. But I want to use one field instead of two and use one button for eBay and one button for google. Here is the code of Ebay and Google. Any ideas?

<!-- Search Google -->
<FORM method=GET action=http://www.google.com/custom>
<TABLE bgcolor=#FFFFFF cellspacing=0 border=0>
<tr valign=top><td>
<A HREF=http://www.google.com/search>
<IMG SRC=http://www.google.com/logos/Logo_40wht.gif border=0 ALT=Google align=middle></A>
<INPUT TYPE=text name=q size=31 maxlength=255 value="">
<INPUT type=submit name=sa VALUE="Google Search">
<INPUT type=hidden name=cof VALUE="AH:center;AWFID:f80bcbf53985fcf2;">

<!-- Search Google -->

<form action="http://search.ebay.com/search/search.dll" method="GET">
<width="40%" align=center valign=top rowspan=2>
<table width="50%" border="0" cellspacing="0" cellpadding="0" align="CENTER" nowrap>
<tr nowrap>
<td class="small_font" nowrap>
<input TYPE=hidden NAME=MfcISAPICommand VALUE=GetResult>
<input type=text name=query size=16 maxlength=100 value="">
<input TYPE="SUBMIT" VALUE="eBay Search">
<input type=hidden name=categoryid value="">
<input type=hidden name=ht value=1>
<input type=hidden name=st value=2>

Ryan M
ussvoyager74656 is offline   Reply With Quote
Old 08-06-2006, 10:45 AM   #2
Baseband Member
PseudoEvolution's Avatar
Join Date: Aug 2006
Posts: 40
Default Re: 2 Submit buttons 1 field

I could help your code if it was cleaner. Like just post the form stuff, get rid of the table garbage etc... Sorry, I just can't stand the old HTML code.

Try this: http://blog.coderlab.us/2005/10/04/m...ons-in-a-form/
PseudoEvolution is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 08:56 AM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0