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>
Help?

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
</script>
Now change your link from
This:
<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:
    <script>
    function opencalinterval(){
    var popurl="/en/calcenter/equipment/edit_calinterval.asp?<%= Server.HTMLEncode(MM_keepNone) & MM_joinChar(MM_keepNone) & "id=" & rsAssets.Fields.Item("id").Value %>"
    winpops=window.open(popurl,"","width=600,height=500,scrollbars,")
    </script>
    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: ℹ️
      [failed] com.apple.syncservices.SyncServer.plist
    Launch Agents: ℹ️
      [loaded] com.avast.userinit.plist [Support]
      [running] com.epson.Epson_Low_Ink_Reminder.launcher.plist [Support]
      [loaded] com.epson.esua.launcher.plist [Support]
      [running] com.epson.eventmanager.agent.plist [Support]
      [loaded] com.oracle.java.Java-Updater.plist [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] com.microsoft.office.licensing.helper.plist [Support]
      [loaded] com.oracle.java.Helper-Tool.plist [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] com.microsoft.LaunchAgent.SyncServicesAgent.plist [Support]
    User Login Items: ℹ️
      iTunesHelper ApplicationHidden (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
    Internet Plug-ins: ℹ️
      FlashPlayer-10.6: Version: 16.0.0.235 - 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: 16.0.0.235 - 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
      Destinations:
      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 com.apple.WebKit.WebContent
      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, TheSafeMac.com and AdwareMedic.com, 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.
    Regard's
    R.S.Reddy

  • Master-Detail Linking and column selectors

    Does anyone know if it's possible (in 11.1.1.7) 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.
    Thanks!
    John

    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: 11.1.6.8 and 11.1.7.0
    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)
    http://us.f1f.yahoofs.com/bc/6a8130cf/bc/My+Documents/dataerror.ppt?bf2WKfABbW_fzjVn

    Hi,
    I can't reach the file at the link you gave (bcvrf.yahoo.com 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,
    Keith.

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

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

  • Removing "Notification Detail Link" in notification mails

    Hello.
    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.
    Regards,
    Umberto

    Hi,
    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"
    Cheers,
    Raja

  • 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

    https://docs.google.com/file/d/0ByRcrSFfteJQZDBweVY2VHIwQjA/edit?usp=sharing
    https://docs.google.com/file/d/0ByRcrSFfteJQNGo3dlJKU3E3dEU/edit?usp=sharing
    https://docs.google.com/file/d/0ByRcrSFfteJQZkNmbzJvNkdIRkU/edit?usp=sharing
    https://docs.google.com/file/d/0ByRcrSFfteJQTzBFXzhJX3RpcVU/edit?usp=sharing
    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

    Hi,
    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
    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:
    http://pwmather.wordpress.com/2014/02/02/getting-started-with-projectonline-part-6-ps2013-office365-project-ppm-sharepointonline-pm-sp2013/
    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
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • 'Details' link in Subscription iView

    Hi,
    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 "com.sap.km.cm.subscriptionadmin".
    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 />
    See http://kb.mozillazine.org/Java#Multiple_Java_Console_extensions
    Disable the Java Quick Starter extension: Tools > Addons > Extensions
    Control Panel > Java > Advanced tab > Miscellaneous >Java Quick Starter (disable)
    See http://www.java.com/en/download/help/quickstarter.xml - 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

    Hi,
    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

    Hello.
    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.
    Sonali

    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|http://download.oracle.com/docs/cd/B12037_01/workflow.101/b10285/notif04.htm]
    Regards

Maybe you are looking for

  • How can I watch home videos on Apple TV without using home streaming?

    I have an ATV3 and want to watch a few home videos using it. I have successfully converted the files to .mp4 format using videora apple tv converter. The problem I have is that these videos do not show up on my apple tv unless I use home sharing with

  • SQL Server Service Pack Install and SSRS Scale Out Environment

    We have an error in our SSRS environment that looks to be addressed in SQL Server 2008 R2 SP3. Our set up is a scale out environment, 2 SSRS app servers and 1 SSRS database server. For simplicity as we are moving to 2012 soon, I would like to only in

  • Has time machine deleted my files?

    I'm a Windows user and plugged my external hard drive into my friend's MacBook the other day. They speak a different language, and so I didn't understand anything on the Mac. Anyway, as soon as I plugged it in, the standard "Time Machine" message pop

  • Article Hierarchy in IS retail

    Hi, I am inserting articles in the article hierarchy through a BAPI (BAPI_WRF_MATGRP_CHANGE) from an excel file which is assigning the articles correctly to the required node. My problem is :  I need to insert 2 nodes ( for MC and GBB) in this hierar

  • No conky after install, even after following the wiki

    hi guys, I installed conky following the wiki, but i can't see it anywhere? Help please. Ash Last edited by ashleenaidoo (2009-08-28 10:58:26)