can someone explain how i can make this work
on a form there are two buttons one does a calculation and displays a result the other goes to another page -
<form>
<input name="action" type="image" src="images/calcbut1_01.gif" width="108" height="50" border="0" value = "X">
<input name="action" type="image" src="images/tbot14_02.gif" width="75" height="50" border="0" value = "A">
</form>
'when the page is refreshed i want it to run this
a = Request.Form("action")
If (a = "" Or IsNull(a)) Then
a = "A" ' Copy record
Else
a = "X" ' Display 100
End If
Select Case a
Case "X":
purchtot = disc1 + 100
Case "A":
response.direct "main.asp"
'then this value is displayed?
<% response.Write purchtot %>
on a form there are two buttons one does a calculation and displays a result the other goes to another page -
<form>
<input name="action" type="image" src="images/calcbut1_01.gif" width="108" height="50" border="0" value = "X">
<input name="action" type="image" src="images/tbot14_02.gif" width="75" height="50" border="0" value = "A">
</form>
'when the page is refreshed i want it to run this
a = Request.Form("action")
If (a = "" Or IsNull(a)) Then
a = "A" ' Copy record
Else
a = "X" ' Display 100
End If
Select Case a
Case "X":
purchtot = disc1 + 100
Case "A":
response.direct "main.asp"
'then this value is displayed?
<% response.Write purchtot %>