Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/269.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 提交输入中没有值atribute的表单_Php_Codeigniter - Fatal编程技术网

Php 提交输入中没有值atribute的表单

Php 提交输入中没有值atribute的表单,php,codeigniter,Php,Codeigniter,我有以下表格: <form action="http://xxx" method="post"> <img src="" id="imagenOriginal"> <label>Nombre</label> <input type="text" name="nombre" /> <label>Apellido</label> <input type="text"

我有以下表格:

<form action="http://xxx" method="post">
    <img src="" id="imagenOriginal">

    <label>Nombre</label>
    <input type="text" name="nombre" /> 

    <label>Apellido</label>
    <input type="text" name="apellido" /> 

    <input id="a" type="submit"  value"  "name="btnRegistro">
</form>

名义
阿佩利多
如果我没有为提交输入设置一个值,那么表单就不会提交,但是如果我输入value=“SEND”或任何东西,它会进行提交吗?为什么会发生这种情况?

应该

<input id="a" type="submit"  value="" name="btnRegistro">


是的,但如果我这样写,请不要将表单发送给我。这显然是语法错误。如果您不想设置一个值,只需使用以下命令:该值可以为空。问题出在代码的其他地方。