电子邮件表格不太正确 [英] Email Form not quite right

查看:91
本文介绍了电子邮件表格不太正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个不起作用的电子邮件表单......有人可以告诉我我做错了什么吗?如果发送按钮不是图像,我可以使它工作。


我首先包括表单的代码,然后是PHP代码。


代码表格

I have an email form that does not work...can somebody tell me what I am doing wrong? I can make it work if the send button is not an image.

I''ve first included the code for the form and then the PHP code.

CODE Form


展开 | 选择 | Wrap | 行号

推荐答案

将这个线程从编辑器角落移动到PHP论坛,并向OP添加了一些代码标签。
Moved this thread from the editors corner to the PHP forum and added some code tags to the OP.


第一件事突然出现在我面前,是缺少一个你的HTML中的表单或表单元素。看起来您使用图像作为提交和重置按钮,但没有表单或实际表单字段。


这是否从html中省略了?如果是这样,那就是我要开始的地方。我现在正在工作,所以我必须要熟悉,但如果你还有问题,请回到这里,我会详细介绍如何使你的代码工作。

谢谢,


Greg
The first thing that jumps out at me, is the lack of a form or form elements in your html. It looks like your using images for your submit and reset buttons, but there is no form, or actual form fields.

Did this get omitted from the html? If so, that''s where I would start. I''m at work right now so I have to be breif, but if you still having problems, post back here and I''ll get into more detail on how you can make your code work.

Thanks,

Greg



首先跳出来我,你的HTML中缺少表单或表单元素。看起来您使用图像作为提交和重置按钮,但没有表单或实际表单字段。


这是否从html中省略了?如果是这样,那就是我要开始的地方。我现在正在工作,所以我必须要熟悉,但如果你还有问题,请回到这里,我会详细介绍如何使你的代码工作。

谢谢,


Greg
The first thing that jumps out at me, is the lack of a form or form elements in your html. It looks like your using images for your submit and reset buttons, but there is no form, or actual form fields.

Did this get omitted from the html? If so, that''s where I would start. I''m at work right now so I have to be breif, but if you still having problems, post back here and I''ll get into more detail on how you can make your code work.

Thanks,

Greg



Greg,



看起来好像有些代码被切断了......所以这就是了。我的问题是让图像清晰并提交按钮。谢谢。



< tr>

< td class =" f2">< form id =" questions"行动= QUOT; HTTP://www.3-dhomedesign.com/contact3.php" ENCTYPE = QUOT;多部分/格式数据"方法= QUOT;交"名称= QUOT;形式"> < table style =" margin-left:1px;">

< tr>

< td width =" 202">< table>

< tr>< td>您的全名:< / td>< / tr>

< tr>< td>< input type =" text"名称= QUOT;姓名">< / TD>< / TR>

< tr>< td>电子邮件地址:< / td>< / tr>

< tr>< td>< input type =" text"名称= QUOT; EmailFrom">< / TD>< / TR>

< tr>< td>您的电话号码:< / td>< / tr>

< tr>< td>< input type =" text"名称= QUOT;电话">< / TD>< / TR>

< / table>< / td>

< td>< table>

< tr>

< td>您的问题或评论:< / td>

< / tr>

< tr>< td>< textarea cols =" 2"行= QUOT; 2英寸名称= QUOT;消息">< / textarea的>< / TD>< / TR>

< tr>< td>< span style =" margin:0 18px 0 64px;">

< a href =" http://www.3-dhomedesign.com/index-4.html" onclick =" document.getElementById(''questions'')。rese t()">< img alt =" reset" SRC ="图像/ ch1.gif">清除< / A>

< / span> <跨度> < a href =" http://www.3-dhomedesign.com/contact3.php" onclick =" document.getElementById(''questions'')。subm it()">< img alt =" send" SRC ="图像/ ch1.gif">置于< / A> < /跨度>< / TD>< / TR>

< / table>< / td>

< / tr>

< / table>< / form>< / td>

Greg,


Looks as if some of the code did get cut off...So here it is. My problem is getting the images to be the clear and submit buttons. Thanks.


<tr>
<td class="f2"><form id="questions" action="http://www.3-dhomedesign.com/contact3.php" enctype="multipart/form-data" method="post" name="form"> <table style="margin-left:1px;">
<tr>
<td width="202"><table>
<tr><td>Your full name:</td></tr>
<tr><td><input type="text" name="Name"></td></tr>
<tr><td>E-mail address:</td></tr>
<tr><td><input type="text" name="EmailFrom"></td></tr>
<tr><td>Your telephone number:</td></tr>
<tr><td><input type="text" name="Telephone"></td></tr>
</table></td>
<td><table>
<tr>
<td>Your Questions or Comments:</td>
</tr>
<tr><td><textarea cols="2" rows="2" name="Message"></textarea></td></tr>
<tr><td><span style="margin:0 18px 0 64px;">
<a href="http://www.3-dhomedesign.com/index-4.html" onclick="document.getElementById(''questions'').rese t()"><img alt="reset" src="images/ch1.gif">Clear</a>
</span> <span> <a href="http://www.3-dhomedesign.com/contact3.php" onclick="document.getElementById(''questions'').subm it()"><img alt="send" src="images/ch1.gif">Send</a> </span></td></tr>
</table></td>
</tr>
</table></form></td>


这篇关于电子邮件表格不太正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆