|
 |
asp_web_howto thread: RE: again getting mad...GRRR
Message #1 by "Schelling, Michael" <schellim@s...> on Thu, 13 Jun 2002 10:18:22 -0400
|
|
Are you absolutely sure password out of database is qsdf? When I want to
make sure that form values I think are being passed are actually being
passed I use the following asp file (checkform.asp) as my form Action.
<form name=stuff method=post action=checkform.asp>
This show you what values are being passed by the form. It will list the
value and field name. Pretty handly.
----------------- checkform.asp -------------
<%@ LANGUAGE="VBSCRIPT" %>
DIM FormItem
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Check Form</title>
</head>
<body>
Check form fields:
<p>
Count: <% Response.Write Request.Form.Count %>
<p>
<Table border=1 cellpadding=4 cellspacing=4>
<%
For each FormItem in Request.Form
Response.Write "<tr><td>"
Response.Write FormItem & "</td><td>"
Response.Write Request.Form(FormItem).Item
Next
%>
</table>
</body>
</html>
---------------------------------------------------------
-----Original Message-----
From: Eric Van Camp [mailto:eric@a...]
Sent: Thursday, June 13, 2002 9:44 AM
To: ASP Web HowTo
Subject: [asp_web_howto] again getting mad...GRRR
i want to compare two strings...
i wrote to the window
"password out of database=qsdf and password out of form = "
the one getting out of the database, the other out of the form
as you see the one from the database is filled in, the other one is empty
although this is the case the
if passwordDbase<>passwordForm then
response.redirect...
else
....gofurther...
end if
apparantly my code is not able to compare the strings as it always executes
the code from "go further"..
what do i do wrong???
Eric
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20
Message #2 by Mark Eckeard <meckeard2000@y...> on Thu, 13 Jun 2002 07:05:38 -0700 (PDT)
|
|
I would try:
if ucase(cstr()) <> ucase(cstr())
to make sure they are both the correct case and are
both string.
Mark.
--- Eric Van Camp <eric@a...> wrote:
> i want to compare two strings...
> i wrote to the window
> "password out of database=qsdf and password out of
> form = "
> the one getting out of the database, the other out
> of the form
> as you see the one from the database is filled in,
> the other one is empty
> although this is the case the
> if passwordDbase<>passwordForm then
> response.redirect...
> else
> ....gofurther...
> end if
>
> apparantly my code is not able to compare the
> strings as it always executes
> the code from "go further"..
> what do i do wrong???
> Eric
>
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
>
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
> r-20
> Constructing Accessible Web Sites
>
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
> r-20
> Practical JavaScript for the Usable Web
>
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
> r-20
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
Message #3 by "Eric Van Camp" <eric@a...> on Thu, 13 Jun 2002 15:43:44 +0200
|
|
i want to compare two strings...
i wrote to the window
"password out of database=qsdf and password out of form = "
the one getting out of the database, the other out of the form
as you see the one from the database is filled in, the other one is empty
although this is the case the
if passwordDbase<>passwordForm then
response.redirect...
else
....gofurther...
end if
apparantly my code is not able to compare the strings as it always executes
the code from "go further"..
what do i do wrong???
Eric
|
|
 |