Difference between revisions of "Viewer Authentication Form Example"

From Second Life Wiki
Jump to navigation Jump to search
 
(Indention, added syntaxhighlight, moved to html5)
 
Line 1: Line 1:
= Example Bare-Bones Viewer Authentication Form=  
= Example Bare-Bones Viewer Authentication Form=  


<code>
<syntaxhighlight lang="html5">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="Pragma" content="no-cache">
        <title>Second Life Login</title>
    </head>
    <body>
        <div id="login_box">
            <form action="/go.cgi" method="POST" id="login-form">
                <div id="message"></div>
               
                <fieldset id="firstname">
                    <legend>First Name:</legend>
                   
                    <input type="text" id="firstname_input" size="15" maxlength="100" name="username" value="" />
                </fieldset>
               
                <fieldset id="lastname">
                    <legend>Last Name:</legend>
                   
                    <input type="text" size="15" maxlength="100" name="lastname" value="" />
                </fieldset>
               
                <fieldset id="password">
                    <legend>Password:</legend>
               
                    <input type="password" size="15" maxlength="100" name="password" value="" />
                    <input type="checkbox" name="remember_password" id="remember_password" value="" checked style="margin-left:0px;"/>
                   
                    <label for="remember_password">Remember password</label>
                </fieldset>
               
                <input type="hidden" id="grid" name="grid" value="" />
               
                <div id="submitbtn"><input class="input_over" type="submit" value="Connect" /></div>
               
                <div id="helplinks"></div>
                <div id="channelinfo"> | =</div>
            </form>
            <script language="JavaScript">document.getElementById('firstname_input').focus();</script>
        </div>
    </body>
</html>


<html xmlns="http://www.w3.org/1999/xhtml">
</syntaxhighlight>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<title>Second Life Login</title>
 
<body><div id="login_box">
<form action="/go.cgi" method="POST" id="login-form">
<div id="message"></div>
 
<fieldset id="firstname"><legend>First Name:</legend><input type="text" id="firstname_input" size="15" maxlength="100" name="username" value="" /></fieldset>
 
<fieldset id="lastname"><legend>Last Name:</legend><input type="text" size="15" maxlength="100" name="lastname" value="" /></fieldset>
 
<fieldset id="password"><legend>Password:</legend>
 
<input type="password" size="15" maxlength="100" name="password" value="" />
<input type="checkbox" name="remember_password" id="remember_password" value="" checked style="margin-left:0px;"/>
 
<label for="remember_password">Remember password</label>
</fieldset>
 
<input type="hidden" id="grid" name="grid" value="" />
 
<div id="submitbtn"><input class="input_over" type="submit" value="Connect" /></div>
 
<div id="helplinks"></div>
<div id="channelinfo"> | =</div>
</form>
<script language="JavaScript">document.getElementById('firstname_input').focus();</script>
 
</div>
</div>
 
</body></html>
 
</code>

Latest revision as of 02:20, 4 August 2017

Example Bare-Bones Viewer Authentication Form

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="cache-control" content="no-cache">
        <meta http-equiv="Pragma" content="no-cache">
        <title>Second Life Login</title>
    </head>
    <body>
        <div id="login_box">
            <form action="/go.cgi" method="POST" id="login-form">
                <div id="message"></div>
                
                <fieldset id="firstname">
                    <legend>First Name:</legend>
                    
                    <input type="text" id="firstname_input" size="15" maxlength="100" name="username" value="" />
                </fieldset>
                
                <fieldset id="lastname">
                    <legend>Last Name:</legend>
                    
                    <input type="text" size="15" maxlength="100" name="lastname" value="" />
                </fieldset>
                
                <fieldset id="password">
                    <legend>Password:</legend>
                
                    <input type="password" size="15" maxlength="100" name="password" value="" />
                    <input type="checkbox" name="remember_password" id="remember_password" value="" checked style="margin-left:0px;"/>
                    
                    <label for="remember_password">Remember password</label>
                </fieldset>
                
                <input type="hidden" id="grid" name="grid" value="" />
                
                <div id="submitbtn"><input class="input_over" type="submit" value="Connect" /></div> 
                
                <div id="helplinks"></div>
                <div id="channelinfo"> | =</div>
            </form>
            <script language="JavaScript">document.getElementById('firstname_input').focus();</script>
        </div>
    </body>
</html>