Loading ...
Sorry, an error occurred while loading the content.

[PBML] Stumped! Unstumped!

Expand Messages
  • Greg Webster
    ... Looks like you ve got it...I made these two changes and all worked well! Thanks! Greg Your faithful moderator
    Message 1 of 1 , Jan 3, 2000
    • 0 Attachment
      "Jeff Boes" <jboes@...> wrote:
      >> # If administrator, create administration form
      >> if ($FORM{USERNAME} =~ $adminuser && $FORM{PASSWORD} =~ $adminpass)
      >
      >Ooh. You should be aware that doing '=~' like this is a pattern match. You
      >probably want /$adminuser/ and
      >/$adminpass/, and even then this probably isn't what you meant, because a
      >username of 'notadmin' will match. You probably want
      >
      >if ($FORM{USERNAME} eq $adminuser && $FORM{PASSWORD} eq $adminpass)
      >
      >
      >> # If not admininstrator, do the relocation
      >> if ($FORM{USERNAME} != $adminuser)
      >
      >'ne' is better than '!=' because you want a string, not a numeric
      >comparison. This is going to do something silly, like convert both sides to
      >numbers first and then compare them.

      Looks like you've got it...I made these two changes and all worked well! Thanks!

      Greg
      Your faithful moderator
    Your message has been successfully submitted and would be delivered to recipients shortly.