
August 6th, 2004, 11:27 AM
|
|
Registered User
|
|
Join Date: Aug 2004
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Code behaving strangely
i am not sure how to explain this so heres the code first
Code:
<!--#include file="conn.asp" -->
<%
Response.buffer = True
Response.ContentType = "text/vnd.wap.wml"
Dim SQLquery, uniqueid, username
Dim rsUser
uniqueid = Request.Cookies("User-Identity-Forward-msisdn")
If uniqueid = "" Then
uniqueid = 646467469
End If
%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<% dim voucher, res %>
<template>
<do type="prev" label="Back"><prev/></do>
</template>
<card id="voucherType" title="Voucher Menu">
<p>Available vouchers:
<select name="type" title="voucher">
<option onpick="#Type">Type 1</option>
<option onpick="#Type2">Type 2</option>
</select>
<br/>
</card>
<card id="Type" title="Voucher Selection">
<% voucher = "type1" %>
<p><i>Additional info on voucher here</i></p>
<p>Are you sure?</p>
<a href="mainMenu.asp">Confirm</a>
</card>
<card id="Type2" title="Voucher Selection">
<% voucher = "type2" %>
<p><i>Additional info on voucher here</i></p>
<p>Are you sure?</p>
<a href="mainMenu.asp">Confirm</a>
</card>
<% SQLquery = "UPDATE tblUser SET voucher='" & voucher & "' WHERE UserIdentifier = " & uniqueid
conn.execute(SQLQuery)
%>
</wml>
<!--#include file="unconn.asp" -->
my problem is that type1 nevers gets sent to the database, type2 always gets sent instead even though i select type1
am i missing something stupid here (relatively new to ASP)
oh yeah, this is for a mobile application
|