Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-20-2007, 02:27 PM
Junior Member
 
Join Date: Jul 2007
Posts: 2
Default sending user back to page of origin

Hi,

I have a form to login on every page. In the form I use $this->url() to see what page the user is loging in from:

PHP Code:
<div class="submit">
<input type="hidden" name="page" value="<?php echo $this->url(); ?>"/>
<input type="submit" class="submit" value="Login"/>
</div>
The $this->url() gives a value like /sitename/controller, but when I try to use this is in my controller with a redirect I get sent to /sitename/sitename/controller. I could remove /sitename from the "page" value but I guess there has to be an easier way to send the user back from the page that he has logge in from. I've googled like crazy but with no succes.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:56 PM.