【发布时间】:2014-07-28 09:44:52
【问题描述】:
我对 php 知之甚少,所以我继续使用他设置的免费使用的 css-tricks 电子邮件表单中的一个:http://css-tricks.com/nice-and-simple-contact-form/。
但是我不确定如何在不破坏 php 代码的情况下将其放入网站。我认为我不能简单地获取我想要的代码,即
<div id="contact-area">
<form method="post" action="contactengine.php">
<label for="Name">Name:</label>
<input type="text" name="Name" id="Name" />
<label for="City">City:</label>
<input type="text" name="City" id="City" />
<label for="Email">Email:</label>
<input type="text" name="Email" id="Email" />
<label for="Message">Message:</label><br />
<textarea name="Message" rows="20" cols="20" id="Message"></textarea>
<input type="submit" name="submit" value="Submit" class="submit-button" />
</form>
<div style="clear: both;"></div>
<p>Check out a <a href="http://css-tricks.com/examples/NiceSimpleContactForm2">version of this</a> with SPAM protection.</p>
</div>
并将其放入我的 html 页面。我尝试使用 iframe 将 html 页面链接到我的网站的 html 页面并且它有效,但是这种方法可以吗?
【问题讨论】: