Forums
This topic is locked
How do I call ASP script on another page?
Posted 23 Oct 2003 14:15:46
1
has voted
23 Oct 2003 14:15:46 Janusz Jasinski posted:
Hi,I have an Empty Function on one of my pages, so when the user clicks(submits) on the empty button in the form, the shopping cart empties. This is on basket.asp.
<pre id=code><font face=courier size=2 id=code> If (CStr(Request.Form("Submit") = "Empty" Then
emptybasket
end if</font id=code></pre id=code>
Above is the code that empties the basket on basket.asp. Below is the Submit button (N.B. no angles brackets due to the formatting of this forum)
<pre id=code><font face=courier size=2 id=code> input name="Submit" type="Submit" value="Empty"</font id=code></pre id=code>
I have a seperate page called buy.asp which I want to put the same function, how can I have a similar button on the buy.asp page to empty the shopping cart as seen on basket.asp?
Many thanks.
Janusz
======================
janusz.monkey-it.co.uk