Jump to content


Photo

Searching using different headers


  • Please log in to reply
4 replies to this topic

#1 hansman

hansman
  • Members
  • PipPipPip
  • Advanced Member
  • 100 posts

Posted 23 July 2006 - 04:48 AM

I am trying to make a site that searches other sites,
i have 3 headers similar to this

<? 
header ("Location: http://www.phazeddl.com/search.php?q=".urlencode($_GET['input']));
?>

how would i choose what header i want to use by a drop down menu or radial buttons?

#2 Branden Wagner

Branden Wagner
  • Members
  • PipPipPip
  • Advanced Member
  • 111 posts

Posted 23 July 2006 - 04:50 AM

thats just personal preference.. id say drop down to eliminate clutter.

#3 hansman

hansman
  • Members
  • PipPipPip
  • Advanced Member
  • 100 posts

Posted 23 July 2006 - 04:55 AM

yes but how would i program it so when i choose a certian option on the dropdown, it will use the proper header

#4 Joe Haley

Joe Haley
  • Members
  • PipPipPip
  • Advanced Member
  • 103 posts
  • LocationCanada, eh?

Posted 23 July 2006 - 11:32 AM

<select name="var">
<option value="abc" selected="selected">abc</option>
<option value="xyz">xyz</option>
</select>

$_GET['var'] // value of 'abc' or 'xyz'
Give a man a fish; you have fed him for today.  Teach a man to fish; and you have fed him for a lifetime
Don't teach men to program. Teach them to fish.

Please, try the RTFM solution before asking for help:
http://php.net/manual/en/index.php

#5 hansman

hansman
  • Members
  • PipPipPip
  • Advanced Member
  • 100 posts

Posted 01 September 2006 - 03:43 AM

and whatwould i do to hook the value into a certain header?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users