Benjamin Oats Benjamin Oats - 1 year ago 91
PHP Question

Pass value to codeigniter and get it

I have a form I am sending the value a that is 999

var a = "999";

<form action="tests/ETray/New/" method="POST">
<input id="start-test" type="hidden" name="userid" value="">
<input type="submit" value="Go" style="font-size:14px; padding:20px;">


I now want to use that in codeigniter, how do I use this ?

Answer Source

CodeIgniter is a PHP framework. You can use the $_POST variable or the input class:

// OR

The input class gives you the ability to automatically prevent cross-site scripting attacks.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download