Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Login Code !?

  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Login Code !?

    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.

  2. #2
    New Coder
    Join Date
    Feb 2008
    Posts
    55
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Code:
    <% if !logged_in? %>
    <form accept-charset='utf-8' method='post' action='login'>
    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.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •