diff options
-rw-r--r-- | docs/manual/mod/mod_auth_form.xml | 62 |
1 files changed, 32 insertions, 30 deletions
diff --git a/docs/manual/mod/mod_auth_form.xml b/docs/manual/mod/mod_auth_form.xml index 23966b8b07..33449ce448 100644 --- a/docs/manual/mod/mod_auth_form.xml +++ b/docs/manual/mod/mod_auth_form.xml @@ -118,11 +118,13 @@ SessionCryptoPassphrase secret provide their usename and password.</p> <example><title>Example login form</title> - <form method="POST" action="/dologin.html"><br /> - Username: <input type="text" name="httpd_username" value="" /><br /> - Password: <input type="password" name="httpd_password" value="" /><br /> - <input type="submit" name="login" value="Login" /><br /> - </form><br /> + <highlight language="html"> +<form method="POST" action="/dologin.html"> + Username: <input type="text" name="httpd_username" value="" /> + Password: <input type="password" name="httpd_password" value="" /> + <input type="submit" name="login" value="Login" /> +</form> + </highlight> </example> <p>The part that does the actual login is handled by the <var>form-login-handler</var>. @@ -157,14 +159,14 @@ SessionCryptoPassphrase secret reused for different areas of a website.</p> <example><title>Example login form with location</title> - <form method="POST" action="/dologin.html"><br /> - <indent> - Username: <input type="text" name="httpd_username" value="" /><br /> - Password: <input type="password" name="httpd_password" value="" /><br /> - <input type="submit" name="login" value="Login" /><br /> - <input type="hidden" name="httpd_location" value="http://example.com/success.html" /><br /> - </indent> - </form><br /> + <highlight language="html"> +<form method="POST" action="/dologin.html"> + Username: <input type="text" name="httpd_username" value="" /> + Password: <input type="password" name="httpd_password" value="" /> + <input type="submit" name="login" value="Login" /> + <input type="hidden" name="httpd_location" value="http://example.com/success.html" /> +</form> + </highlight> </example> </section> @@ -216,13 +218,13 @@ SessionCryptoPassphrase secret URL is.</p> <example><title>Example inline login form</title> - <form method="POST" <strong>action=""</strong>><br /> - <indent> - Username: <input type="text" name="httpd_username" value="" /><br /> - Password: <input type="password" name="httpd_password" value="" /><br /> - <input type="submit" name="login" value="Login" /><br /> - </indent> - </form><br /> +<highlight language="html"> +<form method="POST" <strong>action=""</strong>> + Username: <input type="text" name="httpd_username" value="" /> + Password: <input type="password" name="httpd_password" value="" /> + <input type="submit" name="login" value="Login" /> +</form> +</highlight> </example> <p>When the end user has filled in their login details, the form will make @@ -252,16 +254,16 @@ SessionCryptoPassphrase secret per the example below.</p> <example><title>Example with body preservation</title> - <form method="POST" action=""><br /> - <indent> - Username: <input type="text" name="httpd_username" value="" /><br /> - Password: <input type="password" name="httpd_password" value="" /><br /> - <input type="submit" name="login" value="Login" /><br /> - <strong><input type="hidden" name="httpd_method" value="POST" /><br /> - <input type="hidden" name="httpd_mimetype" value="application/x-www-form-urlencoded" /><br /> - <input type="hidden" name="httpd_body" value="name1=value1&name2=value2" /></strong><br /> - </indent> - </form> + <highlight language="html"> +<form method="POST" action=""> + Username: <input type="text" name="httpd_username" value="" /> + Password: <input type="password" name="httpd_password" value="" /> + <input type="submit" name="login" value="Login" /> + <br/> <strong><input type="hidden" name="httpd_method" value="POST" /> + <input type="hidden" name="httpd_mimetype" value="application/x-www-form-urlencoded" /> + <input type="hidden" name="httpd_body" value="name1=value1&name2=value2" /></strong><br/> +</form> + </highlight> </example> <p>How the method, mimetype and body of the original request are embedded within the |