Arquitetura MVC
Bom dia!
Estou estudando mvc para utilizar em meus sistemas, trabalho com: php,javascript, ajax e css. Na teoria eu entendi tudo pois ja estou lendo a algum tempo, mais não consegui ver como isso ficaria web.
Digamos que eu tenha uma pagina cadastro.php onde serão feitos os cadastros e uma pagina consulta.php onde serão listados os dados, como ficará a arquitetura desse sistema?
cadastro.php--------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="cadastro_script.php">
<label>Nome:</label>
<input type="text" name="nome" id="nome" />
<br />
<label>Nome:</label>
<input type="text" name="data_nascimento" id="data_nascimento" />
<input type="submit" name="button" id="button" value="Cadastrar" />
</form>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------
consulta.php------------------------------------------------------------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>Nome:</td>
<td>Data Nascimento:</td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
------------------------------------------------------------------------------------------------------------------------------
Valeu.
Discussão (3)
Carregando comentários...