Jump to content

Windows for Decision making


lucerias

Recommended Posts

Well if you are using a form, then you could do this...

[code]
<form action="../scripts/sitemaint.php" method="post" name="delgallery_form" onSubmit="return confirm('Are you sure? This will delete ALL photos contained in the gallery too...');">
[/code]

What will happen is that when the user clicks on the submit button, a window will pop up with the above message, and if the user clicks YES, then it will submit the form, if the user clicks NO, then nothing happens.
Link to comment
Share on other sites

[code][$buttons = "<tr><td><input title='".$strings[EDIT_BUTTON_TITLE']."' accessKey='".$strings[EDIT_BUTTON_KEY']."' class='button' onclick=\"this.form.return_module.value='Customers'; this.form.return_action.value='NormalView'; this.form.return_id.value='$focus->id'; this.form.action.value='EditView'\" type='submit' name='Edit' value='  ".$strings['EDIT_BUTTON_LABEL']."  '></td></tr>\n";[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.