Skip to content

Instantly share code, notes, and snippets.

@marttosc
Created March 26, 2014 22:46
Show Gist options
  • Save marttosc/9795369 to your computer and use it in GitHub Desktop.
Save marttosc/9795369 to your computer and use it in GitHub Desktop.
Minicurso PHP (Aula 2) - Formulário $_POST [e.g. 1]
<?php
header("Content-type: text/html; charset=utf-8");
date_default_timezone_set("America/Sao_Paulo");
?>
<html>
<head>
<title>Formulário via POST</title>
</head>
<body>
<form method="post" action="dobro.php">
<label for="txtNumero">Informe o número:</label>
<br>
<input type="text" name="txtNumero" id="txtNumero">
<br>
<input type="hidden" name="hdnDobrar" value="1">
<input type="submit" value="Calcular o dobro">
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment