Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

click through on drop-down box

Status
Not open for further replies.

idam

Programmer
Nov 1, 2001
5
GB
I have been able to set up a click through counter on ordinary hyperlinks and buttons.

Ie. <a href=&quot;click_through.asp?URL= here</a>

When a person clicks on the hyperlink 'Click here', the 'click_through.asp' is called and the person links through to the new page. Though the person is unaware that the asp script has been called. The url is written to a table in a database, so that I can count how many times it was clicked.

That works fine for hyperlinks and buttons. But my problem is that I am trying to get it to work on a drop-down box. Not only that, but each VALUE in the drop-down box is passing a parameter.

<select name=&quot;select&quot; class=&quot;dropdown&quot; style=&quot;width:123px&quot; ONCHANGE=&quot;gotoURLres(this)&quot;>
<option value=&quot;146.101.2.112/headinout/site/business.asp?bus_cat=cinema&quot;>Cinema</option>
<option value=&quot;146.101.2.112/headinout/site/business.asp?bus_cat=Clubs&quot;>Clubs</option>
<option value=&quot;146.101.2.112/headinout/site/business.asp?bus_cat=Museums&quot;>Museums</option>
<option value=&quot;146.101.2.112/headinout/site/business.asp?bus_cat=Pubs&quot;>Pubs</option>
<option value=&quot;146.101.2.112/headinout/site/business.asp?bus_cat=Restaurants&quot;>Restaurants</option>
<option value=&quot;146.101.2.112/headinout/site/business.asp?bus_cat=Theatre&quot;>Theatre</option>
</select>

If I try and insert 'click_through.asp' in the value string, like so:


<option value=&quot;click_through.asp?URL=146.101.2.112/headinout/site/business.asp?bus_cat=cinema&quot;>Cinema</option>

It get an error message - Page not found.

Can anyone help please?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top