douwen7475 2016-04-23 00:18
浏览 56
已采纳

Codeigniter:以html格式显示数据库字段,然后编辑的表单字段在php脚本中不可见

I'm having little problem, I'll try to describe what is it about: at first page I got only form input field (username expected), then on submit I'm proceed to second page where I got form with fields that I've read from database and put them inside input value="xxx". When i retype some of that fields, and submit on next script form parameters are empty($field) == true. Fields are not empty and when I submit they are marked as empty variables.

Here's my code hope it will help:

My second page view (CODE)
My controller's method to take parameters from second page view (CODE)

Here's screenshots maybe it can be helpful:

i.stack.imgur.com/1zx9S.png
i.stack.imgur.com/3UH97.png
i.stack.imgur.com/ipB6Y.png

Anyone got idea why am I getting empty variable when I read them in script?

Thanks in advance

  • 写回答

2条回答 默认 最新

  • douxie0824 2016-04-23 22:18
    关注

    I'm honestly sorry, I've just realized that in mixing that php and html, I've forgot to add name attribute in html tags.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?