Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   BT.Manager (phpMyBitTorrent) (http://www.bvlist.com/forumdisplay.php?f=23)
-   -   user.php cicle ? (http://www.bvlist.com/showthread.php?t=4417)

wMan 3rd February 2010 17:56

user.php cicle ?
 
user.php?op=lostpassword

is
PHP Code:

 case "lostpassword": { 
                if (
$user->user) break; 
                include(
"user/lostpassword.php"); 
                break; 
        } 

user/lostpassword.php

PHP Code:

if (!isset($postback)) { 
        
//When button is NOT clicked yet 
        
echo "<form action=\"user.php?op=lostpassword\" method=\"POST\">\n"

form calls for function defined in same file !
why ??
if user.php will redirect request back to lostpassword.php
so what's the point of this lap ??

joeroberts 4th February 2010 03:10

because there is 2 functions which needs to load said file 2 times.
one is to fill out the information and the second it to check the inputed infomation and send out the E-mail.

wMan 5th February 2010 01:43

ok thanks :cool:


All times are GMT +2. The time now is 07:02.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.