07-30-2016, 12:37 PM
(07-30-2016, 11:52 AM)we don\t need the following to close the form, with out these now its working. Wrote:orCode:echo form_close();
Code:</form>
(07-30-2016, 11:37 AM)pid=\335273 Wrote:hi InsiteFX,
mwhitney also mentioned that there is some problem with <form> please check the following and suggest.
PHP Code:<!DOCTYPE html>
<html lang = "en">
<head>
<meta charset = "utf-8">
<title>Students Example edit</title>
</head>
<body>
<form method = "" action = "">
<?php
echo form_open('Stud_controller/update_student');
echo form_hidden('old_roll_no',$old_roll_no);
echo form_label('Roll No.');
echo form_input(array('id'=>'roll_no','name'=>'roll_no','value'=>$records[0]->roll_no));
echo "<br/>";
echo form_label('Name');
echo form_input(array('id'=>'name','name'=>'name','value'=>$records[0]->name));
echo "<br/>";
echo form_submit(array('id'=>'submit','value'=>'Edit'));
echo form_close();
echo $this->db->last_query();
?>
</form>
</body>
</html>
There should be no quotes its an integer