Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Popping up a dialog box

Status
Not open for further replies.

stiej

Technical User
Joined
Jan 20, 2003
Messages
142
Location
GB
Hi,

Is there a function in PHP that is the equivalent of VB's MsgBox or Javascript's alert() - i.e something that will pop up the simplest of dialog boxes/message box/alert box with the usual OK button etc?????

Any guidance much appreciated!

 
PHP is a server side technology. Once the parse has finished executing the script and the web server has sent the result to the client PHP's job is done.
Pop-up windows are client side events. Thus, PHP cannot help you. It could generate the JavaScript code that makes a window pop-up, but PHP itself can't.
 
That was quick! Thaks for the help. Will mess around with generating the javascript i think for a bit.

Cheers!
 
in javascript, try the showModalDialog box...

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top