How do I create a "forgot password" and "forgot username" Form?

Good Day,
I am in need of assistance in learning how to create a "forgot password" and "forgot username" form in DW CS4.  I have researched Adobe and the Internet and I am coming somewhat empty on tutorials or step-by-step instructions.
I would appreciate any step-by-step instructions, a link to a good online tutorial, or any other related source that can help me get from beginning to end.
Thank you.

Hope this work for you...
What kind of web programming do you use for? If you use PHP MySQL, you can do it easily.
For example I use a MySQL Table called "admin":
CREATE TABLE IF NOT EXISTS `admin` (
  `id` int(10) NOT NULL AUTO_INCREMENT,
  `name` varchar(64) NOT NULL,
  `email` varchar(64) NOT NULL,
  `username` varchar(64) NOT NULL,
  `password` varchar(64) NOT NULL,
  `activation` varchar(64) NOT NULL,
  `level` int(2) NOT NULL DEFAULT '0',
  `date_registered` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;
INSERT INTO `admin` (`id`, `name`, `email`, `username`, `password`, `activation`, `level`, `date_registered`) VALUES
(1, 'Andoyo', '[email protected]', 'andoyo', 'andoyo', '8e67d638c0d130a4d66b2888ffc8335b', 0, '2011-09-21 10:32:16');
Make two files, they are:
forgot_password.php, contain form and php mail function
error.php, a redirect page if the mail function doesn't work.
And then, use your Dreamweaver to make a recordset, called: rsForgotPassword
Click Insert > Data Objects > Recordset
Name: rsForgotPassword
Connection: adobe_cookbooks
Table: admin
Columns: All
Filter: email, Form variable, =, email. Use form variable to pass the value from the form.
Click OK
Use if function to make the forgot function work perfectly, for example:
If the email is entered correctly, the mail script will run
If the email doesn't exist in the database, the notification will come out
If they open the page directly, they have to type any keyword
Final example:
forgot_password.php
<?php require_once('Connections/adobe_cookbooks.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;  
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
$colname_rsForgotPassword = "-1";
if (isset($_POST['email'])) {
  $colname_rsForgotPassword = $_POST['email'];
mysql_select_db($database_adobe_cookbooks, $adobe_cookbooks);
$query_rsForgotPassword = sprintf("SELECT * FROM `admin` WHERE email = %s", GetSQLValueString($colname_rsForgotPassword, "text"));
$rsForgotPassword = mysql_query($query_rsForgotPassword, $adobe_cookbooks) or die(mysql_error());
$row_rsForgotPassword = mysql_fetch_assoc($rsForgotPassword);
$totalRows_rsForgotPassword = mysql_num_rows($rsForgotPassword);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<p>Forgot your password:</p>
<?php if (isset($_POST['email']) && ($row_rsForgotPassword['email']=="")) {
  $colname_rsForgotPassword = $_POST['email']; ?>
<p>Email doesn't exist in our database</p>
  <?php }elseif (isset($_POST['email'])) {
  $colname_rsForgotPassword = $_POST['email'];
  $username = $row_rsForgotPassword['username'];
$password =$row_rsForgotPassword['password'];
$to = $row_rsForgotPassword['email'];
// Mai function
$subject = "Your username dan password: ".$row_rsForgotPassword['name'];
$body = "<html><body>" .
                    "<h2>Thank you...</h2>" .
                    "<p>This is your username and password:</p>".
                    "<ul><li>Username=".$username."</li>".
                    "<li>Password= ".$password."".
                    "From: Webmaster www.javawebmedia.com";
$headers =           "From: Webmaster www.javawebmedia.com <[email protected]>\r\n" .
                              "MIME-Version: 1.0\r\n" .
                              "Content-type: text/html; charset=UTF-8";
if (!mail($to, $subject, $body, $headers)) {
          $redirect_error= "error.php"; // Redirect if there is an error.
  header( "Location: ".$redirect_error ) ;
  ?>
  <p>Thank you, your username and password has been sent to your email.</p>
  <?php }else{ ?>
  <p>Please type any keyword.</p>
  <?php } ?>
<form id="form1" name="form1" method="post" action="">
  <p>
    <label for="email">Your email:</label>
    <input type="text" name="email" id="email" />
    <input type="submit" name="Submit" id="submit" value="Submit" />
    <input type="reset" name="Reset" id="submit2" value="Reset" />
  </p>
  <p>The username and password will be sent to your email.</p>
</form>
<p></p>
</body>
</html>
<?php
mysql_free_result($rsForgotPassword);
?>
error.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
Oops, error page.
</body>
</html>

Similar Messages

  • HT1386 How do I create one Apple ID and iTunes user name and password for all of my Apple products: iPad, iPhone, and iPod plus iTunes on my PC?

    How do I create one Apple ID and iTunes user name and password for all of my Apple products: iPad, iPhone, and iPod plus iTunes on my PC?

    Yes, I do have multiple devices and it appeared to me that every time I tried to sync or log onto iTunes, the password was incorrect.  Consequently, I was and am constantly changing it.  Wouldn't it be nice if Apple would simply say that you only need one Apple ID and one password regardless of the number of Apple devices you intend to sync via iTunes. 
    Barring the above, how about a way to merge all of the Apple IDs and passwords into one.

  • I am trying to install a Canon Pixma MG8220 which requires my Airport Extreme password. I do no know it. I then  went to default Airport settings and renamed my network, but Airport required my password. How do I create a new password?

    How do I create a new password for my Airport Extreme if I do not know the old password?

    If you have the Mac that you used to configure the AirPort Extreme originally, you may be able to retrieve the password from KeyChain Access.
    See this User Tip from forum expert Tesserax:
                     AirPort - Regain Access from Forgotten Passwords
    If still no luck, you can reset the passwords again. Pay very close attention to the information about a Soft Reset in this Apple support document:
    Resetting an AirPort Base Station or Time Capsule FAQ

  • I spilled water on my laptop and my "i", "j" and "k" letters don't work on my laptop. However my main problem is that my password contains an "i" so i am locked out of my computer. Any ideas how I can get around the password and login.

    I spilled water on my laptop and my "i", "j" and "k" letters don't work on my laptop. However my main problem is that my password contains an "i" so i am locked out of my computer. Any ideas how I can get around the password and login. I tried the method where you go into single user mode and type in commands, however that method uses some of the letters that are not working on my laptop.

    You didn't mention which version of OS X your running but there are password reset utilities provided OS X: Changing or resetting an account password (Snow Leopard and earlier) - Apple Support  or  OS X: Changing or resetting an account password - Apple Support
    Alternately you can use an external keyboard to log in and change the password. Make a backup if you don't have one, it's likely that your problems aren't over. If that water continues to migrate downward and fries the logic board your macbook will be toast.

  • Question on how to Hide the User Name, Password, and Domain fields in the MDT Wizard

    MDT 2012 U1
    Deploying Windows 7 via Offline Media (ISO) to MS Virtual PC's
    I am looking on how to Hide the User Name, Password, and Domain fields which are prepopulated in the MDT wizard via the CS.ini (Not so concerned about the Domain field as I am User Name and Password)
    We do need the Computer Name and OU fields to be seen, so skipping the wizard is not a option
    The client just does not want these fields to be seen by the end users, they dont want them to even know the account name used for adding the machine to the domain, of course the password is not displayed but it must not be displayed either.
    But since we use the fields they must still  be fuctional just not seen.
    Thanks.....
    If this post is helpful please click "Mark for answer", thanks! Kind regards

    You shouldn't have to edit DeployWiz_Definition_ENU.xml. You should only need to add "SkipAdminPassword=YES" to the CS.ini file and your authentication information.
    Example:
    [Settings]
    Priority=Default
    Properties=MyCustomProperty
    [Default]
    OSInstall=Y
    SkipCapture=NO
    SkipAdminPassword=YES
    UserID=<MyUserID>
    UserPassword=<MyPassword>
    UserDomain=<MyDomain.com>
    SkipProductKey=NO
    SkipComputerBackup=YES
    SkipBitLocker=NO
    -Nick O.
    Nick,
    SkipAdminPassword=YES is for:
    You can skip the Administrator Password wizard page by using this property in the
    customsettings.ini.
    I am hidding the Username/Password/and domain field in the computer name Wizard pane which is read from the cs.iniDomainAdmin=xxxxx
    DomainAdminPassword=xxxxx
    DomainAdminDomain=xxxxxx
    JoinDomain=xxxxxx
    If this post is helpful please click "Mark for answer", thanks! Kind regards

  • How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios?

    How do I create an app from my Adobe pdf forms to use on any mobile device as well as windows and ios? I have all the apps in Creative Cloud by the way.

    If you already purchased it with the same Apple ID, then you will not be re-charged.

  • How do I create a new account and get stuff from the old account to the new account

    How do I create a new account and get stuff from the old account to the new account

    There are instructions on this page for creating a new account : Set up an Apple ID in iTunes
    Or if you don't want to give credit card details : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method
    But you won't be able to transfer purchases from your old account to it, all content that you download from the store will remain tied to the account that downloaded it.

  • Each time I create a new album in IPhoto, photos from another album or from photo stream are automatically dumped into the new album..  how do I create a blank album and then import photos from a flash drive into the new album?

    each time I create a new album in IPhoto, photos from another album or from photo stream are automatically dumped into the new album..  how do I create a blank album and then import photos from a flash drive into the new album?

    just import the iPhoto
    Surely you meant "just import the photo"?  The Spell checker is dangerously creative !

  • Do u know how to prompt user to enter password and validate the password?

    hi all,anyone knows how to prompt user to enter password and validate the password as well?I do not need the GUI.Can someone post the codes here?Thanks!

    hi all,anyone knows how to prompt user to enter
    password and validate the password as well?I do not
    need the GUI.Can someone post the codes here?Thanks!Codes are
    BufferedReader
    System.in
    if
    else
    System.out.

  • OK now that there is no option to reveal "database" panel in DW CC, how do I create a database connection and build my phpmysql pages?

    Is there an alternative way other than manually entering PHP code?

    Thanks, It works. Author of the article politely says what many of us have to say to Adobe when they make "improvements" - WTF, Adobe???
          From: Ben Pleysier <[email protected]>
    To: Jon Lane <[email protected]>
    Sent: Saturday, January 31, 2015 1:44 AM
    Subject:  OK now that there is no option to reveal "database" panel in DW CC, how do I create a database connection and build my phpmysql pages?
    OK now that there is no option to reveal "database" panel in DW CC, how do I create a database connection and build my phpmysql pages?
    created by Ben Pleysier in Dreamweaver support forum - View the full discussionWeb development tutorial
    Deprecated Server Behaviors for Dreamweaver Creative Cloud
    WebAssist A better, more secure and future proof way MySQLi Server Behaviors
    Dreamweaver extension
    WebAssist If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7148099#7148099 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7148099#7148099 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Dreamweaver support forum by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How do I create groups in Mail and add contacts to that group?

    How do I create groups in Mail and then add contacts to that group?

    Look in Mail > Preferences > Composing tab > If you want all the email addresses to show, check "When sending to a group, show all member addresses".   If unchecked, just the groupname should appear.
    If it still doesn't work then review the email addresses for each of the group members looking for errors in format.
    Also, clean up the list in previous recipients in Mail > Window > Previous Recipients.

  • How do you create a podcast playlist and get all unplayed podcasts copied to it?

    How do you create a podcast playlist and get all unplayed podcasts copied to it?

    Creat a Smart Playlist in iTunes (File -> New Smart Playlist) that looks like the following:
    Once you have successfully done that you can set it up to sync to your iPod Shuffle from under the Shuffle's Podcast configuration tab/pane in iTunes.
    B-rock
    B-rock

  • How to encrypt the text in password field in Oracle Forms version 6i

    Need help!
    How to encrypt the text in password field in Oracle Forms version 6i?
    one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
    Thanks!

    Hello,
    Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
    Francois

  • I am getting the message that my email password and/or username is not correct. It is correct! I am the only one who cannot send or receive emails...I am the only one using a mac.

    I am getting the message that my email password and/or username is not correct. They are both correct! I am the only one who cannot send or receive emails...I am the only one using a mac. i use mac mail and it is my companies server. I took my computer and iPhone to the Apple store...4 hours later they said that couldn't figure out why it wasn't working.  Any suggestions???? I am also not able to log into the C-Panel...

    Same here! Happened yesterday to me on New iPad and iPhone 4S. On iPad I managed to correct it by removing the account and activating it again as an Exchange account...I have mail and calendar OK!
    On the iPhone nothing seems to  work!
    Facts:
    1. everything worked perfectly for years!
    2. I have the 2-step authentication deactivated  on my google account so it cannot be this one.
    3. On desktop everything works just fine, on iPad everything is OK with Exchange account added (after Google removed support for Exchange account access I CAN ONLY HAVE ONE DEVICE with Google Exchange account, so doing the same on the iPhone does not work!)
    4. Tried to remove and add the account again - no results.
    5. Tried to remove and add as Google, as Exchange, as Other account - I get calendar but no mail!!!
    6. Tried to reboot between remove/add accounts - no results.
    7. Tried to ("reset settings") reset the device - no results.
    8. Tried to add as POP account and I it worked - I get mail but I do not need POP as I am using zounds of mail with labels and need to be working on an IMAP account
    9. To make things even more complicated...I have another account which works perfectly!!!!!
    Anyone out there having a clue?

  • How can i create a new password?

    I forgot my password, how can i create a new one?

    On Lion or Mountain Lion, you use the following technique to reset the Administrators password:
    Boot to your Recovery Partition, by holding down the Option key while starting, and then selecting the Recovery HD as the boot choice.
    Once booted, at the top of the screen is a menu ..., select Utilities / Terminal from the menu bar.
    In the Terminal window, type “resetpassword” (without the quotes) and press return. A “Reset Password” window will open. Select your boot volume (your SSD drive) if it is not already selected. Select your administrators username from the menu labeled “Select the user account” if it is not already selected. Follow the prompts to reset the password. Restart the computer from the apple menu.

Maybe you are looking for

  • How do i find and delete the hidden .trashes folder on my sd card?

    I just recently bought a new canon 600d camera and i also bought a new 16gb sd card for it. I use this camera for videos mostly. My card seems to fill up incredibly quickly and when i empty it, it stills says about 600mb is taken up. I looked it up a

  • Excel type error while using in SSIS 2005

    Hi I am trying to dump the data into excel from OLEDB source. However, I want to load it into excel 2007 (.XLSX type) there it is giving below error while creating excel connection manager (destination)  (it is working fine for .XLS type but i want t

  • Configuration of tds on advance payment  to vendor and adjustments?

    Can someone please help me in configuring sap for tds on advance paid to vendor and adjustments. Will be happy if you could send me screen shots

  • Time capsule not visible on network

    I'm trying to troubleshoot this situation for a colleague. Situation: macbook air, synchronized wirelessly via time capsule. The time capsule is connected to the fixed network also. This is on our corporate network (both fixed and wifi networks). Bac

  • JRE 1.5 plugin for Firefox on Linux works as root but not as an other user

    I am trying to usel the JRE plugin for Firefox on Fedora Core 4. I downloaded and installed it as "root" and created the symbolic link so Firefox can "see" it. It now works just fine if I run Firefox as "root", but if I run it as any other user, it t