Page 1 of 1
php popups? help is required!
Posted: Sun Jul 22, 2007 12:33 pm
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
Re: PHP POPUPS???? HELP IS REQUIRED
Posted: Sun Jul 22, 2007 12:57 pm
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?
Posted: Sun Jul 22, 2007 5:41 pm
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
Posted: Sun Jul 22, 2007 8:05 pm
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.
Posted: Sun Jul 22, 2007 9:12 pm
by superdezign
+1, Most certainly.
thanks
Posted: Mon Jul 23, 2007 12:18 am
by maani786
hi dear all
i am thankful to those kind people who help me positively.
regards
--------------
maani janjua
problem
Posted: Mon Jul 23, 2007 1:59 am
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
Posted: Mon Jul 23, 2007 6:14 am
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?

hi
Posted: Tue Jul 24, 2007 2:28 am
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
Re: hi
Posted: Tue Jul 24, 2007 10:54 am
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.
hi
Posted: Thu Jul 26, 2007 12:04 am
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
Posted: Thu Jul 26, 2007 6:47 am
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.
hi
Posted: Sun Jul 29, 2007 7:27 am
by maani786
tell me some thing about css?js that how can i display/hide an event?
Regards
maani janjua
Re: hi
Posted: Sun Jul 29, 2007 8:24 am
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?