I have been able to set up a click through counter on ordinary hyperlinks and buttons.
Ie. <a href="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="select" class="dropdown" style="width:123px" ONCHANGE="gotoURLres(this)">
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=cinema">Cinema</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Clubs">Clubs</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Museums">Museums</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Pubs">Pubs</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Restaurants">Restaurants</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Theatre">Theatre</option>
</select>
If I try and insert 'click_through.asp' in the value string, like so:
<option value="click_through.asp?URL=146.101.2.112/headinout/site/business.asp?bus_cat=cinema">Cinema</option>
It get an error message - Page not found.
Can anyone help please?
Ie. <a href="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="select" class="dropdown" style="width:123px" ONCHANGE="gotoURLres(this)">
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=cinema">Cinema</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Clubs">Clubs</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Museums">Museums</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Pubs">Pubs</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Restaurants">Restaurants</option>
<option value="146.101.2.112/headinout/site/business.asp?bus_cat=Theatre">Theatre</option>
</select>
If I try and insert 'click_through.asp' in the value string, like so:
<option value="click_through.asp?URL=146.101.2.112/headinout/site/business.asp?bus_cat=cinema">Cinema</option>
It get an error message - Page not found.
Can anyone help please?