php popups? help is required!

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
maani786
Forum Newbie
Posts: 16
Joined: Fri Jul 13, 2007 2:13 am

php popups? help is required!

Post by maani786 »

hi to all
dear i am newbie to php
i am working on php 5.2.3 with IIS 5 on Windows XP. I have both mysql and mssql server databases .
what i am willing to do is, i want that when some one visit my web page i will get some information from user like his or her telephone number which will be matched with database and then a popup window of user information (firstname, lastname, address etc from database) should be displayed.
i want your help dear and i hope you will not disappoint me.
a bundle of thanks in advance to all of you
Regards
__________
maani janjua
Last edited by maani786 on Mon Jul 23, 2007 12:22 am, edited 1 time in total.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: PHP POPUPS???? HELP IS REQUIRED

Post by Benjamin »

maani786 wrote:i want that when some one visit my web page i will get some info from user like his or her telephone number which will be matched with database and then a popup window of user information (firstname, lastname, address etc from database) should be displayed.
Can you clarify that a little bit?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Post by califdon »

I think he means that he wants to open a popup window in front of the previous window in the users' browser.

If that's correct, all you need to do in the PHP script is to send a new window that is sized smaller than the original window. It's just HTML/Javascript, not really PHP. Take a look at: http://www.htmlgoodies.com/beyond/javas ... hp/3471221
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

You are using block uppercase to draw attention to yourself in the topic list, using an excessive number of question marks, breaking forum rules by abbreviating words unnecessarily, adding to the usability problem of the web by attempting to implement pop-ups and using commercial software over perfectly good open source alternatives. All of these offend the values for which I stand, so I will not help you.

Sorry this just annoyed me.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

+1, Most certainly.
maani786
Forum Newbie
Posts: 16
Joined: Fri Jul 13, 2007 2:13 am

thanks

Post by maani786 »

hi dear all
i am thankful to those kind people who help me positively.
regards
--------------
maani janjua
maani786
Forum Newbie
Posts: 16
Joined: Fri Jul 13, 2007 2:13 am

problem

Post by maani786 »

dear all
actually i have a database containg information of clients like firstname, lastname,adress, telephoneno and so on.
what i want is that. whenever a user visit my web page he/she is prompted to enter his/her telephone no, then that telephone no is saved to a variable. and then i verify from database that, is there any information against this telephoneno, if yes then a rising popup window from bottom of screen appears having client information (like Firstname=---------,lastname=---------, address=-------------, telnum=-------- and so on). and if the visiter is a new user then a user friendly message should appears in popup window.

i want ur help to do so.
Regards
__________
maani janjua
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

What part of that do you need help with...?

And just so you know, displaying any old persons information by just making a user enter a phone number makes it extremely easy for another user to obtains someone's personal information, which is one of those things that old people who are "scared of the internet" are paranoid about. I'd suggest you come up with a different method of determining which user is which. Possibly a username and password? :P
maani786
Forum Newbie
Posts: 16
Joined: Fri Jul 13, 2007 2:13 am

hi

Post by maani786 »

hi dear superdezign
you are absolutely right actually i have a password tracking system but for sense of ease i just posted the information in this way.i am telling you the whole scenario.
i have a website which includes online billing. any user with his/her account is login into the website and then a prompt appears for user to enter ur telephone number to get ur bill what i want that when user enter his or her telephone number a popup window from right bottom corner of screen rises up with user information from database. same like when you are using a messenger like yahoo and someone in your friends come online a message from right bottom corner appers for a while that "xxxxxxx comes online" i want to do same like thatbut that window should stay long enough to read all information (about 15 fields).
there is no problem in database side. i sucucefully connect database with php and can retrieve information from database to display at web page. but i am newbie to php and need your help in php especially in popup side.
Thanks a lot in advance
Regards
maani
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Re: hi

Post by superdezign »

There's a reason that desktop applications do this and websites do not. The desktop applications are oftentimes ran in the background, so in order for users to be aware of notifications, the notifications must appear on screen. However, on a website, the user is ON the website. It's very unlikely for them to WANT any pop-ups at all. The *smart* solution would be to just embed a module of some sort into the website that displays the information, or have a page dedicated to that information.
maani786
Forum Newbie
Posts: 16
Joined: Fri Jul 13, 2007 2:13 am

hi

Post by maani786 »

sir kindly tell me something more i didnot understand.
and if not popup then how i can achieve that functionality?
regards
maani janjua
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

You can display the information in <div> instead of pop-up, reading about CSS / JS may help you to make it display/hide on an event.
maani786
Forum Newbie
Posts: 16
Joined: Fri Jul 13, 2007 2:13 am

hi

Post by maani786 »

tell me some thing about css?js that how can i display/hide an event?
Regards
maani janjua
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Re: hi

Post by feyd »

maani786 wrote:tell me some thing about css?js that how can i display/hide an event?
Regards
maani janjua
Has searching turned up confusing results? If so, what did you search for? or what, specifically, is confusing?
Post Reply