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条)

报告相同问题?

悬赏问题

  • ¥50 关于#html5#的问题:H5页面用户手机返回的时候跳转到指定页面例如(语言-javascript)
  • ¥15 无法使用此凭据登录,因为你的域不可用,如何解决?(标签-Windows)
  • ¥15 yolov9的训练时间
  • ¥15 二叉树遍历没有报错但无法正常运行
  • ¥15 在linux系统下vscode运行robocup3d上场球员报错
  • ¥15 Python语言实验
  • ¥15 SAP HANA SQL 增加合计行
  • ¥20 用C#语言解决一个英文打字练习器,有偿
  • ¥15 srs-sip外部服务 webrtc支持H265格式
  • ¥15 在使用abaqus软件中,继承到assembly里的surfaces怎么使用python批量调动