Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: help with a html template  (Read 2811 times)

0 Members and 1 Guest are viewing this topic.

steven32collins

    Topic Starter


    Intermediate
    • Experience: Beginner
    • OS: Windows XP
    help with a html template
    « on: March 13, 2010, 09:47:16 AM »
    hi ive got this html template here for a logon script on a forum how can i add an extra feild (for numbers) and make it so it saves it as a variable?#


    <script language='JavaScript' type="text/javascript">
    <!--
    function ValidateForm() {
       var Check = 0;
       if (document.LOGIN.UserName.value == '') { Check = 1; }
       if (document.LOGIN.PassWord.value == '') { Check = 1; }
       if (Check == 1) {
          alert("{ibf.lang.blank_fields}");
          return false;
       } else {
          document.LOGIN.submit.disabled = true;
          return true;
       }
    }
    //-->
    </script>     
    {ibf.lang.login_text}




    {ibf.lang.forgot_pass} <a href='{ibf.vars.board_url}/index.{ibf.vars.php_ext}?act=Reg&amp;CODE=10'>{ibf.lang.pass_link}[/url]




    <form action="{ibf.script_url}act=Login&amp;CODE=01" method="post" name='LOGIN' onsubmit='return ValidateForm()'>
    <input type='hidden' name='referer' value="$referer" />
    <div class="tableborder">
      <div class="maintitle"><{CAT_IMG}>&nbsp;{ibf.lang.log_in}</div>
      <div class='pformstrip'>$message</div>
      <table class="tablebasic" cellspacing="1">
      <tr>
        <td class='pformleftw'>{ibf.lang.enter_name}</td>
        <td class='pformright'><input type='text' size='20' maxlength='64' name='UserName' class='forminput' /></td>
      </tr>
      <tr>
        <td class='pformleftw'>{ibf.lang.enter_pass}</td>
        <td class='pformright'><input type='password' size='20' name='PassWord' class='forminput' /></td>
      </tr>
      </table>
      <div class="pformstrip">{ibf.lang.options}</div>      
      <table class="tablebasic" cellspacing="1">
      <tr>
        <td class='pformleftw'>{ibf.lang.cookies}</td>
        <td class='pformright'><input type="radio" name="CookieDate" value="1" checked="checked" />{ibf.lang.cookie_yes}
    <input type="radio" name="CookieDate" value="0" />{ibf.lang.cookie_no}</td>
      </tr>
      <tr>
        <td class='pformleftw'>{ibf.lang.privacy}</td>
        <td class='pformright'><input type="checkbox" name="Privacy" value="1" />{ibf.lang.anon_name}</td>
      </tr>
      </table>      
      <div class="pformstrip" align="center"><input type="submit" name='submit' value="{ibf.lang.log_in_submit}" class='forminput' /></div>
    </div>
    </form>
    Everything should be made as simple as possible, but not simpler.
    --Albert Einstein--