<article> <header> <h1>Criar perfil:</h1> </header> <?php $post = filter_input_array(INPUT_POST, FILTER_DEFAULT); if (isset($post) && $post['SendPostForm']) { $post['perfil_status'] = '1'; unset($post['SendPostForm']); require '_models/AdminPerfil.class.php'; $cadastra = new AdminPerfil(); $cadastra->ExeCreate($post); if ($cadastra->getResult()) { header('Location: painel.php?exe=perfil/update&create=true&perfilId=' . $cadastra->getResult()); } else { WSErro($cadastra->getError()[0], $cadastra->getError()[1]); } } ?> <form name="PostForm" action="" method="post" enctype="multipart/form-data"> <label class="label"> <span class="field">Titulo:</span> <input type="text" name="perfil_title" value="<?php if (isset($post['perfil_title'])) { echo $post['perfil_title']; }