Welcome Guest, Not a member yet? Register   Sign In
$_POST instead $this->input->post()
#1

[eluser]Mitja B.[/eluser]
$id = $_POST['game_id'.$i];
$answer['ans'][] = $_POST['ans'.$i];
$tmp = $_POST['game' . $row['id']]

how can i write this with $this->input->post() or can i leave like i have now?

Thx
#2

[eluser]pistolPete[/eluser]
Code:
$id = $this->input->post('game_id'.$i);
$answer['ans'][] = $this->input->post('ans'.$i);
$tmp = $this->input->post('game' . $row['id']);

[quote author="Mitja B." date="1236543765"]or can i leave like i have now?[/quote]

You can but you should not, because you can't use XSS clean if you access the $_POST array directly.




Theme © iAndrew 2016 - Forum software by © MyBB