User Tools

Site Tools


appunti4s:form

Form

  1. Introduzione su pagine statiche e dinamiche
  2. radio button (esempio)
  3. pagina dinamica (esempio da usare e basta)
  4. Esercizio introduttivo e soluzione incompleta
soluzione1.htm
<html>
	<head>
	<head>
	<body>
		<form method="get" action="pagina.php">
			<input type="text" name="varnome" /> <label>nome</label>
			<input type="password" name="varpassword" /> <label>password</label>
			<input type="checkbox" name="varricordami" value="vero" /> <label>ricordami</label>
			<input type="submit" value="invia" />
 
 
		</form>
 
 
 
	</body>
</html>
soluzione2.htm
<html>
	<head>
	<head>
	<body>
		<form method="get" action="pagina.php">
			<input id="n" type="text" name="varnome" /> <label for="n">nome</label>
			<input id="p" type="password" name="varpassword" /> <label for="p">password</label>
			<input id="r" type="checkbox" name="varricordami" value="vero" /> <label for="r">ricordami</label>
			<input type="submit" value="invia" />
 
 
		</form>
 
 
 
	</body>
</html>
soluzione3.htm
<html>
 
	<head>
 
	<style type="text/css">
	div { margin:2% 1%;}
	</style>
 
	<head>
 
	<body>
 
		<form method="get" action="pagina.php">
			<div>
				<input id="n" type="text" name="varnome" /> 
				<label for="n">nome</label>
			</div>
 
			<div>
				<input id="p" type="password" name="varpassword" /> 
				<label for="p">password</label>
			</div>
 
			<div>
				<input id="r" type="checkbox" name="varricordami" value="vero" /> 
				<label for="r">ricordami</label>
			</div>
 
			<div>
			        <input type="submit" value="invia" />
			</div>
 
		</form>
 
	</body>
 
</html>
appunti4s/form.txt · Last modified: 2020/06/08 22:20 by 127.0.0.1