How to link to search engine results page?
I have a search script that searches thumbnails and displays the correct results. I.e search for kate moss and it displays all thumbnails with kate moss in the results. I want to add a directory to it, listing all the celebs contained within the search engine. The easiest way to do this would be to link direct to the search results - however I am having trouble determing what the link would actually need to be.....
My website is oldsocks.co.uk
I thought to link to kate moss results it would be something like-
oldsocks.co.uk/search.php?kate moss
Quite clearly it isn't - so if anybody could shed some light on how I can actually link direct to a search result page???
It would help me alot.
Suzanne posted this at 16:06 — 22nd April 2004.
She has: 5,507 posts
Joined: Feb 2000
what's your query???
search.php?fieldname=kate+moss
Old Socks posted this at 16:27 — 22nd April 2004.
They have: 76 posts
Joined: Mar 2004
http://www.oldsocks.co.uk/search.php?txtSearch=kate+moss
it would be this - but that simply displays the search script with the search query in the box - it doesnt bring up any results
Suzanne posted this at 16:50 — 22nd April 2004.
She has: 5,507 posts
Joined: Feb 2000
well, lol... you have it all hidden -- if you do that, you won't have an url to use.
Generally you test to see if a variable has a value, and if it does, you display something different.
i.e.
<?php
if (!$_POST['cmdsearch']) {
if ($search != '') {
// display the results
} else {
// display the search form
}
} else {
$search = $_POST['cmdsearch'];
// display the results
}
?>
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.