Forums

This topic is locked

Help

Posted 14 Apr 2002 06:08:24
1
has voted
14 Apr 2002 06:08:24 Armen Mardirousi posted:
I have a question. First let me give you a little run-down as to what it is
I'm trying to do.

I'm using ASP/VBScript.

I have , among others, three fields in a database table: TOTAL, CLICK, and
URL. I want to: TOTAL = TOTAL - CLICK every time a link is activated
(clicked). I'm currently doing this as follows. I'm passing the three values
using get. On the next page I perform the arithmetic operation, place the
values in a hidden form, and submit the form when the page loads [ONLOAD =
document.form1.submit()]. And when the form is submitted, the user is
redirected to the URL.

This is working fine. However, I have tow concerns. 1) This causes a delay
between the clicking of the link to arriving at the destination, and 2) If
the user wishes to use the browser back button they will need to
double-click it otherwise they will go back to the hidden form and be
redirected to the current page (again).

Is there a way of doing things so that everything can be done on the server
and bypass the hidden form. I mean, I'm sure there is...can anyone help?

-Armen

Reply to this topic