|
|
#1 |
|
Senior Member
Join Date: May 2006
Posts: 391
Rep Power: 19 ![]() |
Google has alerted me that duplicate titles are hindering proper indexing of my pages. I tracked the problem down to user that search by state, instead of showing the state the default title is shown. I’m using the code below and trying to add in the state, any ideas? Right now the second to last if/else is getting called. {$smarty.get.opt1}
Thanks in advance. PHP Code:
|
|
|
|
|
|
#2 |
|
Moderator
|
Looks like they are choosing the default for you opt 1 extra field that is apparently ''.
Just expand you if else like this for other fields: PHP Code:
Also, it is wise to always escape user input especially when it is being printed out to the browser before it has been processed by the script. I've added the |escape modifier to your $_GET variables which is the same as htmlentities() I think. http://smarty.php.net/manual/en/lang...ier.escape.php Here is the link for the $_GET variable for reference. http://smarty.php.net/manual/en/lang...ty.request.php |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Search result | objelland | v3.1 Questions & Support | 11 | 12-18-2007 10:11 AM |
| Problems integrating search engine | Avi8r | v3.1 Questions & Support | 1 | 05-11-2007 08:13 AM |
| Search: Only display cities when state has been chosen? | wiredhat | v3.1 Questions & Support | 3 | 01-24-2007 04:35 PM |
| Each AD as a Search Result? | garysr | v3.1 Questions & Support | 6 | 11-06-2006 03:46 AM |
| Search in Navigation bar | marketingsolutions | v3.1 Questions & Support | 0 | 11-02-2006 12:10 PM |