You are here: Re: Confirm dialog box « PHP Programming Language « IT news, forums, messages
Re: Confirm dialog box

Posted by Jerry Stuckle on 05/21/07 01:39

Tomislav wrote:
> Hello,
>
> I need a method to create Dialog box in PHP to confirm an action like
> for instance, sending an e-mail, so if "OK" is clicked action is
> performed and if "Cancel" is clicked action is canceled.
>
> I found some examples that are implementing "javascript:return
> confirm()" function in "onSubmit" event of a form but none of such
> methods is functioning (?).
>
> Is there any way to do this in PHP ?
>
> Thanks,
>
> Tomislav

Not really. You can't open new windows in PHP.

Your best bet is javascript - it works, just ensure you have javascript
enabled. Or you can take them to a new "confirm" window. If they
confirm then continue. If they do not, return to the previous page.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация