Welcome Guest, Not a member yet? Register   Sign In
Input hidden
#31

[eluser]the_unforgiven[/eluser]
No the output for the hidden field a string of numbers like 12345 which I'm trying to get it to add to the database.

Code:
echo form_hidden('CustomerID', $query->AutoKey);
which outputs a number like i said which in this case is: 31892
#32

[eluser]limit[/eluser]
Thats great that it outputs in your source, but does your $_POST dump show that value?

Double check your generated view. (eg: view source) Are you sure you don't have duplicate input fields with the name CustomerID?

eg: name="CustomerID"
#33

[eluser]the_unforgiven[/eluser]
Yes i'm going back through the code and rewriting just in case i have made mistakes, thank all for you help so far I'll update if any more issues arise or if i fix!
#34

[eluser]InsiteFX[/eluser]
Your Form Validation is backwards!

Code:
if ($this->form_validation->run() == FALSE)
{
    $this->load->view('myform');
}
else
{
    // this is where you should be checking your input->post()
    $this->load->view('formsuccess');
}
#35

[eluser]the_unforgiven[/eluser]
Yes i realised this and there was also some other issues so i have re-written the code and all works fine now, thanx all for your help Smile




Theme © iAndrew 2016 - Forum software by © MyBB