sir, when i write $_POST["action"] == "Add" this code in controller , for this, it will show me undefine index, when i have writter the exact same code of yours. whats the problem sir?
this is driving me crazy, somebody help me please, did everything in the video, in my controller it says undefined index "action" if i put it like in the video if($_POST["action"] == "Add"){ } in the other hand if i put: if( $this->input->post("action") =="Add" ){ } it doesn't retrieve data, nothing, a blank alert but doesn't insert nothing
Hi, as some people already stated in the coments section, I am also facing the error - Undefined index: action if($_POST["action"] == "Add"){ } to the first video of insert data why??
Undefined index: action Why ? if($_POST["action"] == "Add"){ } sir this line of code is not working,kindly provide me solution and i also checked in source code still it is not working i also used both statements written above but still it is not working .
it happens because Crud controller function user_action(), didn't go inside if($_POST["action"] == "Add") i think view didn't pass 'action' value to controller.i don't know how to correct
My form and listing(view all fetched data) page is in same page so i want my page's content reload once new data insert to database by submitting form . So what i use for that ? - Your used : dataTable.ajax.reload(); Thanks in advance .
Hello FreeBird, as I encountered the same problem with you, you should try to include this link after dataTable.bootstrap.min.css because this work on me.
Hi Ulfah have you seen source of this video, in that we have share complete source code. And this is the hidden field whose value is "Add", if value of that hidden action is equal to "Add" then it will execute if block. Please check source of this video you can find solution.
Hi have you seen source code of this video, this action is a hidden field in which we have define different operation like, if we want to insert some data then this field value will be 'Add' and if we want to update of edit some data then this field value will be change to 'Edit', so gone through source code.
Please make a tutorial for fetching data from database in datatables using ajax php codeigniter. thanks
Hi , is there any way that i can add a "add another one" button?
sir, when i write
$_POST["action"] == "Add" this code in controller ,
for this,
it will show me undefine index, when i have writter the exact same code of yours. whats the problem sir?
same
you are great thank you 4 shearing your knowledge !!
Thanks Rahul...
DataTables warning: table id=user_data - Ajax error.
I try your source code and another way but, I can't solve this error! Please help me ...
Hi, Thank you for your wonderful videos. I want to put where condition on my project in datatables. could you please suggest me.
this is driving me crazy, somebody help me please, did everything in the video, in my controller it says undefined index "action" if i put it like in the video
if($_POST["action"] == "Add"){
}
in the other hand if i put:
if( $this->input->post("action") =="Add" ){
}
it doesn't retrieve data, nothing, a blank alert but doesn't insert nothing
nevermind i did what u say and i put a hidden input thx a lot.
also i have a question what is the purpose of the hidden input?
remove the if statement
if you get error change your code like this :
Close
In update,
I am not changing the image then click the add button.it is showing the error.
Undefined offset:1
Undefined offset :1
Controller/crud.php
Hi, as some people already stated in the coments section, I am also facing the error
- Undefined index: action
if($_POST["action"] == "Add"){
}
to the first video of insert data why??
put a hidden input
MUCHAS GRACIAS AMIGO
When i insert data then data is inserted successfully but page is not reload perfectly it show black window so please help me
Undefined index: action Why ?
if($_POST["action"] == "Add"){
}
sir this line of code is not working,kindly provide me solution and i also checked in source code still it is not working
i also used both statements written above but still it is not working .
Hello. Image is not being uploaded to my directory nor is it found in my computer? What is the problem?
do you following the previous tutorial that explain how to upload image using ajax ?
Hi Webslesson could you show me how to update image in codeigniter with more fileinput
In next we have covered this topic, please wait for next video. Thanks...
Thank webslesson could you advice me how to be codeigniter coding skill?
Awesome !!
Ty !!
Sir can you do codeigniter form_validation here? Thanks.
That's great
i am getting error like Undefined index:action filenmae:controllers/crud.php how can in overcome this error please helpme
change your code like this :
Close
Yes it is working
Hi! My code doesn't show any errors and it doesn't insert either. could you help me?
Hi Eric Jaucian, Have you follow source code link which we have provide at description, please compare your code with that source code.
I did exactly that. im still getting a error. when i check the console its the ajax method url. its not loading the user/user_action
yes i have the same problem
it happens because Crud controller function user_action(),
didn't go inside if($_POST["action"] == "Add")
i think view didn't pass 'action' value to controller.i don't know how to correct
just put a hidden input in ur view like this:
My form and listing(view all fetched data) page is in same page so i want my page's content reload once new data insert to database by submitting form . So what i use for that ? - Your used : dataTable.ajax.reload();
Thanks in advance .
It is very easy, if you want to reload whole your page, so you can use simple javascript like - Location.reload()
Undefined index: action?
Undedined index : Value.... Why????? Please
where code to show modal when i tried to click add button?
Hello FreeBird, as I encountered the same problem with you, you should try to include this link after dataTable.bootstrap.min.css because this work on me.
i cant be able to get my image preview
Hi Joseph Omenda, have you check source code of this video tutorial. After this you have not solve your problem, please share your code here.
This code is not working
my button add doesn't work, please help
do you get any error message ?
problem in Undefined index: action pls Reply
Hi have you write submit button value is equal to Add, if you have write some other value, so please change to "Add"
You should try inserting this line of code below your cancel and submit button. This works on me.
tnx
h!!! sir do you know laravel framework if you know plz make some tutorials with ajax laravel framework
Thanks.. I will also make this type of tutorial in a very short time...
Undefined index: action Why ?
if($_POST["action"] == "Add"){
}
Hi Ulfah have you seen source of this video, in that we have share complete source code. And this is the hidden field whose value is "Add", if value of that hidden action is equal to "Add" then it will execute if block. Please check source of this video you can find solution.
but still error
u are time west material..........
Sir can you do codeigniter form_validation here? Thanks.
my button add doesn't work, please help.
Undefined index: action Why ?
if($_POST["action"] == "Add"){
}
Hi have you seen source code of this video, this action is a hidden field in which we have define different operation like, if we want to insert some data then this field value will be 'Add' and if we want to update of edit some data then this field value will be change to 'Edit', so gone through source code.
thank you it's work now the probleme is i nead hidden field like
now i change my coode like this :
Close
thank you so much
thank you sir