|
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]
|