<?php include "../functions.php"; $cate = $_POST["categorias"]; $adminarea = new crudmum($mysqli); $adminarea->insertacats("{$cate}"); //Send user to the previous page header("Location: {$_SERVER['HTTP_REFERER']}");
<fieldset class="form-group" style="display:none;"> <label for="exampleTextarea">Hidden ID:</label> <textarea class="form-control" id="exampleTextarea" rows="1"></textarea> </fieldset> <form> <fieldset class="form-group"> <label for="exampleSelect1">Seleccione CategorÃa:</label> <select class="form-control" id="exampleSelect1"> <?php $showme = new crudmum($mysqli); $showme->runQuery('intranet_cat', 'categorias'); ?> </select> </fieldset> <fieldset class="form-group"> <label for="exampleSelect1">Priority:</label> <select class="form-control" id="exampleSelect1"> <option>High</option> <option>Middle</option> <option>Low</option> </select> </fieldset>