示例#1
0
                } catch (PDOException $e) {
                    echo 'Erro ao inserir os dados: ' . $e->getMessage();
                }
            }
            header('Location: editora-lista.php');
        } else {
            $editora = new Editora();
        }
    }
}
?>
	
		<form id="f" name="f" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="post" >
			<input type='hidden' id='id' name='id' value='<?php 
echo $editora->id();
?>
' /><br />
			<label for="nome">Nome: </label>
			<input type="text" id="nome" name="nome" value='<?php 
echo $editora->nome();
?>
' /><br />
			<input type="submit" id="salvar" name="salvar" value="Salvar"/><br />
		</form>
	
	
	</body>
</html>