Asked by duncanb7
at 2024-05-07 09:55:14
Point:500 Replies:9 POST_ID:828552USER_ID:11059
Topic:
PHP Scripting Language;Hypertext Markup Language (HTML);JavaScript
Recently Ive succesful y done login user form in php and html example, but I get question
how can I display login result message on the page we do login process instead of
using header() php function to redirect the result and display it on other pages?
As we know for user acces-control, we need login form on home webpage.
In the form tag in home page, probably we will do code as follows
<form id="loginForm" name="loginForm" method="post" action="login-exec.php">
in which after user typing login and password and submit the form by executing
login-exec.php that is for authurization checking for mysql_database and get $_session
variable in order to make desicion whether the login is succesful or fail , The login
result will be displayed , most people will use header(location: login-fail.php) php coding for redirect the page to the new failed-mesage page or header(location:login-succes.php)
for successful result.
I want to display the result on the exact the home webpage where I did login form
and I don't want my home page for any refresh during login result display since
my server is really slow. Any idea for doing that instead of using
header() in php coding. Can I control the existing home webpge javascript and html
in order to display the login result ?
BE reminded, my home page have a lot of thing besides login-form
Please advise
Duncan
Part of coindg for login-exec.php
===========================
how can I display login result message on the page we do login process instead of
using header() php function to redirect the result and display it on other pages?
As we know for user acces-control, we need login form on home webpage.
In the form tag in home page, probably we will do code as follows
<form id="loginForm" name="loginForm" method="post" action="login-exec.php">
in which after user typing login and password and submit the form by executing
login-exec.php that is for authurization checking for mysql_database and get $_session
variable in order to make desicion whether the login is succesful or fail , The login
result will be displayed , most people will use header(location: login-fail.php) php coding for redirect the page to the new failed-mesage page or header(location:login-succes.php)
for successful result.
I want to display the result on the exact the home webpage where I did login form
and I don't want my home page for any refresh during login result display since
my server is really slow. Any idea for doing that instead of using
header() in php coding. Can I control the existing home webpge javascript and html
in order to display the login result ?
BE reminded, my home page have a lot of thing besides login-form
Please advise
Duncan
Part of coindg for login-exec.php
===========================