|
|
|
|
|
| | |
| |
Active Server Pages asp search engine active server page asp application components tutorial CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
|
|
Subject: |
Re: Adding Functions |
|
From: |
Tim |
|
Date: |
7/21/1999 8:18:17 AM |
|
IP: |
207.51.162.13 |
You need to return the values calculated inside the functions to the function names. Instead of using Response.Write set the values to the function names like this:
<%
Function carda
cards = request.querystring("cardnumber")
If cards = 1 Then
carda = 5
Elseif cards > 1 Then
carda = 20
End If
End Function
Function cardb
cards = request.querystring("cardnumber")
If cards = 1 Then
cardb = 1
Elseif cards > 1 Then
cardb = 20
End If
End Function
%>
|
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|