php - How to send data to wordpress via post method? -
the wordpress admin backend has features create contact form, is,
the admin first design form @ panel there short code generated , when admin put short code @ post, automatically create form
however, wonder there way create html , directly post data page?
because, no matter generate wordpress or not, still html form , code this
<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>
if need url post , domain name + /test/?preview=true&preview_id=599&preview_nonce=f15a57ac32&post_format=standard#wpcf7-f533-p599-o1
? thanks
Comments
Post a Comment