From: Daniel Gruno Date: Thu, 6 Sep 2012 09:44:15 +0000 (+0000) Subject: Make the html examples highlighted. X-Git-Tag: 2.5.0-alpha~6355 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=140436f08fac648ef3ec6f7aeb789b6f4b7e132e;p=apache Make the html examples highlighted. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1381545 13f79535-47bb-0310-9956-ffa450edef68 --- 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.

Example login form - <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>
+ +<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> +

The part that does the actual login is handled by the form-login-handler. @@ -157,14 +159,14 @@ SessionCryptoPassphrase secret reused for different areas of a website.

Example login form with location - <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>
+ +<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> +
@@ -216,13 +218,13 @@ SessionCryptoPassphrase secret URL is.

Example inline login form - <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" />
-
- </form>
+ +<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" /> +</form> +

When the end user has filled in their login details, the form will make @@ -252,16 +254,16 @@ SessionCryptoPassphrase secret per the example below.

Example with body preservation - <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" />
- <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" />

-
- </form> + +<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" /> +
<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" />
+</form> +

How the method, mimetype and body of the original request are embedded within the