Skip to content

Commit

Permalink
pm
Browse files Browse the repository at this point in the history
8y687tg
  • Loading branch information
PietroMilani committed Apr 1, 2020
1 parent 6b9eb58 commit 09c8da0
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
45 changes: 45 additions & 0 deletions pietro_milani/1-form.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html>
<head>
<title>Esempio di form</title>
</head>
<body>

<h3>Esempio di form</h3>

<p>ciao... edit by Daniele</p>
<p>by Rocco</p>

<form accept-charset="UTF-8" action="action_page.php" autocomplete="off" method="GET">
<fieldset>
<legend>Gruppo:</legend>
<label for="name">Nome</label>
<input name="name" type="text" value="" /> <br />
<br />
<label for="sex">Sesso</label>
<input checked="checked" name="sex" type="radio" value="male" /> Male
<input name="sex" type="radio" value="female" /> Female <br />
<br />
<textarea cols="30" rows="5" placeholder="Messaggio" name="messaggio"></textarea><br />
<br />
<label for="destinatario">Scrivi a:</label>
<select name="destinatario">
<option selected="selected" value="0">Generale</option>
<option value="1">Commerciale</option>
<option value="2">Tecnico</option>
</select><br />
<br />
<label for="interessi">Interessato a:</label> <br />
<input name="interessi[]" type="checkbox" value="sport" /> Sport<br />
<input name="interessi[]" type="checkbox" value="cinema" /> Cinema<br />
<input name="interessi[]" type="checkbox" value="musica" /> Musica<br />
<input name="interessi[]" type="checkbox" value="altro" /> Altro<br />
<br />
<button type="reset" value="Annulla">Annulla</button>
<button type="submit" value="Submit">Invia</button>
</fieldset>
</form>


</body>
</html>
14 changes: 14 additions & 0 deletions pietro_milani/action_page.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

$mionome = $_GET["nomepersona"];
/*
$messaggio = $_GET["messaggio"];
$sesso = $_GET["messaggio"];
$interessi = $_GET["interessi"];
*/

?>

<h2>La risposta</h2>

Il tuo nome è: <?=$mionome?>
Binary file added pietro_milani/pietro_milani - collegamento.lnk
Binary file not shown.

0 comments on commit 09c8da0

Please sign in to comment.