PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   Url and Search (http://www.phpdig.net/forum/showthread.php?t=1685)

christophe 12-30-2004 01:43 PM

Url and Search
 
Hello people,
Excuse me my english but i am french....
I would like know if it's possible of changing URL after a search.
Now when i valid a search my URL is :
search.php

I want when i search a "word"
This Url is
search?word

Thank you

rAdoN 12-30-2004 02:36 PM

why you want that

function_phpdig_form

from

PHP Code:

$result['form_head'] = "<form action='$result_page' method='post'> 

to

PHP Code:

$result['form_head'] = "<form action='$result_page?$query_string2' method='post'> 

3 spots - use ?$query_string2

christophe 12-30-2004 03:15 PM

I want this function so that the googlebot can find URL type
search?q=windows
and that that drive directly on the corresponding page

Your function is good for the URL but obviously not when I type the URL directly

Thank you

christophe 12-30-2004 03:19 PM

still excuse me,
makes some for each word I would wish to have this
-http://www.***.com/?q=word
and to post on my index all the words typed on the engine.
Have an idea?

rAdoN 12-30-2004 03:28 PM

function_phpdig_form

PHP Code:

$result['form_head'] = "<form action='$result_page?query_string=$query_string2' method='post'> 

3 spots - use ?query_string=$query_string2

else you try method='get' but see all query string - watch encoding with method='get' - see

http://www.php.net/manual/fr/faq.htm....html.encoding

christophe 12-30-2004 03:45 PM

Yes thank you very much, it is really cool to help me.
Now, I would like to post on a page, all the words already requested
it is possible according to you?

rAdoN 12-30-2004 04:25 PM

look statistics lastqueries for code

christophe 12-31-2004 02:37 PM

hi,
I looked at the code and I succeeded in showing the statistics without authenticating itself.
But makes some, I would wish that all the words typed in the form be posted on a page (bestsearch.php) and that each word can be clicked.
In this way, Google will Know more pages, because it does not index the Web invisble (BDD).
A example :
http://perso.wanadoo.fr/laklouche/dig2.gif

Perhaps, they are a Mod or a Option ???

rAdoN 01-01-2005 01:02 PM

not all word - what for word return no result

christophe 01-01-2005 01:10 PM

Why you say word return no result ?
My result URL is :
search.php?query_string=word
thus if the word is cliquable it is gained

rAdoN 01-01-2005 01:27 PM

i know not your code - what for query_string=asdfgasdfgasdfg

christophe 01-01-2005 04:05 PM

The big problem of my URL
PHP Code:

 $result['form_head'] = "<form action='$result_page?$query_string2' method='post'> 

is that the URL reacts with a time lag on strike

I allows itself to give you an example of site in France with what I wish.
http://www.ledepart.com/

Thanks


All times are GMT -8. The time now is 01:51 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.