Jump to content

Display error message on same popup window


Recommended Posts

 

 

I want to display message on same customised popup window . Say for eg when i click on signin link a popup window comes and when i click on submit button , it get redirected to loginpage.php where php code for connection is written and other code of php is wriiten for database fetching . and if login credential match it get redirected to main page

 

So what i want to do is when some one click on signin link and popup window open up and when clicked on submit button , if the credential dont match it should throw error on same popup window before it closes

 

Link to comment
Share on other sites

PHP is a server side language, so in order to run the PHP code, an actual request must be made to the server (whether it be through a page load, or refresh, or whatever).

 

What you will need to use is AJAX, which will allow you to send a request to the server, and get a response back without needed to refresh to page or load a different one on the client side.

 

Here's an AJAX tutorial: http://www.tizag.com/ajaxTutorial/

 

Note, AJAX is done via Javascript, so If you don't know any javascript, I suggest learning it

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.