Note that there are some explanatory texts on larger screens.

plurals
  1. POSending password link to email when user forget password
    primarykey
    data
    text
    <p>I have the problem, how to send a password link to user email when the user clicks the forget password link....</p> <p>Here is ForgetPasswordViewController.php... i developed this for simply showing a alert... But when coming to real time.. i don't know how to send the password link.. to user email...</p> <pre><code> &lt;?php header("Cache-Control: private, must-revalidate, max-age=0"); header("Pragma: no-cache"); header("Expires: Fri, 4 Jun 2010 12:00:00 GMT"); </code></pre> <p>//If you are not submitting the form HTML will be directly shown</p> <pre><code> if (!isset($_POST['submit'])) { ?&gt; &lt;html&gt; &lt;body&gt; &lt;form name='f1' method="POST" action="" onSubmit="return ValidateEmail();"&gt; &lt;div id="fp"&gt; &lt;span style="margin-left:-50px"&gt;Email:&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;span&gt;&lt;input class="input" type="text" name="Email" placeholder="Enter mailID" required&gt;&lt;/span&gt;&lt;br&gt; &lt;input style="height:50px; width:120px; background:url(Images/submit_butto.gif) no-repeat right top; border: none;" type="submit" name="submit" value=""&gt; &lt;?PHP } else { $Email=$_POST['Email']; if(!empty($Email)) { $model = new UsersModel(); $rowsCount = $model-&gt;checkUserEmail($Email); echo $rowsCount; if ($rowsCount!=0) { //If you are submitting the form insert the details into database echo '&lt;script type="text/javascript"&gt;alert("A password hasbeen sent to your Email.."); window.location.href="LoginViewController.php";&lt;/script&gt;'; } else { echo'&lt;script type="text/javascript"&gt;alert("Enter valid email"); window.location.href="ForgetPasswordViewController.php";&lt;/script&gt;'; } } } ?&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Any suggestions are acceptable....</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload