联络表细化后按名字感谢访客 [英] Thanking visitor by name after contact form submision
本文介绍了联络表细化后按名字感谢访客的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是一名网络开发专业的学生,我试图找到一种方法来感谢访问者,该访问者从我的网站提交了联系表.我想在感谢页面上按名称感谢他们.以下是我表格的代码.请帮助学生学习.
I'm a web development student and I'm trying to find a way to thank a visitor who submits a contact form from my website. I want to thank them by name on a thank you page. Below is the code of my form. please help a student learn.
<form action="http://www.MySiteUrl/cgi-sys/formmail.pl" method="post" enctype="plain/text" id="Contact">
<input name="Name" type="text" class="quoteboxes" id="Name" />
<span class="textfieldRequiredMsg">Name is required.</span></span></div>
<!-- End InputFavSite -->
<div id="inputneed">
<label>Email </label><span id="sprytextfield6">
<input name="Email" type="text" class="quoteboxes" id="Email" />
<span class="textfieldRequiredMsg">E-mail is required.</span><span class="textfieldInvalidFormatMsg">Opse! your E-mail is wrong.</span></span></div>
<!-- End InputNeed -->
<div id="inputbudjet"> <label>Phone </label><span id="sprytextfield7">
<input name="Phone" type="text" class="quoteboxes" id="Phone" />
<span class="textfieldRequiredMsg">Phone is required.</span><span class="textfieldInvalidFormatMsg">Opse! your number is wrong..</span></span></div>
<!-- End InputBudget -->
<div id="inputtime">
<label>Subject </label> <span id="sprytextfield8">
<input name="Subject" type="text" class="quoteboxes" id="Subject" />
<span class="textfieldRequiredMsg">Subject is required.</span></span></div>
<!-- End InputTime -->
<div id="ccontact"><span id="sprytextarea">
<textarea name="Message" class="quotemessase" id="Message"></textarea>
<span class="textareaRequiredMsg">Message is required.</span></span></div><!-- End QuoteButtRight -->
<div id="contactbttn">
<input name="sender" type="submit" value="click to send your message" />
</div><!-- End ContactBttn -->
</div><!-- End QuoteTopRight-->
</div><!-- End QuoteTop -->
<input type="hidden" name="recipient" value="info@siteripe.com" />
<input type="hidden" name="redirect" value="yourURL/Thankspage" />
</form>
推荐答案
根据我的建议,我使用了一个PHP Form邮件程序,杀死了重新定向的代码行,然后使用
<?php echo $_POST["name"]; ?>,
进行收集并在谢谢"页面上显示访问者的姓名
As adviced I used a PHP Form mailer, killed the line of Code that re-directs and then used
<?php echo $_POST["name"]; ?>,
to collect and display the name of the visitor on the thank you page
这篇关于联络表细化后按名字感谢访客的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文