Skip to content

Instantly share code, notes, and snippets.

@majosystems majosystems/acms_form.html
Last active Aug 29, 2015

Embed
What would you like to do?
a-blog cms フォームサンプル
<!-- BEGIN_MODULE Form -->
<!-- BEGIN step -->
<form action="?step=reapply" method="post">
メールアドレス:<input type="text" name="email" value="" /><br />
お名前:<input type="text" name="name" value="" /><br />
連絡内容:<textarea name="message"></textarea><br />
<input type="hidden" name="field[]" value="email" />
<input type="hidden" name="email:v#required" />
<input type="hidden" name="field[]" value="name" />
<input type="hidden" name="field[]" value="message" />
<input type="hidden" name="step" value="confirm" />
<input type="hidden" name="id" value="contactForm" />
<input type="submit" name="ACMS_POST_Form_Confirm" value="確認画面へ進む" />
</form>
<!-- END step -->
<!-- BEGIN step#reapply -->
<form action="?step=reapply" method="post">
メールアドレス:<input type="text" name="email" value="{email}" /><br />
お名前:<input type="text" name="name" value="{name}" /><br />
連絡内容:<textarea name="message">{message}</textarea><br />
<input type="hidden" name="field[]" value="email" />
<input type="hidden" name="email:v#required" />
<input type="hidden" name="field[]" value="name" />
<input type="hidden" name="field[]" value="message" />
<input type="hidden" name="step" value="confirm" />
<input type="hidden" name="id" value="contactForm" />
<input type="hidden" name="takeover" value="{takeover}" />
<input type="submit" name="ACMS_POST_Form_Confirm" value="確認画面へ進む" />
</form>
<!-- END step#reapply -->
<!-- BEGIN step#confirm -->
メールアドレス:{email}<br />
お名前:{name}<br />
連絡内容:<pre>{message}</pre><br />
<form action="?step=reapply" method="post">
<input type="hidden" name="step" value="reapply" />
<input type="hidden" name="id" value="contactForm" />
<input type="hidden" name="takeover" value="{takeover}" />
<input type="submit" name="ACMS_POST_Form_Chain" value="戻って修正" />
</form>
<form action="?step=" method="post">
<input type="hidden" name="step" value="result" />
<input type="hidden" name="To[]" value="{email}" />
<input type="hidden" name="id" value="contactForm" />
<input type="hidden" name="takeover" value="{takeover}" />
<input type="submit" name="ACMS_POST_Form_Submit" value="送信" />
</form>
<!-- END step#confirm -->
<!-- BEGIN step#result -->
お問い合わせありがとうございました。メールを送信しました。
<!-- END step#result -->
<!-- END_MODULE Form -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.