title: keep getting internal error with apache perl
body: <p>I have simple sign in page. when i enter abc and 123 as login credentials it should redirect me to login successful page but it keeps giving me the internal error.If login information is not abc and 123 it should redirect to wrong login page. Maybe my if statement is wrong. Can you check my code out? Please.</p>
  
  <pre><code>#!/usr/bin/perl
  
  use CGI qw( :standard );
  
  $user = param( "user" );
  $password = param( "password" );
  
  $user = param( "user" );
  $password = param( "password" );
  
  if ($user == "abc") &amp;&amp; ($password == "123")
  print redirect ( "../../login.htm" );
  }
  
  if (!$user ne "abc") || (!$password ne "123")
  print redirect ( "../../wrong.htm" );
  }
  </code></pre>