5 Replies - 17080 Views - Last Post: 30 March 2012 - 01:08 AM Rate Topic: -----

#1 edisonlu   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 26-February 12

PHP user login popup window

Posted 29 March 2012 - 08:43 PM

Hello everyone,

Now I'm doing a web project. In the index.php, there are two buttons("Join" and "Login"). After clicking LOGIN button, they can type their login info within the popup window to login the website. Consequently, I want to use PHP user login popup window instead of opening a new login page.

How can I do that? Can anyone give me some tips or the example code?

Thanks a lot. I'm looking forward to your reply. :dontgetit:

Is This A Good Question/Topic? 0
  • +

Replies To: PHP user login popup window

#2 CTphpnwb   User is offline

  • D.I.C Lover
  • member icon

Reputation: 3803
  • View blog
  • Posts: 13,808
  • Joined: 08-August 08

Re: PHP user login popup window

Posted 29 March 2012 - 09:06 PM

PHP runs on the server. That's a different machine at a different time. It cannot popup a window. You could use Ajax to do this. Basically, Javascript would popup a window using a response from the server.
Was This Post Helpful? 0
  • +
  • -

#3 edisonlu   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 26-February 12

Re: PHP user login popup window

Posted 29 March 2012 - 09:46 PM

View PostCTphpnwb, on 29 March 2012 - 09:06 PM, said:

PHP runs on the server. That's a different machine at a different time. It cannot popup a window. You could use Ajax to do this. Basically, Javascript would popup a window using a response from the server.


If I should use Ajax, how to do it? Can you give me some hint?
Thanks.
Was This Post Helpful? 0
  • +
  • -

#4 Macjohn   User is offline

  • D.I.C Regular
  • member icon

Reputation: 80
  • View blog
  • Posts: 407
  • Joined: 10-April 09

Re: PHP user login popup window

Posted 30 March 2012 - 12:06 AM

Found this...
Was This Post Helpful? 1
  • +
  • -

#5 sas1ni69   User is offline

  • D.I.C Regular
  • member icon

Reputation: 85
  • View blog
  • Posts: 431
  • Joined: 04-December 08

Re: PHP user login popup window

Posted 30 March 2012 - 12:30 AM

View PostMacjohn, on 30 March 2012 - 03:06 PM, said:

Found this...


Hi there,

The link seems to be down. Any alternatives?
Was This Post Helpful? 0
  • +
  • -

#6 Macjohn   User is offline

  • D.I.C Regular
  • member icon

Reputation: 80
  • View blog
  • Posts: 407
  • Joined: 10-April 09

Re: PHP user login popup window

Posted 30 March 2012 - 01:08 AM

View Postsas1ni69, on 30 March 2012 - 08:30 AM, said:

View PostMacjohn, on 30 March 2012 - 03:06 PM, said:

Found this...


Hi there,

The link seems to be down. Any alternatives?


Down?it works fine for me... :dozingoff:
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1