Welcome Guest, Not a member yet? Register   Sign In
form, fields, database
#1

[eluser]DADE[/eluser]
Hello everybody,

I have one small problem.

I have form:

Code:
Login
<input type="text" name="login">

Password
<input type="password" name="password" /> <input type="password" name="passwordcheck" />

Problem:

Code:
$this->db->insert('users', $_POST);

I don't need to insert any information from "passwordcheck" field, just to check if it's similar with "password". How I can ignore this input (passwordcheck) while I'm inserting information from other fields.
Thanks.

P.S: Sorry for my english. Smile
#2

[eluser]DADE[/eluser]
nevermind, solution:
Code:
$this->db->set();
#3

[eluser]bhogg[/eluser]
You can also use

Code:
unset($_POST['passwordcheck'])

but yes, best to specify explicitly the values you are setting/inserting or re-build the array from scratch.




Theme © iAndrew 2016 - Forum software by © MyBB