制作“联系我们”形成 [英] Making a "Contact Us" Form

查看:110
本文介绍了制作“联系我们”形成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿嗯,你怎么写一个给你发电子邮件的表格?

我到目前为止已经创建了一个表格和一些标签和文本框


以下是代码:

[HTML]< form name =" contact" ID = QUOT;接触"方法= QUOT;把" action"#">

< label>名称:< / label>

< p>

<输入类型= QUOT;文本"命名= QUOT;名称"的tabindex = QUOT 1 QUOT; class =" ina" />

< / p>

< label>电子邮件:< / label>

< p>

< input type =" text"名称= QUOT;电子邮件"的tabindex = QUOT; 2英寸/>

< / p>

< label>主题:< / label>

< p>

< input type =" text"命名= QUOT受试者QUOT;的tabindex = QUOT; 3英寸/>

< / p>

< label>消息:

< p>

< textarea name =" message">< / textarea>

< / p>

< / label>

< p>

< input type =" submit"命名= [提交"值= [提交"的tabindex = QUOT; 5英寸/>

< / p>

< / form> [/ HTML]


我想做几个事情,首先需要制作电子邮件和主题,以便当用户按下提交并且未填写电子邮件或主题时,会弹出一个窗口,要求填写所有必填字段。

其次,当用户按下提交时,我希望将消息发送到电子邮件地址(例如: support@coolkkids.com )。电子邮件应该与用户提供的所有输入一起发送。

感谢any1的帮助。

Hey umm how do you write a form that e-mails to you?
I so far have created a form and some labels and textboxes

Here is the code:
[HTML]<form name="contact" id="contact" method="put" action"#">
<label>Name: </label>
<p>
<input type="text" name="name" tabindex="1" class="ina"/>
</p>
<label>E-mail: </label>
<p>
<input type="text" name="email" tabindex="2" />
</p>
<label>Subject:</label>
<p>
<input type="text" name="subject" tabindex="3" />
</p>
<label>Message:
<p>
<textarea name="message"></textarea>
</p>
</label>
<p>
<input type="submit" name="Submit" value="Submit" tabindex="5" />
</p>
</form>[/HTML]

I would like to do a couple of things, first off make E-mail and Subject required, so that when a user presses Submit and if E-mail or Subject is not filled then a window pops up asking to fill in the all required fields.

Secondly, when the user presses submit I would like a message to be sent to an e-mail address(Example: support@coolkkids.com). The e-mail should be sent with all of the input the user provides.
Thank you any1 for their help.

推荐答案

发送一封电子邮件,您将需要一个服务器端脚本语言,如PHP或ASP。你能跑吗?你可以谷歌搜索一个脚本,或者我们可以发一个例子。


HTH,

Aric
To send an email you are going to need a server side scripting language like PHP or ASP. Are you able to run either? You can google for a script or we can post an example.

HTH,
Aric


好的,嗯我试着谷歌搜索它没有工作,或者我只是真的很糟糕。

所以,如果你能提出一个exapmle tat将是伟大的


谢谢
OK, umm i tried googling it didnt work, or im just really sucky at it.
So if u could put up an exapmle tat would be great

thank you


您的Web服务器是否支持服务器端脚本语言,如PHP,PERL,JSP或ASP?如果没有,则无法提供电子邮件表格。
Does your web server support server side scripting languages such as PHP, PERL, JSP or ASP? If not, then an email form is not possible.


这篇关于制作“联系我们”形成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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