Jump to content

[SOLVED] Confirmation ALERTS


ali_2kool2002

Recommended Posts

Hi im really stuck, can have an alert before i delete something. For example, if someone can code this i can adjust it to mine, basically, i have say 2 radio buttons, depending on which radio button is pressed i want to have an alert saying "are you sure you want to delete?" then with the option ok or cancel, ok would trigger a query in the databse, and cancel with return back via header...?

 

hope someone can help  :-\ :-\

Link to comment
Share on other sites


<?php
require_once('../../mysql_connect.php');


				$did = $_GET['catId'] ;
				echo "<b>Deleted catId :</b> $did  <br>";
$query_delete_category = "DELETE FROM category WHERE catId='$did'";

$get_cat_res = mysql_query($query_delete_category) or die(mysql_error());


?>

 

THIS IS THE WAY TO GET THE ID FROM THE URL IN DELETE.Php WHEN THE POSTed solution FROM CMGMYR IS PUT INTO ANOTHER PAGE

 

CHEERS MATE ,,, WAS HARD WORK BUT WORTH IT !!

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.