0

I'm trying to call this 'search' method using form_input:

-- controller
function search($item_to_search, $page_to_display)
{
    //do this and that
}

-- view
<?php
    echo form_open("admin/admin_product_c/search/[words come here]/0"); <-- no clue what to do here..
    echo form_input('search_data', 'Type the words to search');
    //submit button here
?>

Is there a way to fill out and complete the form_open when clicking the submit button so that I can pass values via URL? I'd like to avoid using Session / POST in this case if possible because keeping things in one format really helps me out.

1 Answer 1

1

See my answer here:

How to make dynamic form action address in codeigniter?

There are two solutions you can choose from - with JavaScript or without, I think the second one fits you.

Sign up to request clarification or add additional context in comments.

1 Comment

Yup, I chose the second one :) Thx

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.