Welcome Guest, Not a member yet? Register   Sign In
Help about javascript
#3

[eluser]adityamenon[/eluser]
You can also try making two separate forms, with different submit button names "submit1" and "submit2"... display only the relevant form using jQuery, just like you are doing now. Finally, in your CI code, check which submit button was clicked and reroute accordingly:

Code:
if($this->input->post('submit1'))
    //do something
else if($this->input->post('submit2'))
    //do something else


Messages In This Thread
Help about javascript - by El Forum - 06-06-2011, 04:47 AM
Help about javascript - by El Forum - 06-06-2011, 05:48 AM
Help about javascript - by El Forum - 06-06-2011, 05:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB