freemann wrote:
"Bob Barrows [MVP]" wrote:
freemann wrote: "Bob Barrows [MVP]" wrote:
> freemann wrote:
>>>
>>>
>> dim amount
>> amount = Request.Form("amount")
>>
>> It all works fine without the if statement but I would really like
>> to have the comment category (individual or couple) to go along
>> with the amount.
>>
>> Thanks.
>
> So where is the result of
>
> response.write amount
>
> ??
>
>
This is sending to a text file:
objTextStream.WriteLine amount
And this is sending to another webpage for processing:
<% InsertSignature(amount)%>
I don't understand. What does this have to do with my request for you to
put a "response.write amount" statement into your page and run the page
to see what the amount variable contains? This is basic debugging, and
is necessary in this case if we are to have any chance of answering your
question.
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
If I understand what you are saying, the amount variable contains nothing. I
am getting the amount for an input form which is then passed to a couple
other forms.
My main concern is how to apply an if then else statement in asp scripting.
Your example is syntactically correct, so you know how to apply an
if...then...else statement. What your concern should be is to get it
to work correctly based on the values of the variables you are
comparing. You can't do that without checking the value of the
variables, and as Bob has pointed out in three posts up to now, the
only way to do that is to response.write the variables to the page at
appropriate intervals.
amount = Request.Form("amount")
response.write "Amount is " & amount
Is your form's method post or get? Also show the html for the radio
buttons - not the entire form.
--
Mike Brind