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)

<form action="" method="post">

somewhere in the php located in the page, add something like

    header('Location: '.site_url('account/login'));

People are also looking for solutions to the problem: sorting - How to group by categories in LDAP using PHP


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.