Form Decode: Samples

About this page

This page shows samples of Form Decode.

Form Decode Sample (for FreeAddress)

Form Decode samples shown in this page have the following functions. Only the code in between <BODY> and </BODY> is written for each HTML file. Please write the contents in between <HTML> and </HTML>, and <HEAD> and </HEAD> on your own accordingly.

Form Decode tag https://cgi.www.ne.jp/cgi-bin/formdecode.cgi
Email Send to
(name="_to")
ab4t-ash@asahi-net.or.jp
Email subject
(name="_subject")
from FORM DECODE
Email sender
(name="_from")
Details entered by visitor (email address field)
Accepted page HTML file kanryo.html
Confirmation page template kakunin.tpl
Layout arranging template seikei.tpl

Form Decode (HTML file)

<BODY>
<form ACTION="https://cgi.www.ne.jp/cgi-bin/formdecode.cgi" METHOD="POST">
<input type="hidden" NAME="_to" VALUE="ab4t-ash@asahi-net.or.jp">
<input type="hidden" NAME="_subject" VALUE="from FORM DECODE">
<input type="hidden" NAME="_accept_html" VALUE="kanryo.html">
<input type="hidden" NAME="_template_confirm" VALUE="kakunin.tpl">
<input type="hidden" NAME="_template_mail" VALUE="seikei.tpl">
Name <input type="text" NAME="name"><br>
Email address <input type="text" NAME="_from"><br>
Where you reside Japan<input type="radio" NAME="house" VALUE="japan"> abroad<input type="radio" NAME="house"
VALUE="abroad"><br>
How long have you been living in your current address?<br>
<SELECT NAME="year">
<option selected>Please choose.</option>
<option VALUE="1">Less than 1 year</option>
<option VALUE="5">Less than 5 years</option>
<option VALUE="10">Less than 10 years</option>
<option VALUE="over">Over 10 years</option>
</SELECT><br>
Where do you want to live next?(Multiple answers are allowed)<br>
<input type="checkbox" NAME="hokkaido" VALUE="on">Hokkaido<br>
<input type="checkbox" NAME="tohoku" VALUE="on">Tohoku<br>
<input type="checkbox" NAME="kanto" VALUE="on">Kanto<br>
<input type="checkbox" NAME="kansai" VALUE="on">Kansai<br>
<input type="checkbox" NAME="sikoku" VALUE="on">Shikoku<br>
<input type="checkbox" NAME="kyusyu" VALUE="on">Kyushu<br>
Comment<br><textarea NAME="comment" ROWS="4" COLS="30"></textarea><br>
<input type="submit" VALUE="Send"><input type="reset" VALUE="Reset">
</form>
</BODY>

Confirmation page template: kakunin.tpl

<BODY>
<form ACTION="https://cgi.www.ne.jp/cgi-bin/formdecode.cgi" METHOD="POST">
$_DUMPVAR{VAL}
■Confirmation Page■<br>
□Name<br>
:$VAL{name}<br>
□Email address<br>
:$VAL{_from}<br>
□Where you reside<br>
:$_IF{VAL,house,japan,Japan} $_IF{VAL,house,abroad,Abroad}<br>
□How long have you been living in your current address?<br>
:$_SELECT{VAL,year,1,Less than 1 year,5,Less than 5 years,10,Less than 10 years,over,Over 10 years}<br>
□Where do you want to live next?<br>
:$_IF{VAL,hokkaido,on,Hokkaido/,}$_IF{VAL,tohoku,on,Tohoku/,}$_IF{VAL,kanto,on,Kanto/,}$_IF{VAL,kansai,on,Kansai/,}$_IF{VAL,sikoku,on,Sikoku/,}$_IF{VAL,kyusyu,on,Kyusyu/,}<br>
□Comment<br>
:$VAL{comment}<br>
<input type="submit" VALUE="Send"><input type="button" VALUE="Back"
onClick="window.history.back ();">
</form>
</BODY>

Accepted page template: kanryo.html (HTML file)

<BODY>
<p>Thank you for answering the survey.</p>
<p>Thank you for your continued support.</p>
</BODY>

Layout arranging template: seikei.tpl

■Survey■
□Name  :$VAL{name}
□Email :$VAL{_from}
□Where you reside:$_IF{VAL,house,japan,Japan}$_IF{VAL,house,abroad,Abroad}
□How long have you been living in your current address?:$_SELECT{VAL,year,1,Less than 1 year,5,Less than 5 years,10,Less than 10 years,over,Over 10 years}
□Where you want to live:$_IF{VAL,hokkaido,on,Hokkaido/,}$_IF{VAL,tohoku,on,Tohoku/,}$_IF{VAL,kanto,on,Kanto/,}$_IF{VAL,kansai,on,Kansai/,}$_IF{VAL,sikoku,on,shikoku/,}$_IF{VAL,kyusyu,on,Kyushu/,}
------------------------------------------------------------
□Comment
$VAL{comment}
------------------------------------------------------------

Form Decode samples (ID address website)

Form Decode samples shown in this page have the following functions.
Only the code in between <BODY> and </BODY> is written for each HTML file.
Please write the contents in between <HTML> and </HTML>, and <HEAD> and </HEAD> on your own accordingly.

Form Decode tag https://cgi.asahi-net.or.jp/cgi-bin/formdecode.cgi
Email Send to
(name="_to")
ab4t-ash@asahi-net.or.jp
Email subject
(name="_subject")
from FORM DECODE
Email sender
(name="_from")
Details entered by visitor (email address field)
Accepted page HTML file kanryo.html
Confirmation page template kakunin.tpl
Layout arranging template seikei.tpl

Form Decode (HTML file)

<BODY>
<form ACTION="https://cgi.asahi-net.or.jp/cgi-bin/formdecode.cgi" METHOD="POST">
<input type="hidden" NAME="_to" VALUE="ab4t-ash@asahi-net.or.jp">
<input type="hidden" NAME="_subject" VALUE="from FORM DECODE">
<input type="hidden" NAME="_accept_html" VALUE="kanryo.html">
<input type="hidden" NAME="_template_confirm" VALUE="kakunin.tpl">
<input type="hidden" NAME="_template_mail" VALUE="seikei.tpl">
Name <input type="text" NAME="name"><br>
Email address <input type="text" NAME="_from"><br>
Where you reside Japan<input type="radio" NAME="house" VALUE="japan"> Abroad<input type="radio"
NAME="house"><br>
How long have you been living in your current address?<br>
<SELECT NAME="year">
<option selected>Please choose.</option>
<option VALUE="1">Less than 1 year</option>
<option VALUE="5">Less than 5 years</option>
<option VALUE="10">Less than 10 years</option>
<option VALUE="over">Over 10 years</option>
</SELECT><br>
Where do you want to live next?<br>
<input type="checkbox" NAME="hokkaido" VALUE="on">Hokkaido<br>
<input type="checkbox" NAME="tohoku" VALUE="on">Tohoku<br>
<input type="checkbox" NAME="kanto" VALUE="on">Kanto<br>
<input type="checkbox" NAME="kansai" VALUE="on">Kansai<br>
<input type="checkbox" NAME="sikoku" VALUE="on">Shikoku<br>
<input type="checkbox" NAME="kyusyu" VALUE="on">Kyushu<br>
Comment<br><textarea NAME="comment" ROWS="4" COLS="30"></textarea><br>
<input type="submit" VALUE="Send"><input type="reset" VALUE="Reset">
</form>
</BODY>

Confirmation page template: kakunin.tpl

<BODY>
<form ACTION="https://cgi.asahi-net.or.jp/cgi-bin/formdecode.cgi" METHOD="POST">
$_DUMPVAR{VAL}
■Confirmation Page■<br>
□Name<br>
:$VAL{name}<br>
□Email address<br>
:$VAL{_from}<br>
□Where you reside<br>
:$_IF{VAL,house,japan,Japan,Abroad}<br>
□How long have you been living in your current address?<br>
:$_SELECT{VAL,year,1,Less than 1 year,5,Less than 5 years,10,Less than 10 years,over,Over 10 years}<br>
□Where do you want to live next?<br>
:$_IF{VAL,hokkaido,on,Hokkaido/,}$_IF{VAL,tohoku,on,Tohoku/,}$_IF{VAL,kanto,on,Kanto/,}$_IF{VAL,kansai,on,Kansai/,}$_IF{VAL,sikoku,on,Shikoku/,} $_IF{VAL,kyusyu,on,Kyushu/,}<br>
□Comment<br>
:$VAL{comment}<br>
<input type="submit" VALUE="Send"><input type="button" VALUE="Back"
onClick="window.history.back ();">
</form>
</BODY>

Accepted page template: kanryo.html (HTML file)

<BODY>
<p>Thank you for answering the survey.</p>
<p>Thank you for your continued support.</p>
</BODY>

Form to email template: seikei.tpl

■Survey■
□Name  :$VAL{name}
□Email :$VAL{_from}
□Where you reside:$_IF{VAL,house,japan,Japan,Abroad}
□How long have you been living in your current address?:$_SELECT{VAL,year,1,Less than 1 year,5,Less than 5 years,10,Less than 10 years,over,Over 10 years}
□Where you want to live:$_IF{VAL,hokkaido,on,Hokkaido/,}$_IF{VAL,tohoku,on,Tohoku/,}$_IF{VAL,kanto,on,Kanto/,}$_IF{VAL,kansai,on,Kansai/,}$_IF{VAL,sikoku,on,Shikoku/,}$_IF{VAL,kyusyu,on,Kyushu/,}
------------------------------------------------------------
□Comment
$VAL{comment}
------------------------------------------------------------

Form Decode samples (MMJP website)

Form Decode samples shown in this page have the following functions.
Only the code in between <BODY>> and </BODY> is written for each HTML file.
Please write the contents in between <HTML> and </HTML>, and <HEAD> and </HEAD> on your own accordingly.

Form Decode tag https://cgi.mmjp.or.jp/cgibin/formdecode.cgi
Email Send to (name="_to") ab4t-ash@asahi-net.or.jp
Email subject
(name="_subject")
from FORM DECODE
Email sender
(name="_from")
Details entered by visitor (email address field)
Accepted page HTML file kanryo.html
Confirmation page template kakunin.tpl
Layout arranging template seikei.tpl

Form Decode (HTML file)

<BODY>
<form ACTION="https://cgi.mmjp.or.jp/cgibin/formdecode.cgi" METHOD="POST">
<input type="hidden" NAME="_to" VALUE="ab4t-ash@asahi-net.or.jp">
<input type="hidden" NAME="_subject" VALUE="from FORM DECODE">
<input type="hidden" NAME="_accept_html" VALUE="kanryo.html">
<input type="hidden" NAME="_template_confirm" VALUE="kakunin.tpl">
<input type="hidden" NAME="_template_mail" VALUE="seikei.tpl">
Name <input type="text" NAME="name"><br>
Email address <input type="text" NAME="_from"><br>
Where you reside Japan<input type="radio" NAME="house" VALUE="japan"> Abroad<input type="radio"
NAME="house"><br>
How long have you been living in your current address?<br>
<SELECT NAME="year">
<option selected>Please choose.</option>
<option VALUE="1">Less than 1 year</option>
<option VALUE="5">Less than 5 years</option>
<option VALUE="10">Less than 10 years</option>
<option VALUE="over">Over 10 years</option>
</SELECT><br>
Where do you want to live next?<br>
<input type="checkbox" NAME="hokkaido" VALUE="on">Hokkaido<br>
<input type="checkbox" NAME="tohoku" VALUE="on">Tohoku<br>
<input type="checkbox" NAME="kanto" VALUE="on">Kanto<br>
<input type="checkbox" NAME="kansai" VALUE="on">Kansai<br>
<input type="checkbox" NAME="sikoku" VALUE="on">Shikoku<br>
<input type="checkbox" NAME="kyusyu" VALUE="on">Kyushu<br>
Comment<br><textarea NAME="comment" ROWS="4" COLS="30"></textarea><br>
<input type="submit" VALUE="Send"><input type="reset" VALUE="Reset">
</form>
</BODY>

Confirmation page template: kakunin.tpl

<BODY>
<form ACTION="https://cgi.mmjp.or.jp/cgibin/formdecode.cgi" METHOD="POST">
$_DUMPVAR{VAL}
■Confirmation Page■<br>
□Name<br>
:$VAL{name}<br>
□Email address<br>
:$VAL{_from}<br>
□Where you reside<br>
:$_IF{VAL,house,japan,Japan,Abroad}<br>
□How long have you been living in your current address?<br>
:$_SELECT{VAL,year,1,Less than 1 year,5,Less than 5 years,10,Less than 10 years,over,Over 10 years}<br>
□Where do you want to live next?<br>
:$_IF{VAL,hokkaido,on,Hokkaido/,}$_IF{VAL,tohoku,on,Tohoku/,}$_IF{VAL,kanto,on,Kanto/,}$_IF{VAL,kansai,on,Kansai/,}$_IF{VAL,sikoku,on,Shikoku/,} $_IF{VAL,kyusyu,on,Kyushu/,}<br>
□Comment<br>
:$VAL{comment}<br>
<input type="submit" VALUE="Send"><input type="button" VALUE="Back"
onClick="window.history.back ();">
</form>
</BODY>

Accepted page template: kanryo.html (HTML file)

<BODY>
<p>Thank you for answering the survey.</p>
<p>Thank you for your continued support.</p>
</BODY>

Form to email template: seikei.tpl

■Survey■
□Name  :$VAL{name}
□Email :$VAL{_from}
□Where you reside:$_IF{VAL,house,japan,Japan,Abroad}
□How long have you been living in your current address?:$_SELECT{VAL,year,1,Less than 1 year,5,Less than 5 years,10,Less than 10 years,over,Over 10 years}
□Where you want to live:$_IF{VAL,hokkaido,on,Hokkaido/,}$_IF{VAL,tohoku,on,Tohoku/,}$_IF{VAL,kanto,on,Kanto/,}$_IF{VAL,kansai,on,Kansai/,}$_IF{VAL,sikoku,on,Shikoku/,}$_IF{VAL,kyusyu,on,Kyushu/,}
------------------------------------------------------------
□Comment
$VAL{comment}
------------------------------------------------------------

Back to top of the page