keepit-php/rename.php
2023-01-14 07:40:41 -06:00

13 lines
No EOL
335 B
PHP

<?php
include ("../auth.inc.php");
$id = $_POST['renameFormItem'] or die ("Error: no variable given.");
$nName = $_POST['name'] or die ("Error: no variable given.");
mysql_query("update `keepit_docbank` set title='".$nName."' where id='".$id."'") or die ("Error: couldn't rename ");
?>
<script>
location.href="index.php";
</script>