Welcome Guest, Not a member yet? Register   Sign In
help: losing uri segment when failing form validation
#3

[eluser]pabloheim[/eluser]
[quote author="WanWizard" date="1278796962"]If the URL is different upon submitting a form, check the form action in your page source. Does it contain the '4' or is it already stripped there?[/quote]

Hi, thanks for comment.

in the form, the url in the action attribute the same asthe controller

Code:
<?php echo form_open('controller/edit');?>

as you can see, it doesnt contain the id.
im putting it in a hidden input :

Code:
<?=form_hidden('id_item',$id_item)?> //comes from the $data['id_item'] in the controller
then manage all in the model to insert new information


Messages In This Thread
help: losing uri segment when failing form validation - by El Forum - 07-10-2010, 10:12 AM
help: losing uri segment when failing form validation - by El Forum - 07-10-2010, 10:22 AM
help: losing uri segment when failing form validation - by El Forum - 07-10-2010, 10:34 AM
help: losing uri segment when failing form validation - by El Forum - 07-12-2010, 06:10 AM
help: losing uri segment when failing form validation - by El Forum - 07-12-2010, 06:15 AM
help: losing uri segment when failing form validation - by El Forum - 07-12-2010, 08:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB