Easy A
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
HomeHome  Latest imagesLatest images  SearchSearch  RegisterRegister  Log inLog in  

Share
 

 Login Code !?

View previous topic View next topic Go down 
AuthorMessage
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Login Code !? Empty
PostSubject: Login Code !?   Login Code !? EmptyFri Jul 27, 2012 11:43 pm

Code:

<% if !logged_in? %>
<form accept-charset='utf-8' method='post' action='login'>
Email: <input type='text' size='20' name='username'/>
Password: <input type='password' size='20' name='password'/>
<input type='submit' value='Log in'/>
</form>
<% else %>
Hello <%= contact.name %>. (<a href='logout'>log out</a>)
<% end %>

Basically, Im using a system called "Hostpay" for reselling web hosting.

The above code works fine in the index.rhtml file, but when I try it in header.rhtml it wont work.

It comes up with an internal server error, but then when I go back to the homepage, it says I am logged in.

Why is this? And how can I fix it?

Thanks.
Back to top Go down
Database
Member
Member
Database

Posts : 318
Join date : 2012-03-04

Login Code !? Empty
PostSubject: Re: Login Code !?   Login Code !? EmptyFri Jul 27, 2012 11:44 pm

Database wrote:
Code:

<% if !logged_in? %>
<form accept-charset='utf-8' method='post' action='login'>
Email: <input type='text' size='20' name='username'/>
Password: <input type='password' size='20' name='password'/>
<input type='submit' value='Log in'/>
</form>
<% else %>
Hello <%= contact.name %>. (<a href='logout'>log out</a>)
<% end %>

Basically, Im using a system called "Hostpay" for reselling web hosting.

The above code works fine in the index.rhtml file, but when I try it in header.rhtml it wont work.

It comes up with an internal server error, but then when I go back to the homepage, it says I am logged in.

Why is this? And how can I fix it?

Thanks.

you not write the extension file link correctly and also probably thats problem about .rhtml
1. your webhosting not supported with .rhtml
2. or some of your code is false.
Back to top Go down
 

Login Code !?

View previous topic View next topic Back to top 
Page 1 of 1

 Similar topics

-
» PHP Tutorials: Register & Login: User login
» Please format code in your posts using the [code][/code] tag!
» Secure Login with javascript
» Easy Registration/Login system
» Facebook Login with AJAX Calls

Permissions in this forum:You cannot reply to topics in this forum
Easy A :: Login Code !? Edit-trash Useless :: Trash-