Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Login form will not work? Any Ideas?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-03-2004, 11:14 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default Login form will not work? Any Ideas?

I made this form for my custom login page. All of the logic seems right but from some reason it doesn't work? Any thoughts as to why?

Code:
If you already have an account, please login by filling in the form below.</p> <table border=0> <FORM action="{$xcart_web_dir}/include/login.php" method="post" name="loginform"> <tr> <td height="10" width="78" class=FormButton>Login</td> <td width="282" height="10"><input type="text" name="username" size="30"> </td> </tr> <tr> <td height="10" width="78" class=FormButton>Password</td> <td width="282" height="10"><input type="password" name="password" size="30"> <input type="hidden" name="usertype" value="C"> </td> </tr> <tr> <td height="10" width="78"></td> <td width="282" height="10"></td> </tr> <tr> <td height="10" width="78"></td> <td width="282" height="10">LOG IN </td> </tr> <INPUT type="hidden" name="mode" value="logout"> <INPUT type="hidden" name="redirect" value="{$redirect}"> </FORM> </table> If you do not have an account, you can easily register here</font>
Reply With Quote
  #2  
Old 11-03-2004, 11:45 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

<INPUT type="hidden" name="mode" value="logout">

Your mode is going to log you out instead of in.
Reply With Quote
  #3  
Old 11-03-2004, 12:09 PM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

Jon, thanks it worked!

It logs me in but for from some reason when you log in it doesn't redirect you like it does when you login using the /error_message.php?login_incorrect script? I have a call to redirect? is it wrong?

Code:
<INPUT type="hidden" name="redirect" value="{$redirect}">
Reply With Quote
  #4  
Old 11-03-2004, 12:15 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Load the page and see what the actual redirect value is.
Reply With Quote
  #5  
Old 11-03-2004, 12:19 PM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

Jon, is guess my brain is on break because I am not following?

What should I look for?

The site is an extreme work in progress - but see what you can make of it

http://www.pariscape.com/pages.php?pageid=3[/url]
Reply With Quote
  #6  
Old 11-03-2004, 02:02 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

When you go to that page and you view source you'll see:

<INPUT type="hidden" name="redirect" value="{$redirect}">

That means that your page isn't processing your smarty, so you need to specify this value.

Try:

<input type=hidden name=redirect value="customer">
Reply With Quote
  #7  
Old 11-04-2004, 06:55 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default Didn't work

Jon

Thanks for the replies, but that didn't fix the problem either. Any more ideas? Or how I can change the form/make a form to log in on and or register?

Thanks
Reply With Quote
  #8  
Old 11-04-2004, 10:02 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

Depends what x-cart version your using.

I would just include the auth.tpl in a smarty template.
Reply With Quote
  #9  
Old 11-05-2004, 07:23 AM
 
elabdesigns elabdesigns is offline
 

Advanced Member
  
Join Date: May 2003
Location: Mount Airy, NC
Posts: 66
 

Default

Jon-

I would like to thank you for all the help you have given me thus far. Can you help me even further.

Can you tell me how do make a smarty template and include the auth.tpl like you suggested?

I have tried it all, from making my own myaccoun.php to everthing under the moon. All will not redirect
Reply With Quote
  #10  
Old 11-05-2004, 08:07 AM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default

What version are you running?
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:13 AM.

   

 
X-Cart forums © 2001-2020