0

my view page

i have variables $month,$year,$id.in my viewpage.i want to pass this to controller function using echo form_open for updation

  echo form_open('money_c/updatemanualdata/'.$id,$month,$year);?>

how will call this in my controller money_c

function updatemanualdata('')..?>here what will i put please help

1 Answer 1

2

If your form action will be

echo form_open('money_c/updatemanualdata/'.$id.'/'.$month.'/'.$year);

You can catch that in your controller using url segment like this. be sure to load the url helper $this->load->helper('url')

function updatemanualdata($id, $month, $year){}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.