noob: how to show login error message on the same page after php server processes request.
Posted
by funbar
on Stack Overflow
See other posts from Stack Overflow
or by funbar
Published on 2010-04-17T14:26:28Z
Indexed on
2010/04/17
14:33 UTC
Read the original article
Hit count: 162
php
|JavaScript
Hi,
I have a login page. User first enters information and submits the form.
And I have a php script that will see if the user exists.
If( authenticated == true)
{
// I do a redirect
}
else
{
// I want to popup an error message on the same page.
}
1) I'm not sure how to show the popup message,
I would like to make my div element visible with an error message returned from the server,
I would have to use Ajax, right?
But how?
Or are there alternatives which are just as good.
© Stack Overflow or respective owner