13, May 2008

Search bar question (all html no php) - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Design and Layout  >  Web Page Design  >  HTML & XHTML (Moderator: Meth0d)
Topic: Search bar question (all html no php)
« previous next »
Pages: [1] Print

Author Topic: Search bar question (all html no php)  (Read 674 times)
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« on: Jun 28, 2006, 08:11:28 AM »

I was trying to make myself a new homepage, I thought of an idea. Is it possible to combined the two search bars into one. By that I mean is it possible to have the text input and then if you click the 'image search' it will search images or if you click the 'web search' it will search website.

Heres the link to what i coded so far
http://silent.2dollarhost.net/search.html Visit through proxy

Thanks.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jun 28, 2006, 09:51:04 AM »

yes of course, you need two forms on one page. First check the code at google inside the form tag from both type of search pages.


Last blog : Database Management with phpMyAdmin
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #2 on: Jun 28, 2006, 10:20:42 AM »

i did that and i put them on on page. the way they set it up is each form is sent somewhere else so i dont know how to make it pull whats in the text box out when you click either button.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jun 28, 2006, 10:31:32 AM »

you html code is bad start over again and test the code with the w3 validator Visit through proxy


Last blog : Database Management with phpMyAdmin
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7823
39873 credits
Members referred : 3



« Reply #4 on: Jun 28, 2006, 10:33:01 AM »

You have to do it with javascript. onclick="document.location=.....

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #5 on: Jun 28, 2006, 10:35:06 AM »

yeah its in pieces right now becuase i was copy and pasteing then editing.

yeah i thought i could do it in js i just wasn't sure of the coding behind it. I will have to read up on that and see if i can get it to work.
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6236
38242 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Jun 28, 2006, 10:50:17 AM »

why not this:

Code:
<!-- Search Google -->
<center>
<form method=GET action="http://www.google.com/search">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<table bgcolor="#FFFFFF"><tr><td>
  <p><a href="http://www.google.com/">
    <img src="http://www.google.com/logos/Logo_40wht.gif"
border="0" alt="Google" align="absmiddle"></a></p>
  <p>     
    <input type=text name=q size=25 maxlength=255 value="">
        <input type=submit name=btnG value="Google Search">
    </p>
  </td></tr></table>
</form>
<form method=GET action="http://images.google.com/images">
<input type=hidden name=ie value=UTF-8>
<input type=hidden name=oe value=UTF-8>
<table bgcolor="#FFFFFF"><tr><td>
  <p>     
    <input type=text name=q size=25 maxlength=255 value="">
        <input type=submit name=btnG value="Google Image Search">
    </p>
  </td></tr></table>
</form>
</center>
<!-- Search Google -->


Last blog : Database Management with phpMyAdmin
Der Führer
I feel pretty...
***
Gender: Male
Posts: 183
471 credits
Members referred : 0



« Reply #7 on: Jun 28, 2006, 10:53:22 AM »

yeah i will probably do that. I had that set up but i had to make everything confusing.
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3057
Tags : javascript google html Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Design and Layout  >  Web Page Design  >  HTML & XHTML (Moderator: Meth0d)
Topic: Search bar question (all html no php)
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 13, 2008, 01:28:44 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 34.929
Total Topics: 7.262
Total Members: 3.479
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: mileymo1

28 Guests, 3 Users online :

12 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.