13 lines
No EOL
335 B
PHP
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>
|