php form action link
I am trying to edit the following php code to put it in the login form so when the user login he'll be redirected to his profile page.. here is the code that i am using to go to the profile page using a button ..
<li> <a <?php echo '<a href="'.site_url('show/agentproperties/'.$user_id).'">My Store</a>'; ?>
and i want to edit the form link to put the code above here
<form action="<?php echo site_url('account/login');?>" method="post">
so how do we edit the form to include the 1st code instead of the code that's being used in the form right now.. which just redirects the user to the home page ?
have the page submit to itself (optional)
somewhere in the php located in the page, add something like