natasha_thomas Posted March 5, 2011 Share Posted March 5, 2011 Folks, I have drop down form with one input box then one category selection from the dropdown then we hit "Search" to load search.php. I want that Google should crawl all the categories from my dropdown box for SEO Purposes. Does it do that? Here is the code i am using: <!-- Brand/ Manufacturer Search --> <div id="search" class="floatcenter"> <form id="searchform" method="get" action="search.php"> <label>Search By Brand/ Manufacturer: </label> <select name="q"> <option value="SelectBrand">Select Brand</option> <?php if(isset($this->search->options)): ?> <?php foreach($mfg as $lolachild): ?> <option value="<?php echo $lolachild; ?>"><?php echo ucwords($lolachild); ?></option> <?php endforeach; ?> <?php endif; ?> </select> <select name="sc"> <option value="All"><?php eprint(LangAll); ?></option> <?php if(isset($this->search->options)): ?> <?php foreach($this->search->options as $cat): ?> <option value="<?php echo $cat->value; ?>"><?php echo $cat->name; ?></option> <?php endforeach; ?> <?php endif; ?> </select> <input type="submit" value="<?php eprint(LangSearch); ?>" /> </form> </div> <br /> <!-- / search --> If it does not, is there a better way of Implementing the Dropdowwn Menus so google Can Crawl it? Cheers Natasha Quote Link to comment https://forums.phpfreaks.com/topic/229639-can-google-crawlspider-all-my-html-dropdown-menus-and-follow-the-links/ Share on other sites More sharing options...
Pikachu2000 Posted March 5, 2011 Share Posted March 5, 2011 Google won't see the PHP code at all. The spider will see whatever you see when you do a view-->source. Quote Link to comment https://forums.phpfreaks.com/topic/229639-can-google-crawlspider-all-my-html-dropdown-menus-and-follow-the-links/#findComment-1183152 Share on other sites More sharing options...
natasha_thomas Posted March 5, 2011 Author Share Posted March 5, 2011 Google won't see the PHP code at all. The spider will see whatever you see when you do a view-->source. Ok then here is the HTML Source of that Dropdown. Can you tell me will Google follow the combination of both the Dropdown Boxes and index these links? Here Combination Means >> First DropDown is Brand Name | Second DropDown is Category. So there is 3 Brands and 5 Categories so In all, 3*5 = 15 Combinations/links <!-- Brand/ Manufacturer Search --> <div id="search" > <form id="searchform" method="get" action="search.php"> <label>Search By Brand/ Manufacturer: </label> <select name="q"> <option value="SelectBrand">Select Brand</option> <option value="dio.">Dio.</option> <option value="ehs international">Ehs International</option> <option value="prem-i-air branded products">Prem-i-air Branded Products</option> </select> <select name="sc"> <option value="All">All Departments</option> <option value="2">Air Purifiers</option> <option value="52">Health Air Purifiers</option> <option value="53">Air Purifiers Tool</option> <option value="54">Air Purifier Auctions</option> </select> <input type="submit" value="Store Search" /> </form> </div> <!-- / search --> <br /> <!-- Title Break keywords Begins--> Quote Link to comment https://forums.phpfreaks.com/topic/229639-can-google-crawlspider-all-my-html-dropdown-menus-and-follow-the-links/#findComment-1183159 Share on other sites More sharing options...
Philip Posted March 5, 2011 Share Posted March 5, 2011 It might find the search.php, and highly unlikely it would find the other combinations based off of that code alone. Quote Link to comment https://forums.phpfreaks.com/topic/229639-can-google-crawlspider-all-my-html-dropdown-menus-and-follow-the-links/#findComment-1183160 Share on other sites More sharing options...
natasha_thomas Posted March 5, 2011 Author Share Posted March 5, 2011 It might find the search.php, and highly unlikely it would find the other combinations based off of that code alone. You are very right, KP, may you please guide me/help me on how to make it so Google Goes through all my combination? Is it possible at all? I will be grateful for all the help.... As i have spent 15 days to make it work but now someone said, i did a blunder as Google will not see it anyway. :'( And i see goggle not even crawling the Combinations as you rightly pointed out. Let me again explaint what i am trying to achieve: I want to pass on two parameters "sc" and "q", both values as generated dynamically from a PHP foreach loop. Here is the code Again: <!-- Brand/ Manufacturer Search --> <div id="search" class="floatcenter"> <form id="searchform" method="get" action="search.php"> <label>Search By Brand/ Manufacturer: </label> <select name="q"> <option value="SelectBrand">Select Brand</option> <?php if(isset($this->search->options)): ?> <?php foreach($mfg as $lolachild): ?> <option value="<?php echo $lolachild; ?>"><?php echo ucwords($lolachild); ?></option> <?php endforeach; ?> <?php endif; ?> </select> <select name="sc"> <option value="All"><?php eprint(LangAll); ?></option> <?php if(isset($this->search->options)): ?> <?php foreach($this->search->options as $cat): ?> <option value="<?php echo $cat->value; ?>"><?php echo $cat->name; ?></option> <?php endforeach; ?> <?php endif; ?> </select> <input type="submit" value="<?php eprint(LangSearch); ?>" /> </form> </div> <br /> <!-- / search --> What changes shall i do to make it work for Google Crawl? Quote Link to comment https://forums.phpfreaks.com/topic/229639-can-google-crawlspider-all-my-html-dropdown-menus-and-follow-the-links/#findComment-1183161 Share on other sites More sharing options...
Philip Posted March 5, 2011 Share Posted March 5, 2011 Well, you should be using <a href="link_to_page.php">page name</a> instead of select & form tags. Is there any real reason you have the form there to begin with? Quote Link to comment https://forums.phpfreaks.com/topic/229639-can-google-crawlspider-all-my-html-dropdown-menus-and-follow-the-links/#findComment-1183163 Share on other sites More sharing options...
natasha_thomas Posted March 5, 2011 Author Share Posted March 5, 2011 Well, you should be using <a href="link_to_page.php">page name</a> instead of select & form tags. Is there any real reason you have the form there to begin with? KP, The purpose was to dynamically generate the Categories, keywords and brand name. Having a Dropdown is a good Search/Filtering feature of all standard Online Stores. No? Quote Link to comment https://forums.phpfreaks.com/topic/229639-can-google-crawlspider-all-my-html-dropdown-menus-and-follow-the-links/#findComment-1183167 Share on other sites More sharing options...
Philip Posted March 5, 2011 Share Posted March 5, 2011 Sure, filtering is fine for search. Are there normal <a> links to the categories/keywords/brands anywhere else? Quote Link to comment https://forums.phpfreaks.com/topic/229639-can-google-crawlspider-all-my-html-dropdown-menus-and-follow-the-links/#findComment-1183321 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.