Hi Andreas... I have a problem... Its dificult to explain but im going to try ;)
Using the form for register users access, when the password is ok I do not want the left column to appear in the next page. This is because Im using frames and I get two left columns with all the items... When the password is wrong it works ok...
Where do I have to change the link for the success entry page to get only the user info without the left column?
Im not sure I have explain it very well... sorry about my horrible english...
Thanks...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are two ways and two locations for your project. I'm not sure what you mean, so I try to explain both:
1st situation: Only right side (frame 'main') is changed, if something done in registration form (reguser.php). This is not a good idea, because customer name in navigation isn't updated, but it is your shop ;-)
Change in reguser.php form's target to _self and action to reguser.php instead of login.php and _parent.
Copy part elseif($caller=="reguser") { ... } into reguser.php before line $caller="reguser" (3);.
2nd situation: reguser keeps target=_parent and action=login.php. Content of left frame is defined in $url_li, right frame in $url between line 36 and 60 in login.php (part you copy for 1st situation).
Helpfull?
Greetings,
Andreas.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1st sutuation is not completed yet.
You have to handle good or bad login somehow ... Put the copied part into line 2 and change it to something like:
if($caller=="reguser")
{ include(".config_db.inc.php");
include("./db_func.inc.php");
$md_pw = ...
# copied part until
$upd_res = db_query(...);
header("Location:$url");
exit;
}
... reguser.php as it is.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Andreas... it sounds very difficult for my habilities ;)... anyway, I have found another solution for the problem, much more easier.
Just another question... I think the way of getting lost passwords is a little complicated. The user need to remember too many things... I think there are too many fields in the form of fpass.php. Is there anyway of make it easier? Maybe just asking him for the user id and e-mail or something like that...?
Thanks again ;)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
fpass.php: Of course you can request for other fileds in fpass.php and check this data in table user. Very simple ...
Remove or rename input fields and change the SQL-query.
Note1: Customer don't know its user.ID only the number (user.kdnr)
Note2: Make sure nobody can change data of 'user public'
I'm not a friend of 'Enter email, get password to this email', that's why a choose antther way ;-) And I think, firstname, surname and ZIP-Code can not be so complicated to remember ... customerNo. may be ...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Andreas... I have a problem... Its dificult to explain but im going to try ;)
Using the form for register users access, when the password is ok I do not want the left column to appear in the next page. This is because Im using frames and I get two left columns with all the items... When the password is wrong it works ok...
Where do I have to change the link for the success entry page to get only the user info without the left column?
Im not sure I have explain it very well... sorry about my horrible english...
Thanks...
There are two ways and two locations for your project. I'm not sure what you mean, so I try to explain both:
1st situation: Only right side (frame 'main') is changed, if something done in registration form (reguser.php). This is not a good idea, because customer name in navigation isn't updated, but it is your shop ;-)
Change in reguser.php form's target to _self and action to reguser.php instead of login.php and _parent.
Copy part elseif($caller=="reguser") { ... } into reguser.php before line $caller="reguser" (3);.
2nd situation: reguser keeps target=_parent and action=login.php. Content of left frame is defined in $url_li, right frame in $url between line 36 and 60 in login.php (part you copy for 1st situation).
Helpfull?
Greetings,
Andreas.
1st sutuation is not completed yet.
You have to handle good or bad login somehow ... Put the copied part into line 2 and change it to something like:
if($caller=="reguser")
{ include(".config_db.inc.php");
include("./db_func.inc.php");
$md_pw = ...
# copied part until
$upd_res = db_query(...);
header("Location:$url");
exit;
}
... reguser.php as it is.
Thanks Andreas... it sounds very difficult for my habilities ;)... anyway, I have found another solution for the problem, much more easier.
Just another question... I think the way of getting lost passwords is a little complicated. The user need to remember too many things... I think there are too many fields in the form of fpass.php. Is there anyway of make it easier? Maybe just asking him for the user id and e-mail or something like that...?
Thanks again ;)
fpass.php: Of course you can request for other fileds in fpass.php and check this data in table user. Very simple ...
Remove or rename input fields and change the SQL-query.
Note1: Customer don't know its user.ID only the number (user.kdnr)
Note2: Make sure nobody can change data of 'user public'
I'm not a friend of 'Enter email, get password to this email', that's why a choose antther way ;-) And I think, firstname, surname and ZIP-Code can not be so complicated to remember ... customerNo. may be ...