Opening in the same page

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
elsint
Forum Newbie
Posts: 7
Joined: Tue Jul 12, 2005 8:22 am

Opening in the same page

Post by elsint »

Hi,
I want to make authentication in same page. I mean, when the user enters his/her username and password thw whole should not be reloaded. Only the text fields of username and password should change to a welcoming sentence including user's name.

In Delphi selecting "Partial" can make things open in same window but I couldn't make it in PHP.

Anyone know how to?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

I haven't got too deep into this, but XMLHttp sounds just like what you want. Essentially, it uses Javascript to send and receive data from a server. That Javascript can then change the appearance of the page. ~Burrito did a tutorial on the topic - check it out.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
elsint
Forum Newbie
Posts: 7
Joined: Tue Jul 12, 2005 8:22 am

Post by elsint »

Thanks!
I'll try that.
Post Reply