Widget:Reg API Signup

From Second Life Wiki
Jump to navigation Jump to search

<script type="text/javascript"> function setText() { var txt=document.getElementById("mailtext"); // fm = document.getElementById("contactform"); len = fm.length; str=""; // for (var i = 0; i < len; i++) { //if ( fm[i].name.substring(fm[i].name.length-7, fm[i].name.length-1)  !='ignore') if (fm[i].name!=undefined) { if (fm[i].name.substring(fm[i].name.length-6, fm[i].name.length)!='ignore') str += " " + fm[i].name + " = " + fm[i].value + "<br>"; //str += " ... " + fm[i].name.substring(fm[i].name.length-6, fm[i].name.length) + " ... "; } } tos_checked = document.getElementById("tos").checked; tech_reqs_checked = document.getElementById("tech_reqs").checked; //alert("CHECKED? TOS - " + tos_checked + " TECH REQS " + tech_reqs_checked); if (tos_checked*tech_reqs_checked) txt.innerHTML=str; else alert("You MUST check that you agree to the Terms of Service and understand the technical requirements!"); } </script> <form method="post" action="" id="contactform"> <fieldset> <legend>Reg API Request Form</legend> <div class="formRow"> <input size="33" maxlength="255" name="SL First Name" id="sl_firstname" type="text"> <label class="regapi"><span class="required">* </span>Second Life First Name:</label> </div> <div class="formRow"> <input size="33" maxlength="255" name="SL Last Name" id="sl_lastname" type="text"> <label class="regapi"><span class="required">* </span>Second Life Last Name:</label> </div> <div class="formRow"> <input size="33" maxlength="255" name="Email" id="email" type="text"> <label class="regapi" for="Email"><span class="required">* </span>Email:</label> </div> <div class="formRow"> <label class="regapi" for="Web site"><span class="required">* </span>Web site: </label> <input size="33" maxlength="255" name="Website" type="text"> <div class="helpText">The site where you will host the reg form (Example: http://secondlife.com/).</div> </div> <div class="formRow"> <label class="regapi" for="Purpose"><span class="required">* </span>Purpose: </label> <select name="Purpose"> <option selected="selected" value="">- Choose -</option> <option value="Limit accounts to Estate">Limit accounts to Estate</option> <option value="Custom Name Registration">Custom Name Registration</option> <option value="Internal organizational registration">Internal organizational registration</option> <option value="Other">Other</option> </select> <div class="helpText">What are you trying to achieve by using the Reg API.</div> </div> <div class="formRow"> <label class="regapi" for="Type of use"><span class="required">* </span>Type of use: </label> <select name="Type of use"> <option selected="selected" value="">- Choose -</option> <option value="Individual">Individual</option> <option value="Company">Company</option> <option value="Educator">Educator</option> <option value="TG Project">TG Project</option> <option value="Developer (listed in Directory)">Developer (listed in Directory)</option> </select> </div> <div class="formRow"> <label class="regapi" for="Description of Use"><span class="required">* </span> Description of Use:</label> <div class="explanatoryText"> <p>Please indicate why DirectSLURL is not sufficient.</p> <div style="margin-left: 0;"> <textarea class="regapi" cols="38" rows="4" name="description"></textarea> </div> <div class="counter">Max 1200 characters</div> </div> </div> <div id="region_name" class="formRow"> <label class="regapi" for="Start Location"><span class="required">* </span>Start Location(s):</label> <input name="Start location" maxlength="100" size="33" type="text"> <div class="helpText">Please separate region names with commas.</div> </div> <div class="formRow"> <label class="regapi" for="Registrations per month"><span class="required"><strong> *</strong> </span>Registrations per month:</label> <input maxlength="100" name="Registrations per month" type="text"> <div class="helpText">Please enter only numerical values.</div> </div> <div class="formRow"> <label class="regapi" for="Technical Requirements">Technical Requirements:</label> <div> <input value="1" id="tech_reqs" name="technical_requirements_ignore" type="checkbox"> I understand the API setup requires PHP and Web Server expertise. </div> </div> <div class="formRow clearfix"> <label class="regapi" for="Terms"><span class="required">* </span>Terms:</label> <div> <input value="1" id="tos" name="terms_ignore" type="checkbox"> I have read and agree to the <a href="http://wiki.secondlife.com/wiki/Linden_Lab_Official:API_Terms_of_Use">API Terms of Use</a> & <a href="http://secondlife.com/corporate/tos.php">Second Life Terms of Service</a>. </div> </div> <div class="formRow"> <label class="regapi" for="submit"></label> <div><input name="submit_ignore" value="submit" class="form-submit" type="button" onclick="setText()"></div> </div> </fieldset> </form> <br><br><b>Copy and paste into email and send to <a href="mailto:regapi@lists.lindenlab.com">regapi@lists.lindenlab.com</a></b>. <pre id="mailtext"></pre>