Codeigniter检测表单post数据的方法
本文实例讲述了Codeigniter检测表单post数据的方法。分享给大家供大家参考。具体如下:
$name = $this->input->post(' name' ) ; $email = $this- >input->post( ' email' ) ; $subj ect = $this->input->post( ' subject' ) ; $message = $this->input->post( ' message' ) ; if(empty($name) OR empty($email) OR empty($subject) OR empty($message)) { show_404 ("Please go back and fill in all of the fields. " ) ; }
希望本文所述对大家基于Codeigniter的php程序设计有所帮助。
相关推荐
klarclm 2020-06-14
carolAnn 2020-05-09
JF0 2020-03-02
hithyc 2020-01-18
suixinsuoyu 2020-01-18
amberom 2020-01-06
xcguoyu 2019-12-25
wmsjlihuan 2019-04-14
whoisyoya 2018-01-14
rinkback00 2017-08-10
刘阳龙Herman 2019-03-28
ginkgodia 2013-05-30
misszc 2009-04-19
nellson 2019-07-01
怕什么真理无穷 2019-07-01
Allchin 2015-05-27
haoxun0 2011-12-21
shishaoe 2015-02-10
静心斋 2015-02-10