Jump to content

Dialog Box


joecooper

Recommended Posts

[!--quoteo(post=359362:date=Mar 28 2006, 06:41 PM:name=joecooper)--][div class=\'quotetop\']QUOTE(joecooper @ Mar 28 2006, 06:41 PM) [snapback]359362[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Thanks

does anyone have a working version of this?
[/quote]

Hi

i have this implemented in a different way attached to a form button, but it will work with links (<a>), etc too:

[code]
<input name="Submit" type="submit" value="Delete" onClick="return confirm('Are you sure you want to delete this record?');" />

[/code]

but thorpe's right, this is more of a javascript thing not php

hope it helps tho
Mark
Link to comment
https://forums.phpfreaks.com/topic/6025-dialog-box/#findComment-21677
Share on other sites

(mods - apologies for bumping a thread in a php forum that should be in JS)

joecooper, the code I provide and also what thorpe provided does work, but how you use it might be the problem. answer me this - what did you try the 'onclick' method on? an <a href .... > link or a button?

please can you post the code that you tried.
Link to comment
https://forums.phpfreaks.com/topic/6025-dialog-box/#findComment-21707
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.