Form to database |
[eluser]weblyan[/eluser]
No, only one form tag can be posted from one page to another. You need to put all the input tags in the same form tag. Code: <form action="" method="post"> The action attribute in the form should be the target url, the url to where the form will be sent Then in the controller or model, you will handle the data sent by the form. If you are not using a framework then you would access the input data like this $severity = $_POST['severity']. But in Codeigniter you will access the data using $severity = $this->input->post('severity'); To get the data into the database, look at this: http://ellislab.com/codeigniter/user-gui...index.html |
Messages In This Thread |
Form to database - by El Forum - 06-29-2012, 04:36 AM
Form to database - by El Forum - 06-29-2012, 05:03 AM
|