wordpress管理员后端具有创建联系表单的功能,即
the admin first design the form at the panel
there is a short code generated , when the admin put the short code at the post, it automatically create a form
但是,我想知道有没有办法创建另一个HTML并直接将数据发布到该页面?
因为,无论是否通过wordpress生成,它仍然是HTML表单,代码是这样的
<form action="/test/?preview=true&preview_id=599&preview_nonce=f15a57ac32&post_format=standard#wpcf7-f533-p599-o1" method="post" class="wpcf7-form" novalidate="novalidate">
<div style="display: none;">
<input type="hidden" name="_wpcf7" value="533">
<input type="hidden" name="_wpcf7_version" value="3.7.2">
<input type="hidden" name="_wpcf7_locale" value="en_US">
<input type="hidden" name="_wpcf7_unit_tag" value="wpcf7-f533-p599-o1">
<input type="hidden" name="_wpnonce" value="36db94a80b">
</div>
<p>姓<br>
<span class="wpcf7-form-control-wrap your-lastname"><input type="text" name="your-lastname" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-validates-as-required" aria-required="true" aria-invalid="false"></span> </p>
<p>名<br>
<span class="wpcf7-form-control-wrap your-firstname"><input type="email" name="your-firstname" value="" size="40" class="wpcf7-form-control wpcf7-text wpcf7-email wpcf7-validates-as-required wpcf7-validates-as-email" aria-required="true" aria-invalid="false"></span> </p>
<p>電子郵件<br>
<span class="wpcf7-form-control-wrap your-email"><input type="text" name="your-email" value="" size="40" class="wpcf7-form-control wpcf7-text" aria-invalid="false"></span> </p>
<p>問題<br>
<span class="wpcf7-form-control-wrap your-question"><input type="text" name="your-question" value="" size="40" class="wpcf7-form-control wpcf7-text" aria-invalid="false"></span> </p>
<p>內容<br>
<span class="wpcf7-form-control-wrap your-details"><textarea name="your-details" cols="40" rows="10" class="wpcf7-form-control wpcf7-textarea" aria-invalid="false"></textarea></span> </p>
<p><input type="submit" value="傳送" class="wpcf7-form-control wpcf7-submit"><img class="ajax-loader" src="http://oshc.zizsoft.com/wp-content/plugins/contact-form-7/images/ajax-loader.gif" alt="Sending ..." style="visibility: hidden;"><input type="清除" value="Reset"></p>
<div class="wpcf7-response-output wpcf7-display-none"></div></form>
如果我需要一个网址发布到,那只是domain name + /test/?preview=true&preview_id=599&preview_nonce=f15a57ac32&post_format=standard#wpcf7-f533-p599-o1
吗?感谢