Code Bank
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingCode Bank

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old August 6th, 2004, 11:27 AM
korbitz korbitz is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Aug 2004
Posts: 1 korbitz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingCode Bank > Code behaving strangely


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT