[eluser]danmontgomery[/eluser]
[quote author="theciman" date="1266277585"]Here is the html code
<form action="http://ccc.ccc.com/dd/index.php/updateprojects/update_project" method="post">
<input type="hidden" name="name" value="ProjectID" />
<input type="hidden" name="id" value="ProjectID" />
<input type="hidden" name="value" value="5" />
As we can see the value is passed but when I try to print the value in the form I get nothing. When I make the form viewable, that everything works fine. Any ideas?[/quote]
You don't seem to have a very solid grasp on how HTML forms work... You have 3 hidden inputs here, none of them are "ProjectID" (what you're trying to access with $this->input->post("ProjectID"))
I think what you want is:
Code:
form_hidden("ProjectID", $projectID);
Which will produce:
Code:
<input type="hidden" name="ProjectID" value="5"/>
And can be accessed with:
Code:
$this->input->post("ProjectID"); // 5