0

i have a problem in codeigniter project . codeignter has filter and delete keys of array and also some value . my html is

<input type="text" name="n['rrr'][]">
<input type="text" name="n['rrr2'][]">

and php code

echo "<pre>";
        print_r($_POST['n']);
        echo "</pre>";

and also i add same code to begin of index.php in the root path

result is

Array
(
    ['rrr'] => Array
        (
            [0] => llll
        )

    ['rrr2'] => Array
        (
            [0] => kkkkkk
        )

)
Array
(
    [0] => Array
        (
            [0] => kkkkkk
        )

)

array 1 is showed from index and second from the controller .

and thanks .

2
  • Spit more better organized code in here. It is very unclear what do you have there or what is your intention. I have no clue what does "and second from the controller" mean. Check here how to write good question. Commented Feb 26, 2016 at 11:35
  • what you want to achieve and what actual problem u facing? Commented Feb 26, 2016 at 14:11

1 Answer 1

1

<input type="text" name="n[rrr][]">
<input type="text" name="n[rrr2][]">

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.