keepit-php/rename.php

13 lines
335 B
PHP
Raw Normal View History

2023-01-14 13:40:41 +00:00
<?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";
2014-11-09 18:30:55 +00:00
</script>