|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Very annoying ASP problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|