codeigniter中的语法错误,意外的',',期望变量(T_VARIABLE)或'$'

时间:2017-04-17 06:55:04

标签: php codeigniter

<?php

echo form_open('email/sent');

echo form_label('Name');

echo form_input('name');

echo "<br>";

echo form_label('From');

echo form_input('from');

echo "<br>";

echo form_label('Subject');

echo form_input('subject');

echo "<br>";

echo form_label('Message');

$data = array(

'name' => 'textarea',

'rows' => $,

'cols' => 32

);


echo form_textarea($data);

echo "<br>";

echo form_submit('submit','Sent email');

echo form_close();


?>

1 个答案:

答案 0 :(得分:0)

$data = array(

'name' => 'textarea',

'rows' => '',

'cols' => 32

);

为行提供一些值。那应该是一个带有值或静态值的变量。