Code:
<?php echo $this->getUrl(); ?>
But now, what I want is, when any particular option is selected, it should add to this url.
.e.g.
Code:
www.domain.com/index.php/wordpress/
I write this code for it but now don know how to get it done.
Code:
<select onchange="setLocation('<?php echo $this->getUrl(); ?>')">
<option value="">&nbsp;</option>
<option value="wordpress">Wordpress</option>
<option value="drupal">drupal</option>
<option value="magento">Megento</option>
</select>
Also, I had searched this link but couldn't take help from it. As it didnt work for me.
Code:
<select name="forma" ONCHANGE="location = this.options[this.selectedIndex].value;">
<option value="Home">Home</option>
<option value="Contact">Contact</option>
<option value="Sitemap">Sitemap</option>
</select>