[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Confirmation box before delete

Posted on 2011-03-15
2
Medium Priority
?
492 Views
Last Modified: 2012-05-11
Hi
I have”Delete” text as a link (please see the code bellow). When you click on the Delete sends id-delnumber to delete function. I will make it that appears a message box and ask if you sure? Yes and No, before the delete-id sends to the delete function.

<?php   echo "<a href=lastnews.php?id-delnumber=".$row["id"]."> Delete </a>"; ?>
0
Comment
Question by:sam20
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
Rik-Legger earned 2000 total points
ID: 35138951
It is a little bit hard to read what you exactly want,
but i think you mean something like this:

<?php   
echo "<a href=lastnews.php?id-delnumber=".$row["id"]." onclick=\"if (confirm('Are you sure you want to delete?')) { return true;  }; return false;\"> Delete </a>"; 
?>

Open in new window

0
 

Author Closing Comment

by:sam20
ID: 35139123
Thank you
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question