summaryrefslogtreecommitdiffstats
path: root/docs/manual/mod
diff options
context:
space:
mode:
authorDaniel Gruno <humbedooh@apache.org>2012-09-06 11:44:15 +0200
committerDaniel Gruno <humbedooh@apache.org>2012-09-06 11:44:15 +0200
commit140436f08fac648ef3ec6f7aeb789b6f4b7e132e (patch)
treec381e235d8782dc2a9ec58946d332ea563ff383b /docs/manual/mod
parents/dependant/dependent/ (diff)
downloadapache2-140436f08fac648ef3ec6f7aeb789b6f4b7e132e.tar.xz
apache2-140436f08fac648ef3ec6f7aeb789b6f4b7e132e.zip
Make the html examples highlighted.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1381545 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod')
-rw-r--r--docs/manual/mod/mod_auth_form.xml62
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>
- &lt;form method="POST" action="/dologin.html"&gt;<br />
- Username: &lt;input type="text" name="httpd_username" value="" /&gt;<br />
- Password: &lt;input type="password" name="httpd_password" value="" /&gt;<br />
- &lt;input type="submit" name="login" value="Login" /&gt;<br />
- &lt;/form&gt;<br />
+ <highlight language="html">
+&lt;form method="POST" action="/dologin.html"&gt;
+ Username: &lt;input type="text" name="httpd_username" value="" /&gt;
+ Password: &lt;input type="password" name="httpd_password" value="" /&gt;
+ &lt;input type="submit" name="login" value="Login" /&gt;
+&lt;/form&gt;
+ </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>
- &lt;form method="POST" action="/dologin.html"&gt;<br />
- <indent>
- Username: &lt;input type="text" name="httpd_username" value="" /&gt;<br />
- Password: &lt;input type="password" name="httpd_password" value="" /&gt;<br />
- &lt;input type="submit" name="login" value="Login" /&gt;<br />
- &lt;input type="hidden" name="httpd_location" value="http://example.com/success.html" /&gt;<br />
- </indent>
- &lt;/form&gt;<br />
+ <highlight language="html">
+&lt;form method="POST" action="/dologin.html"&gt;
+ Username: &lt;input type="text" name="httpd_username" value="" /&gt;
+ Password: &lt;input type="password" name="httpd_password" value="" /&gt;
+ &lt;input type="submit" name="login" value="Login" /&gt;
+ &lt;input type="hidden" name="httpd_location" value="http://example.com/success.html" /&gt;
+&lt;/form&gt;
+ </highlight>
</example>
</section>
@@ -216,13 +218,13 @@ SessionCryptoPassphrase secret
URL is.</p>
<example><title>Example inline login form</title>
- &lt;form method="POST" <strong>action=""</strong>&gt;<br />
- <indent>
- Username: &lt;input type="text" name="httpd_username" value="" /&gt;<br />
- Password: &lt;input type="password" name="httpd_password" value="" /&gt;<br />
- &lt;input type="submit" name="login" value="Login" /&gt;<br />
- </indent>
- &lt;/form&gt;<br />
+<highlight language="html">
+&lt;form method="POST" <strong>action=""</strong>&gt;
+ Username: &lt;input type="text" name="httpd_username" value="" /&gt;
+ Password: &lt;input type="password" name="httpd_password" value="" /&gt;
+ &lt;input type="submit" name="login" value="Login" /&gt;
+&lt;/form&gt;
+</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>
- &lt;form method="POST" action=""&gt;<br />
- <indent>
- Username: &lt;input type="text" name="httpd_username" value="" /&gt;<br />
- Password: &lt;input type="password" name="httpd_password" value="" /&gt;<br />
- &lt;input type="submit" name="login" value="Login" /&gt;<br />
- <strong>&lt;input type="hidden" name="httpd_method" value="POST" /&gt;<br />
- &lt;input type="hidden" name="httpd_mimetype" value="application/x-www-form-urlencoded" /&gt;<br />
- &lt;input type="hidden" name="httpd_body" value="name1=value1&amp;name2=value2" /&gt;</strong><br />
- </indent>
- &lt;/form&gt;
+ <highlight language="html">
+&lt;form method="POST" action=""&gt;
+ Username: &lt;input type="text" name="httpd_username" value="" /&gt;
+ Password: &lt;input type="password" name="httpd_password" value="" /&gt;
+ &lt;input type="submit" name="login" value="Login" /&gt;
+ <br/> <strong>&lt;input type="hidden" name="httpd_method" value="POST" /&gt;
+ &lt;input type="hidden" name="httpd_mimetype" value="application/x-www-form-urlencoded" /&gt;
+ &lt;input type="hidden" name="httpd_body" value="name1=value1&amp;name2=value2" /&gt;</strong><br/>
+&lt;/form&gt;
+ </highlight>
</example>
<p>How the method, mimetype and body of the original request are embedded within the