
October 23rd, 2003, 06:21 AM
|
|
Contributing User
|
|
Join Date: Oct 2003
Location: West Midlands, U.K.
Posts: 47
Time spent in forums: < 1 sec
Reputation Power: 5
|
|
|
Calling Function From Another Form On Another Page
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.
Code:
If (CStr(Request.Form("Submit")) = "Empty") Then
emptybasket
end if
Above is the code that empties the basket on basket.asp. Below is the Submit button code.
Code:
<input name="Submit" type="Submit" value="Empty">
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
__________________
http://www.xlibris.co.uk
http://janusz.monkey-it.co.uk
|