| DlSoftware Computer & Webmaster Support http://forums.dlsoftware.net/ |
|
| PHP question http://forums.dlsoftware.net/topic2295.html |
Page 1 of 1 |
| Author: | puternerd [ Thu Feb 04, 2010 5:33 pm ] |
| Post subject: | PHP question |
Where can I find instructions on how to insert keywords into my website based upon what someone was searching for? For example, if the person types in "flying pigs" and ends up clicking my link, I'd like to see the words, "flying pigs" in my title and throughout my website. |
|
| Author: | Helix240 [ Wed Feb 10, 2010 1:09 am ] |
| Post subject: | Re: PHP question |
I'm not quite sure which search you're referring to, are you talking about an integrated search found in your website or a search engine like Google? If you're referring to something like Google, then creating a script that would do that would probably be considered black hat SEO as it could be considered cheating the system by creating such keywords automatically. If you're referring to the other thing I mentioned, unfortunately I'm not a PHP expert so I can't guide you through it but it should be possible, try looking at the search functions of some free blog/CMS scripts as they usually do that and you can try to modify that code to suit your needs. |
|
| Author: | web219 [ Wed Aug 25, 2010 6:49 pm ] |
| Post subject: | Re: PHP question |
Helix240 wrote: I'm not quite sure which search you're referring to, are you talking about an integrated search found in your website or a search engine like Google? If you're referring to something like Google, then creating a script that would do that would probably be considered black hat SEO as it could be considered cheating the system by creating such keywords automatically. I am petty sure it is impossible unless until you get access to google search database. Helix240 wrote: If you're referring to the other thing I mentioned, unfortunately I'm not a PHP expert so I can't guide you through it but it should be possible, try looking at the search functions of some free blog/CMS scripts as they usually do that and you can try to modify that code to suit your needs. This (the above thing) is not very difficult. Get querystring of searched word or phase in next (php) page through $_POST['variable_fieldname'] or $_GET['variable_fieldname']. You can directly show this (searched word) in title by putting the above statement ($_POST or $_GET) in title like as follows. <title> <?PHP echo $_POST['Variable_Fieldname'] ?></title> Hope it helps. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|