Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

drop-down list - submit issues

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-31-2008, 05:17 PM
 
jholley jholley is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 66
 

Default drop-down list - submit issues

I have a drop-down list on our site which looks like this

<form action="home.php" name="specialform" method="post" >
<select name="special_cat2" style="width: 130px; text-align: center" onchange='javascript: document.specialform.action = document.specialform.special_cat2.value; document.specialform.submit();'>
<option value="" selected>{$lng.lbl_photo_housings}</option>
<option value="categoryurl.html">Title Goes Here</option>
<option value="categoryurl.html">Title Goes Here</option>
<option value="categoryurl.html">Title Goes Here</option>
</form>


When I select one of the options the results actually open up as search results.
I want it to just go to the category page.

Any idea how to change this to work?
__________________
Joe Holley
4.2
Reply With Quote
  #2  
Old 01-01-2009, 03:27 AM
  Vetrivel's Avatar 
Vetrivel Vetrivel is offline
 

eXpert
  
Join Date: Apr 2008
Posts: 398
 

Default Re: drop-down list - submit issues

Do you got any error?
Quote:
Originally Posted by jholley
I have a drop-down list on our site which looks like this

<form action="home.php" name="specialform" method="post" >
<select name="special_cat2" style="width: 130px; text-align: center" onchange='javascript: document.specialform.action = document.specialform.special_cat2.value; document.specialform.submit();'>
<option value="" selected>{$lng.lbl_photo_housings}</option>
<option value="categoryurl.html">Title Goes Here</option>
<option value="categoryurl.html">Title Goes Here</option>
<option value="categoryurl.html">Title Goes Here</option>
</form>


When I select one of the options the results actually open up as search results.
I want it to just go to the category page.

Any idea how to change this to work?
Reply With Quote
  #3  
Old 01-01-2009, 10:32 AM
 
jholley jholley is offline
 

Advanced Member
  
Join Date: Jan 2007
Posts: 66
 

Default Re: drop-down list - submit issues

Quote:
Originally Posted by Vetrivel
Do you got any error?

No errors. It actually works the way it was designed to. And of course I seem to try to make things harder on myself than they should be.
__________________
Joe Holley
4.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020