<?php class Form extends CI_Controller{ function index(){ if($this->input->post('product') != null){ $str='<p>送信内容:'.$this->input->post('product').'</p>'; } else{ $str='<p>メッセージをどうぞ</p>'; } $data=array('msg'=>$str); $this->load->view('form_post',$data); } } ?>
クラスのインスタンスって生成する必要ってないんでしょうか。
回答1件
あなたの回答
tips
プレビュー