Skip to content

Instantly share code, notes, and snippets.

@lukaswelte
Created January 13, 2015 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaswelte/ec0b316b493906a05aec to your computer and use it in GitHub Desktop.
Save lukaswelte/ec0b316b493906a05aec to your computer and use it in GitHub Desktop.
A simple one page form
<html>
<body>
<?php
if ( isset($_GET['g'] ) OR isset($_GET['n'] ) OR isset($_GET['t'] ) )
{
echo "Anrede: ". $_GET['g'];
echo "Namen: ". $_GET['n'];
echo "Anliegen: ". $_GET['t'];
} else {
echo "Bitte füllen Sie das Dokument aus";
}
?>
<br />
<form action="index.php" name="" method="get">
<p>Bitte wählen Sie Ihr Geschlecht:</p>
<input type="radio" name="g" value="f" />Frau
<input type="radio" name="g" value="m" />Mann
<p>Bitte geben Sie Ihren Namen ein:</p>
<p><input type="text" name="n" maxlength="50" /></p>
<p>Bitte geben Sie hier Ihre Nachricht ein.:</p>
<p><textarea name="t" rows="6" cols="60"></textarea></p>
<input type="submit" value="Abschicken" />
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment