Q about ASP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Richard Hijdra

    Q about ASP

    Maybe not the right NG I know,
    but can't find a ASP NG so I'll try anyway...

    I have the following piece of code

    <%@ Language=VBScri pt %>
    <%
    if Request("passwo rd1")="123" then
    Session("logino kay") = True
    end if
    %>

    Now I want to be able to put in multiple passwords (instead of 123) but
    I can't find the right syntax to do that, the answer must be too simple
    but I just can't manage.

    Please help ;-)

    Richard

  • Hywel

    #2
    Re: Q about ASP

    In article <411737e0$0$497 11$e4fe514c@new s.xs4all.nl>, Richard Hijdra
    says...[color=blue]
    > Maybe not the right NG I know,
    > but can't find a ASP NG so I'll try anyway...
    >
    > I have the following piece of code
    >
    > <%@ Language=VBScri pt %>
    > <%
    > if Request("passwo rd1")="123" then
    > Session("logino kay") = True
    > end if
    > %>
    >
    > Now I want to be able to put in multiple passwords (instead of 123) but
    > I can't find the right syntax to do that, the answer must be too simple
    > but I just can't manage.
    >
    > Please help ;-)[/color]

    if Request("passwo rd1")="123" or Request("passwo rd1")="456" then

    A rather inefficient way of doing it, though. Use a database.

    --
    Hywel


    Comment

    • Richard Hijdra

      #3
      Re: Q about ASP

      Hywel wrote:
      [color=blue]
      > In article <411737e0$0$497 11$e4fe514c@new s.xs4all.nl>, Richard Hijdra
      > says...
      >[color=green]
      >>Maybe not the right NG I know,
      >>but can't find a ASP NG so I'll try anyway...
      >>
      >>I have the following piece of code
      >>
      >><%@ Language=VBScri pt %>
      >><%
      >>if Request("passwo rd1")="123" then
      >>Session("logi nokay") = True
      >>end if
      >>%>
      >>
      >>Now I want to be able to put in multiple passwords (instead of 123) but
      >>I can't find the right syntax to do that, the answer must be too simple
      >>but I just can't manage.
      >>
      >>Please help ;-)[/color]
      >
      >
      > if Request("passwo rd1")="123" or Request("passwo rd1")="456" then
      >
      > A rather inefficient way of doing it, though. Use a database.
      >[/color]
      Yeah, but the user group will not be that long.
      Tanx!

      Richard

      Comment

      • Evertjan.

        #4
        Re: Q about ASP

        Richard Hijdra wrote on 09 aug 2004 in comp.lang.javas cript:
        [color=blue]
        > Maybe not the right NG I know,
        > but can't find a ASP NG so I'll try anyway...
        >
        > I have the following piece of code
        >
        > <%@ Language=VBScri pt %>
        > <%
        > if Request("passwo rd1")="123" then
        > Session("logino kay") = True
        > end if
        > %>
        >
        > Now I want to be able to put in multiple passwords (instead of 123) but
        > I can't find the right syntax to do that, the answer must be too simple
        > but I just can't manage.[/color]

        I wouldn't advise you to go on with ASP if you cann't even find an ASP NG,
        Richard.

        Loginbeveiligin g heeft nogal wat voetangels en klemmen.

        <microsoft.publ ic.inetserver.a sp.general>

        And for database related questions:
        <microsoft.publ ic.inetserver.a sp.db>

        --
        Evertjan.
        The Netherlands.
        (Please change the x'es to dots in my emailaddress)

        Comment

        • Richard Hijdra

          #5
          Re: Q about ASP

          > Richard Hijdra wrote on 09 aug 2004 in comp.lang.javas cript:[color=blue]
          >
          >[color=green]
          >>Maybe not the right NG I know,
          >>but can't find a ASP NG so I'll try anyway...
          >>
          >>I have the following piece of code
          >>
          >><%@ Language=VBScri pt %>
          >><%
          >>if Request("passwo rd1")="123" then
          >>Session("logi nokay") = True
          >>end if
          >>%>
          >>
          >>Now I want to be able to put in multiple passwords (instead of 123) but
          >>I can't find the right syntax to do that, the answer must be too simple
          >>but I just can't manage.[/color]
          >
          >
          > I wouldn't advise you to go on with ASP if you cann't even find an ASP NG,
          > Richard.[/color]
          It's just a way of testing it, in the future there must come a database
          solution.
          [color=blue]
          >[/color]
          <DUTCH LANGUAGE>[color=blue]
          > Loginbeveiligin g heeft nogal wat voetangels en klemmen.[/color]
          Ik weet het, maar je moet wat...
          </ DUTCH LANGUAGE>[color=blue]
          >
          > <microsoft.publ ic.inetserver.a sp.general>
          >
          > And for database related questions:
          > <microsoft.publ ic.inetserver.a sp.db>
          >[/color]
          Tanx

          Comment

          • Peter O'Reilly

            #6
            Re: Q about ASP

            try Microsoft's public newsgroup::
            news://news.microsoft.com/microsoft....er.asp.general

            --
            Peter O'Reilly
            (knows ASP, but doesn't understand your question)


            Comment

            Working...