title: change admin password (need to make form)
body: <p>i make the admin panel and have a problem.
  need some help to make form for change password in ac-config.php file.</p>
  
  <p>need form for change the adminpassword
      $adminpass = "adminpassword"; </p>
  
  <p>thankyou
  wait for useaful help.</p>
  
  <p>ac-config.php</p>
  
  <pre><code>&lt;?php
  //Admin Username and password
  $adminuser = "admin";
  $adminpass = "adminpassword";
  
  //Error message variables
  $not_logged_in_message_error_message = "Error&lt;br&gt;&lt;br&gt;You Are not logged in. Go back and try again!&lt;br&gt;&lt;br&gt;";
  $incorrect_error_message = "Error&lt;br&gt;&lt;br&gt;You have entered the incorrect username and/or password, please go back and try again!&lt;br&gt;&lt;br&gt;";
  $no_pass_or_user_error_message = "Error&lt;br&gt;&lt;br&gt;You have either not entered a password or a username, please go back and try again!&lt;br&gt;&lt;br&gt;";
  
  //The first page you want the script to go to after creating those cookies (this page must include the validating code as seen in admin1.php)
  $first_page = "ac-admin.php";
  ?&gt;
  </code></pre>
  
  <p>that is my login verify
  ac-login.php</p>
  
  <pre><code>&lt;?php
  $formuser = $_POST["formuser"];
  $formpass = $_POST["formpass"];
  $formpass = md5($formpass);
  if($formuser &amp;&amp; $formpass) {
      setcookie ("cookuser");  
      setcookie ("cookpass");
  
      setcookie ("cookuser", $formuser);
      setcookie ("cookpass", $formpass);
      header("Location: ac-admin.php");
      }
      else {
          include("ac-config.php");
      echo($no_pass_or_user_error_message);
      }
  ?&gt;
  </code></pre>
  
  <p>ac-admin.php</p>
  
  <pre><code>&lt;link href="css.css" rel="stylesheet" type="text/css" /&gt;
  &lt;?php error_reporting(E_ALL ^ E_NOTICE); ?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Admin&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id="content"&gt;
  &lt;div id="logo"&gt;&lt;/div&gt;
  &lt;?php include("nav.php"); ?&gt;
  &lt;?php
  include("ac-config.php");
  $cookuser = $_COOKIE["cookuser"];
  $cookpass = $_COOKIE["cookpass"];
  $adminpass = md5($adminpass);
  $moderatorpass = md5($moderatorpass);
  if($cookuser &amp;&amp; $cookpass) {
      if(($cookuser == $adminuser || $cookuser == $moderatoruser) &amp;&amp; ($cookpass == $adminpass || $cookpass == $moderatorpass)){
      //Any protected stuff you want goes in here!
      echo'&lt;green&gt;Successfully logged in!&lt;/green&gt;&lt;br /&gt;&lt;br /&gt;';
      }
      else{
      echo($incorrect_error_message);
      }
  }
  else{
  echo($not_logged_in_message_error_message);
  }
  ?&gt;
  
  This is Admin Page&lt;br /&gt;
  Anything want can place here&lt;br /&gt;
  &lt;div id="footer"&gt;CopyRight 2011 - All Rights Reserved&lt;/div&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>