View Single Post
  #3  
Old 12-04-2008, 02:20 PM
 
effour effour is offline
 

Advanced Member
  
Join Date: May 2007
Posts: 96
 

Default Re: Broken Registration Form...help Please!

Here is my login.tpl code.

And firebug gives this error:
strng has no properties
rubyCheckPhone(undefined)help.php (line 179
check_registerform_fields()help.php (line 1885)
onclick(click clientX=0, clientY=0)help.php (line 1)

[IMG]chrome://firebug/content/blank.gif[/IMG] if (isNaN(parseInt(stripped))) {

Any suggestions? Thx!



PHP Code:
{* $IdLogin.tpl,v 1.0 2004/11/14 16:03:50 mclap Exp $ *}

{if 
$login eq "" }


<
table width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
<
tbody>

<
tr>
<
td>
</
td>
</
tr>

</
tr>
</
tbody>
</
table>


<
table width="100%" border="0" cellspacing="0" cellpadding="0">
<
tr>
<
td width="40%" valign="top">



<
TABLE width="100%" cellpadding="0" cellspacing="0" border="0">
<
TR>
<
TD style="padding-top:5px;">
<
smheader>LOGIN</smheader>
{ include 
file="auth_mod.tpl" }</TD>
</
TR>
</
TABLE>
<
table width="100%" cellspacing="0" cellpadding="0">
<
tr>
<
td style="background-image: url({$ImagesDir}/underline.gif); background-position: bottom; background-repeat: repeat-x; height:5px;"></td>
</
tr>
<
tr>
<
td><br />
<
smheader>FORGET YOUR PASSWORD?</smheader></td>
</
tr>
</
table>
<
form action="help.php" method="post" name="processform">
<
table cellpadding="0" cellspacing="0" width="95%">
<
tr>
<
td colspan="2"><br>
{
$lng.txt_password_recover} <br>
<
br>
</
td>
</
tr>
<
tr>
<
td height="10" align="right" class="FormButton" valign="top" style="padding-top:3px;"></td>
<
td height="10" align="right"><strong>{$lng.lbl_email}:</strong> &nbsp;&nbsp;
<
input type="text" class="fields" name="email" size="22" value="{$smarty.get.email|escape:"html"}/>
<
br>
{if 
$smarty.get.section eq "Password_Recovery_error"} <br>
<
class="ErrorMessage">{$lng.txt_email_invalid}</p>
{/if} </
td>
</
tr>
<
tr>
<
td height="5">&nbsp;</td>
<
td height="5" align="right"><br>
<
span style="text-transform: uppercase;"> {include file="buttons/submit.tpl" style="button" href="javascript: document.processform.submit()" js_to_href="Y"} </span>&nbsp;&nbsp;&nbsp; </td>
</
tr>
</
table>
<
input type="hidden" name="action" value="recover_password" />
</
form></td>
<
td valign="top"  style="background-image: url({$ImagesDir}/custom/vert_line.gif);background-repeat: repeat-y;" width="2%">&nbsp;</td>
<
td width="55%" valign="top" style="padding-top:5px;"> {if $login eq "" } <smheader>CREATE A NEW ACCOUNT</smheader><br />
{include 
file="customer/main/register.tpl" register_script_name="register.php"}
<
div id="reg_dlg"> <a name="regdlg"></a> {******************** REGISTER FORMBEGIN ************************}
                
                
                
                {******************** 
REGISTER FORMEND ************************} </div>
{if 
$av_error ne 1 && $js_enabled && $top_message.reg_error eq ''}
<
script type="text/javascript">
                    <!--
                    
document.getElementById('reg_dlg').style.display 'none';
                    -->
                    </
script>
{/if}
              {if 
$top_message.reg_error ne '' or $av_error eq 1}
<
script type="text/javascript">
                    <!--
                    
self.location.hash 'regdlg';
                    -->
                    </
script>
{/if} 
      
      {else}
      
      
Loggedin
      
      
{/if} </td>
</
tr>
</
table>
{else}

<
table width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
<
tbody>
<
tr>
<
td valign="top">

</
td>
</
tr>
<
tr>
<
td style="background-image: url(/skin1/images/underline.gif); background-position: center bottom; background-repeat: repeat-x; height: 5px;"/>
</
tr>
</
tbody>
</
table>



<
TABLE width="100%" cellpadding="0" cellspacing="0" border="0">

<
TR>
<
TD width="35%" align="left" valign="top">{ include file="authbox_mod.tpl" }<br />
{ include 
file="menu_profile_mod.tpl" }

<
form action="{$xcart_web_dir}/include/login.php" method="post" name="loginform">
<
div style="position:relative;left:0; top:0px" align="right"> {if $usertype eq "C"}
        {include 
file="buttons/logout_menu.tpl" style="button"}
        {else}
        {include 
file="buttons/logout_menu.tpl"}
        {/if} </
div>
<
input type="hidden" name="mode" value="logout" />
<
input type="hidden" name="redirect" value="{$redirect}/>
</
form>

</
TD>
<
TD width="70%" valign="top"></TD>
</
TR>
</
TABLE>
{/if} 
__________________
4.1.7
Reply With Quote