PHP联系表单电子邮件到电子邮件地址,但'名称'字段为空?

编程入门 行业动态 更新时间:2024-10-28 13:24:24
本文介绍了PHP联系表单电子邮件到电子邮件地址,但'名称'字段为空?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

不,我是新手!

我已经成功设置了一个联系表单页面。它通过电子邮件发送表单字段中的'电子邮件地址'和'消息',但不发送名称字段值,它只是空白。

我看不到在哪里我出错了。所有字段名称都匹配到PHP文件。任何想法我做错了什么?

以下是我的代码:

< form id =form_28name =website_queryaction =mailform2.phpaccept-charset =UTF-8method =posttarget =_ selfenctype =multipart / form -datastyle =margin:0; position:absolute; left:231px; top:242px; width:343px; height:229px; / * MainDivStyle * /__AddCode =here> <! - MainDivStart - > <! - HTML框架 - 名称txt_31 - > <! - 序言 - > < div style =position:absolute; left:8px; top:8px; width:51px; height:18px; overflow:hidden; / * BorderDivStyle * /__AddCode =InsideBorderDiv> <! - BorderDivContents - > < p class =Wp-Body-P>< label for =edit_1>< span class =Body-C> name< / span>< / label> < / p为H. < / div> <! - Postamble - > <! - 表单编辑框edit_1 - > <! - 序言 - > < input type =textid =edit_1name =namevalue =style =position:absolute; left:103px; top:8px; width:50px; / * Tag Style * /__AddCode =here> <! - Postamble - > <! - HTML框架 - 电子邮件txt_32 - > <! - 序言 - > < div style =position:absolute; left:8px; top:38px; width:51px; height:18px; overflow:hidden; / * BorderDivStyle * /__AddCode =InsideBorderDiv> <! - BorderDivContents - > < p class =Wp-Body-P>< label for =edit_19>< span class =Body-C>电子邮件< / span>< / label> < / p为H. < / div> <! - Postamble - > <! - 表单编辑框edit_19 - > <! - 序言 - > < input type =textid =edit_19name =emailvalue =style =position:absolute; left:103px; top:38px; width:50px; / * Tag Style * /__AddCode =here> <! - Postamble - > <! - HTML Frame - message txt_33 - > <! - 序言 - > < div style =position:absolute; left:8px; top:68px; width:79px; height:18px; overflow:hidden; / * BorderDivStyle * /__AddCode =InsideBorderDiv> <! - BorderDivContents - > < p class =Wp-Body-P>< label for =text_2>< span class =Body-C> message< / span>< / label> < / p为H. < / div> <! - Postamble - > <! - Text Area text_2 - > <! - 序言 - >
评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!