Welcome Guest, Not a member yet? Register   Sign In
Updating my news post (with jquery/Ajax)
#11

[eluser]DynamiteN[/eluser]
[quote author="cahva" date="1271038875"]So you have this:
Code:
if($this->input->post('submit') == TRUE){
And its saying that $_POST['submit'] is not TRUE. Try to change that to
Code:
if($this->input->post('submit')){
CI's input lib will return false if its not set so you dont have to use == TRUE(which itself is faulty as submits value is "Edit Post").

And even better, dont use post('submit') to check if the form is submitted. Some browsers(for example older IE) dont send the input value if you have not pressed the button, but pressed enter on some of the fields which also sends the form.

And check from the firebug that it indeed have sent the right information in POST.[/quote]

i will check that right away
in firebug everytime i press submit it shows that it gets all of the data from the inputs


Messages In This Thread
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 08:42 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 10:46 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 10:50 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 11:12 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 11:16 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 11:23 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 11:27 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 11:43 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 01:12 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 03:21 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 04:03 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 04:18 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 06:34 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 06:54 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 07:03 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 07:10 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 07:43 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 07:57 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-11-2010, 08:33 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-12-2010, 07:55 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-12-2010, 08:03 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-12-2010, 08:22 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-12-2010, 10:12 AM
Updating my news post (with jquery/Ajax) - by El Forum - 04-12-2010, 01:24 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-12-2010, 01:35 PM
Updating my news post (with jquery/Ajax) - by El Forum - 04-12-2010, 01:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB