ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

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 Dev Shed Forums Sponsor:
  #1  
Old October 28th, 2003, 06:29 PM
seb835 seb835 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: UK, London
Posts: 95 seb835 User rank is Lance Corporal (50 - 100 Reputation Level)seb835 User rank is Lance Corporal (50 - 100 Reputation Level)seb835 User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 9 h 36 m 11 sec
Reputation Power: 6
Very annoying ASP problem

Hi, I have this ASP/WML page made and im trying to compare two passwords to see if they match (when a user registers). Here is the code:


<% @ language="vbscript" %>
<% Option Explicit %>
<% Response.ContentType = "text/vnd.wap.wml" %>
<!-- #include file="adovbs.inc" -->
<!-- #include file="dataConnect.asp"-->

<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>

<card title="Book 02">

<p>
You entered:<br/><br/>

First Name: $(string1)<br/>
Last Name: $(string2)<br/>
User Name: $(string3)<br/>
Password: $(string4)<br/>
Re-entered: $(string5)<br />


<%
Dim passMatch

passMatch = "$(check)"

Response.Write passMatch & "<br/><br/>"

If passMatch = 1 Then
Response.Write "Result is one"
End If


%>

</p>

<do type="accept" label="Answer">
<go href="book03.asp" method="get" >
<postfield name="firstName" value="$(string1)" />
<postfield name="lastName" value="$(string2)" />
<postfield name="userName" value="$(string3)" />
<postfield name="passOne" value="$(string4)" />
<postfield name="passTwo" value="$(string5)" />

</go>
</do>

</card>

</wml>


However, when i type in the code in red (above), the whole page wont load anymore. Can anyone help me with this? I mean surely this small bit of red code should work with no problem? The variable $(check) will either be -1, 0, or 1 because it is the result of a string compare function in a WMLScript page: var chk = String.compare(str4, str5);

If i leave this small bit of code out then the page works fine on the nokia wap simulator.

Many thanks for any help!

Last edited by seb835 : October 28th, 2003 at 06:32 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Very annoying ASP problem


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 1 hosted by Hostway
Stay green...Green IT