Welcome Guest, Not a member yet? Register   Sign In
Problem whit Ajax in CI 3.1.10
#1

Hello, I have an issue whit a select that get the options from ajax. When I click Submit button, it foes not send the value y selected via $_POST. I used the enable_profiler and it shows that only the name and the level where sended:

$_POST['name']
$_POST['level']

The third element, which is the ajax select, was not there.

Can you help me?

Thanks in advance.
Reply
#2

Hi, you will need to show us some code.
Reply
#3

I just figured it out. I just add attrs to the form:

<?= form_open('url', array('name' => 'test'); ?>

And put the form attr to the select

<select form='test'>

Thanks anyway
Reply




Theme © iAndrew 2016 - Forum software by © MyBB