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
https://forums.phpfreaks.com/topic/44234-solved-confirmation-alerts/
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 !!

Archived

This topic is now archived and is closed to further replies.

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