PHP Goto Detail link

I've built a PHP version of the Goto Detail Page link that goes to a mySQL/PHP DELETE records page.. but when I click on the link to go to that page (where it retrieves the record in a PHP recordset to get confirmation before deleting), instead the originating page just executes the delete (it looks like) and reloads minus the newly deleted file. I need to click on this link, go to the confirmation page so that they can decide for sure that they want to delete it, and click the submit button for the page to execute the Delete behavior.
Why?  The code piece linking to the confirmation pages is:
<a href="del_entry.php?UID=<?php echo $row_Recordset1['UID']; ?>">Delete</a>

Hello Adrian
Why go to a confirmation page?  You can accomplish this with less code, just use javascript. I have provided the code below:
Place this code in the head section of your PHP page
<script type="text/javascript">
     function ConfirmDelete(){
         var confDel = confirm("Are you sure you want to delete this record?")
         return confDel
Now change your link from
<a href="del_entry.php?UID=<?php echo $row_Recordset1['UID']; ?>">Delete</a>
to This:
<a href="del_entry.php?UID=<?php echo $row_Recordset1['UID']; ?>" title="Delete" onClick='return ConfirmDelete()'"; >Delete</a>
Notice the code in BOLD. This will call up an alert box that will display the ConfirmDelete text and allow the user to either go ahead and delete the record or cancel.
Hope this helps
Stan Forrest
Digital Magic Show

Similar Messages

  • Goto Detail Page to PopUp Window

    I have a page with a repeat region in ASP VBScript. I want to use a Goto Detail Page but to open a PopUp Window with Javascript. This doesn't work for me, as it always goes to the first record:
    function opencalinterval(){
    var popurl="/en/calcenter/equipment/edit_calinterval.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "id=" & rsAssets.Fields.Item("id").Value %>","","width=600,height=500,scrollbars,")
    It works if I use it on a regular hyperlink like this:
    <a href="/en/calcenter/equipment/edit_calinterval.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "id=" & rsAssets.Fields.Item("id").Value %>">change</a>

    I'm not sure to understand...can you give me an example or give me a link?
    Thank you!

  • EtreCheck version: 2.1.5 (108) Report generated 4 January 2015 14:29:26 GMT  Click the [Support] links for help with non-Apple products. Click the [Details] links for more information about that line. Click the [Adware] links for help removing adware

    My Mac is very slow and applications take a long time to load, especially Safari and iTunes.  Please help.    I have run the Etrecheck report and these are results.
    Thanks Pat
    EtreCheck version: 2.1.5 (108)
    Report generated 4 January 2015 14:29:26 GMT
    Click the [Support] links for help with non-Apple products.
    Click the [Details] links for more information about that line.
    Click the [Adware] links for help removing adware.
    Hardware Information: ℹ️
      iMac (21.5-inch, Mid 2011) (Verified)
      iMac - model: iMac12,1
      1 2.7 GHz Intel Core i5 CPU: 4-core
      4 GB RAM Upgradeable
      BANK 0/DIMM0
      2 GB DDR3 1333 MHz ok
      BANK 1/DIMM0
      2 GB DDR3 1333 MHz ok
      BANK 0/DIMM1
      empty empty empty empty
      BANK 1/DIMM1
      empty empty empty empty
      Bluetooth: Old - Handoff/Airdrop2 not supported
      Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
      AMD Radeon HD 6770M - VRAM: 512 MB
      iMac 1920 x 1080
    System Software: ℹ️
      OS X 10.10.1 (14B25) - Uptime: 0:32:50
    Disk Information: ℹ️
      ST31000528AS disk0 : (1 TB)
      EFI (disk0s1) <not mounted> : 210 MB
      Macintosh HD (disk0s2) / : 999.35 GB (717.51 GB free)
      Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
      OPTIARC DVD RW AD-5690H 
    USB Information: ℹ️
      Apple Inc. FaceTime HD Camera (Built-in)
      Seagate Expansion Desk 2 TB
      EFI (disk1s1) <not mounted> : 210 MB
      Seagate Expansion Drive (disk1s2) /Volumes/Seagate Expansion Drive : 2.00 TB (1.66 TB free)
      Apple Inc. BRCM2046 Hub
      Apple Inc. Bluetooth USB Host Controller
      Apple Inc. iPhone
      Apple Internal Memory Card Reader
      Apple Computer, Inc. IR Receiver
    Thunderbolt Information: ℹ️
      Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
      Mac App Store and identified developers
    Kernel Extensions: ℹ️
      /Library/Application Support/Avast/components/fileshield/unsigned
      [loaded] com.avast.AvastFileShield (2.1.0 - SDK 10.9) [Support]
      /Library/Application Support/Avast/components/proxy/unsigned
      [loaded] com.avast.PacketForwarder (2.0 - SDK 10.9) [Support]
    Problem System Launch Agents: ℹ️
    Launch Agents: ℹ️
      [loaded] com.avast.userinit.plist [Support]
      [running] [Support]
      [loaded] [Support]
      [running] [Support]
      [loaded] [Support]
      [running] com.trusteer.rapport.rapportd.plist [Support]
    Launch Daemons: ℹ️
      [loaded] com.adobe.fpsaud.plist [Support]
      [loaded] com.avast.init.plist [Support]
      [loaded] com.avast.uninstall.plist [Support]
      [failed] com.avast.update.plist [Support]
      [loaded] [Support]
      [loaded] [Support]
      [running] com.trusteer.rooks.rooksd.plist [Support]
    User Launch Agents: ℹ️
      [loaded] com.adobe.ARM.[...].plist [Support]
      [invalid?] com.avast.home.userinit.plist [Support]
      [running] [Support]
    User Login Items: ℹ️
      iTunesHelper ApplicationHidden (/Applications/
    Internet Plug-ins: ℹ️
      FlashPlayer-10.6: Version: - SDK 10.6 [Support]
      Default Browser: Version: 600 - SDK 10.10
      AdobePDFViewerNPAPI: Version: 11.0.07 - SDK 10.6 [Support]
      AdobePDFViewer: Version: 11.0.07 - SDK 10.6 [Support]
      DivXBrowserPlugin: Version: 2.2 [Support]
      Flash Player: Version: - SDK 10.6 [Support]
      OVSHelper: Version: 1.1 [Support]
      QuickTime Plugin: Version: 7.7.3
      JavaAppletPlugin: Version: Java 8 Update 25 Check version
    Safari Extensions: ℹ️
      wrc [Installed]
    3rd Party Preference Panes: ℹ️
      DivX  [Support]
      Flash Player  [Support]
      Flip4Mac WMV  [Support]
      GoToMyPC Preferences  [Support]
      Java  [Support]
      Trusteer Endpoint Protection  [Support]
    Time Machine: ℹ️
      Skip System Files: NO
      Auto backup: YES
      Volumes being backed up:
      Macintosh HD: Disk size: 999.35 GB Disk used: 281.84 GB
      Seagate Expansion Drive [Local]
      Total size: 2.00 TB
      Total number of backups: 78
      Oldest backup: 2013-07-28 18:09:06 +0000
      Last backup: 2015-01-04 14:29:38 +0000
      Size of backup disk: Adequate
      Backup size 2.00 TB > (Disk used 281.84 GB X 3)
    Top Processes by CPU: ℹ️
          2% WindowServer
          1% mds
          0% fontd
          0% mds_stores
          0% com.avast.daemon
    Top Processes by Memory: ℹ️
      120 MB Safari
      112 MB com.avast.daemon
      94 MB
      56 MB spindump
      52 MB mds_stores
    Virtual Memory Information: ℹ️
      479 MB Free RAM
      1.56 GB Active RAM
      1.11 GB Inactive RAM
      904 MB Wired RAM
      5.37 GB Page-ins
      75 MB Page-outs
    Diagnostics Information: ℹ️
      Jan 4, 2015, 01:57:18 PM Self test - passed
      Standard users cannot read /Library/Logs/DiagnosticReports.
      Run as an administrator account to see more information.

    patbythesea wrote:
    Can I assume that with my Mac I do not need any additional virus protection software?  If I do, what should I use?
    See my Mac Malware Guide for help on protecting yourself from malware. You generally don't need anti-virus software.
    (Fair disclosure: I may receive compensation from links to my sites, and, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • In the metadata repository, display the object detail links don't work

    We've upgraded to 7.3 and when we lick on display the object details links we get the following message.  I've looked in SICF and everything looks active and is set up
    Service cannot be reached
    What has happened?
    call was terminated because the corresponding service is not available.

    HI LMM
    I have also same Problem . I thing SICF  is working fine but SAP BW 7.3  Metadata Repository is not available (Not maintained) the corresponding service is not available that why  System shows An error.

  • Master-Detail Linking and column selectors

    Does anyone know if it's possible (in to create a master-detail link on a column that's part of a column selector?
    There's a master "roll-up" table using a column that's part of a column selector group. For one of the columns in the group, I've set the interaction to "Send Master-Detail Event".
    There's a detail table that uses that same column, and listens on the correct channel.
    However, when clicking on the column output in the master roll-up table, the detail doesn't change.
    I should mention I'm using the latest Firefox on PC, if that matters.

    I'm facing the same issue.Has anyone worked on it?

  • [Help] Gauge as master table in master-detail links

    I am working on master-detail links POC these days. Found most of views work as a master view or a detail view. But found Gauge only works for a detail view. Never succeed to make it work as a master view.
    Checked the Oracle documents. They do say Gauge can be. So anybody has the success experience and could share how to make that?
    I built one Bar char, one Pivot Table and one Gauge as the master views and one normal table as the detail view in one analysis. All work well but Gauge. It's a bug?
    OBIEE Version: and
    Edited by: AlexHu~ on May 14, 2013 2:15 AM
    Edited by: AlexHu~ on May 14, 2013 2:16 AM

    Anyone encountered same issue as me?

  • How to create 1-1 relation in Master Detail link?

    How to create 1-1 relation in Master Detail link?
    I've attached the screen shot in the link below (a Microsoft powerpoint file)

    I can't reach the file at the link you gave ( not found) so I can't tell quite what you're trying to do. Can you provide a bit more detail? Are you using the ER modeler or the schema diagram? If you're modeling tables in the schema diagram then the answer is you can't - there must be a foreign key at one end and that is always represented as a 'many'. To enforce a 1:1 relationship you must add code (probably in the server), for example, db triggers.
    I hope this is helpful,

  • Master Detail Linking between Views

    Hi All,
    I have checked that Master Detail linking works between an Analysis and a Graph etc. But is it possible to have a Master Detail Linking between a Gauge and a Graph such that when I drill down on a Gauge my Graph should reflect the same results.

    I'm facing the same issue.Has anyone worked on it?

  • Removing "Notification Detail Link" in notification mails

    Is it possible removing the attachment "Notification Detail Link.html" attached in the outgoing notification EMails?
    In the case, I have to do the set directly in the Workflow design, or is it a configuration in the Mailer Agent?
    Any help is appreciated.

    In workflow version 2.6.3, this is available by simple changing the notification preference to be "HTML mail"
    "MAILHTM2". If you want it as an attachments, the preference is "HTML mail with attachments"

  • Implementing master-detail link

    Hi experts,
    I am trying to set up a master-detail link between 2 pivot tables. I have defined a master column and a detail view and a channel. However, the link does not work.
    When I right-click on the cell that should link to the detail view, I get 'Send master detail event', but nothing happens, and the cell is not clickable with a hyperlink.
    What did I do wrong?
    Thanks Gurus
    Here are some new screenshots. The master column is called 'Identifiant externe du contact'.
    Hope this helps!

  • Project Site Quick Links has 2 Project Details Links and no Recent Links

    Project Sites when created has 2 Project Details Links and the Recent Links with the it's sublinks does not appear.   I have this problem on two PWA Instances and not on a 3rd.  Project Server 2013 with SP1 installed.  Does
    anyone know what cause this? 
    Of the 3 PWA instances the 2 that it occurs on are on different SP farms.  I have created a Mastersite template saved as a solution and added to the EPT.  The Master site has the correct links before I save it as a template
    Andrew Payze

    Hi Andrew,
    How did you create the site that you used as the template? Did it start out as a site already attached to a project? If so you should create a blank project site not attached to a project / create during the project create process. Part of the project create
    /  site creation process adds properties associated to that project in the site's property bag etc. you don't want these properties causing issues for other project sites. See the steps below on creating an example custom project site template:
    The first part of that post covers project plan templates but the project site templates start from the section beginning with "The site template is a bit more involved than the project plan template"
    Paul Mather | Twitter | | CPS

  • 'Details' link in Subscription iView

    due to security reasons we want to hide the 'Details' link that is displayed under the section 'Subscribed Item' within the Subscription iView.
    Does anyone knows how we could solve this issue?
    Thanks a lot in advance.
    Sven Würtenberger

    Hi, Sven.
    The functionality of the "Subscriptions" iView seems like cannot be modified by some portal settings.
    The only solution is to develop a new portal component based on "".
    Regards, Mikhail.

  • Why does Firefox Security Updates 3.6.8 & 3.6.9 say installed on Dec.31, 1969? Details link doesn't work. The 3.6.7 was installed on July 21, 2010.

    I saw a quick Firefox notice at the lower corner of my screen about security updates available or being installed so when I checked to see what they were, I found an installed update 3.6.7 on 7-20-2010, and the next one 3.6.8, said installed on 12-31-1969, the next one 3.6.8 says installed on 12-31-1969, and the last one 3.6.10 installed on 9-16-2010. I've clicked on the details link but nothing happens. Firefox has been acting a little strange lately (won't get out of Firefox when I click out of it unless I shut down my laptop, using 100% CPU and freezing so I have to shut down through Task Manager) can it be some kind of bug/glitch?

    Firefox safe mode is meant for diagnostic purposes and not for permanent usage.
    Possible suspects can be the BitDefender extensions (BitDefender QuickScan, BitDefender Antiphishing Toolbar) and plugin (BitDefender QuickScan Web Netscape Plugin)
    You can also remove the Java Console extensions and disable the Java Quick Starter extension.<br />
    Disable the Java Quick Starter extension: Tools > Addons > Extensions
    Control Panel > Java > Advanced tab > Miscellaneous >Java Quick Starter (disable)
    See - What is Java Quick Starter (JQS)? What is the benefit of running JQS? - 6.0
    If it does work correctly in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.<br />
    See [[Troubleshooting extensions and themes]]

  • Master-Details Link

    I have done master details in obiee 11g,since when i am trying with dimension column its working fine,where my requirement is how to achieve master details link in hirerchial column,in 1st report i have kept product hirerchial cloumn with 1 measure and 2nd report same product hirerchial colum nand 1 measure when i given link master -details link its not working.can anyone suggest how to achieve that.
    Appreciate your earlier response.

    You a right,
    the problem is not in fetching of detaisl VO - when I using table region to show rows of detaisl VO it fetches and dispays data normally, but if I use messagecomponentLayout with 3 messagestyledtext items on it - those items display data when I select different rows in master table, but display nothing when there is singe row in the master table....Should I somehow refresh the messagecomponentLayout region?

  • Remove Notification Detail Link attachment

    Is it possible removing the attachment "Notification Detail Link.html" attached in the outgoing notification EMails? I know that I can do so by changing the notification preference to be "HTML mail" but I want this to be done just for one workflow(notification) and not for all. Is it possible?
    Thanks in advance.

    Oracle Workflow User's Guide
    Release 2.6.3
    Part Number B10285-02
    To Respond to an HTML E-mail Notification
    Attention: If your notification preference is 'HTML Mail with attachments', an HTML-formatted e-mail notification always includes one standard attachment. The attachment is called Notification Detail Link and it provides a direct link to your notification in the Notification Details web page.
    If your notification preference is 'HTML mail', then your HTML-formatted e-mail notification does not include this standard attachment. However, if custom attachments have been defined for this individual notification in its workflow process, those attachments will still be included.
    “Actually these instructions are less than clear. Use the notification preference MAILTEXT, MAILHTM2 (with optional developer attachments).”
    [Oracle Workflow User's Guide|]

Maybe you are looking for

  • Using variables in ODI

    Hi, i have created 4 variables in ODI 11g as mentioned below: 1.Variable_name = v_date datatype = alphanumeric default value = '30-NOV-2011 11:00:00' 2.Variable_name = v_time_offset datatype = alphanumeric default value = 125 3.Variable_name = v_star

  • To which table the structure plknzea belongs

    i need to find out the table to which this sturcture(plknzea) belongs. how the table fplt is related to table aufk



  • Changes to track in cjr2 t-code

    cost Planning has been done in cjr2. some one has made changes in cjr2? hhow can i track, who has made the changes and wht changes he made? Regards SURYA

  • How to run my class without SDK

    hi, I wrote a swing application. I created myclass.class Now I want to send it to my friend so they will be able to run this and use it. I tried to test this on computer that doesn't have SDK but has only JRE (latest version). I put the class is in f