KENT-WEB ¥µ¥Ý¡¼¥È¥³¡¼¥Ê¡¼ ²áµî¥í¥° [ 0169 ]


µ­»öNo¡§ 2916
Åê¹ÆÆü¡§ 2008/02/17(Sun) 09:53:46
¥¿¥¤¥È¥ë¡§ Topics Board¤Ç¥¿¥¤¥È¥ëÉôʬ¤ò¥×¥ë¥À¥¦¥ó¤Ë
ID¾ðÊó¡§ m777
Åê¹Æ¼Ô¡§ ¤Ê¤Ê¤ß
URL¡§ http://gohanei.do.ai/topics/topics.cgi

¤¿¤Ó¤¿¤Ó¿½¤·Ìõ¤¢¤ê¤Þ¤»¤ó¡£
¤Þ¤¿¶µ¤¨¤Æ²¼¤µ¤¤¡£
Topics Board¤Îµ­»öÆþÎϲèÌ̤ǡ¢¥¿¥¤¥È¥ëÉôʬ¤ò¥×¥ë¥À¥¦¥ó·Á¼°¤Ë¤·¤¿¤¤¤Î¤Ç¤¹¤¬¡¢½¤Àµ¤Î»þ¤Ë¤¦¤Þ¤¯ÆþÎϥǡ¼¥¿¤ò°ú¤ÃÄ¥¤Ã¤Æ¤³¤ì¤Þ¤»¤ó¡£¡Ê¥×¥ë¥À¥¦¥ó¤Î°ìÈÖ¾å¤ÎÁªÂò»è¤Ë¤Ê¤Ã¤Æ¤·¤Þ¤¦¡Ë


#¥Õ¥©¡¼¥àɽ¼¨#¤Î¤È¤³¤í¤Ç¡¢

<tr>
<td>¥¿¥¤¥È¥ë</td>
<td colspan=2><select name=sub><OPTION VALUE="" SELECTED>¢§¢§¢§²¼µ­¤«¤éÁªÂò¢§¢§¢§
<option value="¥¿¥¤¥È¥ë­¡">¥¿¥¤¥È¥ë­¡</option>
<option value="¥¿¥¤¥È¥ë­¢">¥¿¥¤¥È¥ë­¢</option>
<option value="¥¿¥¤¥È¥ë­£">¥¿¥¤¥È¥ë­£</option></select></td>
</tr>

¤È¤·¤Æ¤ß¤¿¤Î¤Ç¤¹¤¬¡¢º¬ËÜŪ¤Ë¤Þ¤Á¤¬¤Ã¤Æ¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
½éÊâŪ¤Ê¼ÁÌä¤Ç¿½¤·Ìõ¤´¤¶¤¤¤Þ¤»¤ó¡£
¤è¤í¤·¤¯¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£


µ­»öNo¡§ 2918
Åê¹ÆÆü¡§ 2008/02/17(Sun) 13:17:37
¥¿¥¤¥È¥ë¡§ Re: Topics Board¤Ç¥¿¥¤¥È¥ëÉôʬ¤ò¥×¥ë¥À¥¦¥ó¤Ë
ID¾ðÊó¡§ teketen
Åê¹Æ¼Ô¡§ ¤Æ¤±¤Æ¤ó

> º¬ËÜŪ¤Ë¤Þ¤Á¤¬¤Ã¤Æ¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©

¤½¤ÎÄ̤ê¤Ç¤¹¡£
½¤Àµ¥Õ¥©¡¼¥à¤Ç¡¢

> <select name=sub><OPTION VALUE="" SELECTED>¢§¢§¢§²¼µ­¤«¤éÁªÂò¢§¢§¢§

¤È¤¢¤ë¤Ê¤é¡¢°ìÈÖ¾å¤Îoption¤Ëselected¤¬¤¢¤ë°Ù¤Ë¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤ÇÁªÂò¤µ¤ì¤ë¤Î¤ÏÅö¤¿¤êÁ°¤Ç¤¹¤Í¡£

<tr>
<td>¥¿¥¤¥È¥ë</td>
<td colspan=2><select name=sub><OPTION VALUE="" SELECTED>¢§¢§¢§²¼µ­¤«¤éÁªÂò¢§¢§¢§
<option value="¥¿¥¤¥È¥ë1">¥¿¥¤¥È¥ë1</option>
<option value="¥¿¥¤¥È¥ë2">¥¿¥¤¥È¥ë2</option>
<option value="¥¿¥¤¥È¥ë3">¥¿¥¤¥È¥ë3</option></select></td>
</tr>

¤ÎÉôʬ¤ò¡¢°Ê²¼¤Î¤è¤¦¤ËÊѹ¹¤·¤Æ²¼¤µ¤¤¡£

<tr>
<td>¥¿¥¤¥È¥ë</td>
<td colspan="2"><select name="sub"><option value="">¢§¢§¢§²¼µ­¤«¤éÁªÂò¢§¢§¢§</option>
EOM

my @title = ('¥¿¥¤¥È¥ë1','¥¿¥¤¥È¥ë2','¥¿¥¤¥È¥ë3'); # ¤³¤³¤Ç¥¿¥¤¥È¥ë¤ò»ØÄꤹ¤ë
printf qq|<option value="$_"%s>$_</option>\n|,$sub eq $_ ? ' selected' : '' for(@title);

print <<"EOM";
</select></td>
</tr>

¤³¤ì¤Ç¤´´õ˾¤Î¤â¤Î¤Ë¤Ê¤ë¤È»×¤¤¤Þ¤¹¡£

#¡¡¡ûÉÕ¤­Ê¸»ú¤Ïµ¡¼ï°Í¸ʸ»ú¤Ê¤Î¤Ç¡¢¥Í¥Ã¥È¤Ç¤Ï»ÈÍѤ·¤Ê¤¤¤Î¤¬¥Þ¥Ê¡¼¤È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£


µ­»öNo¡§ 2924
Åê¹ÆÆü¡§ 2008/02/17(Sun) 17:23:35
¥¿¥¤¥È¥ë¡§ Re^2: Topics Board¤Ç¥¿¥¤¥È¥ëÉôʬ¤ò¥×¥ë¥À¥¦¥ó¤Ë
ID¾ðÊó¡§ m777
Åê¹Æ¼Ô¡§ ¤Ê¤Ê¤ß
URL¡§ http://gohanei.do.ai/topics/topics.cgi

> > º¬ËÜŪ¤Ë¤Þ¤Á¤¬¤Ã¤Æ¤ë¤Î¤Ç¤·¤ç¤¦¤«¡©
>
> ¤½¤ÎÄ̤ê¤Ç¤¹¡£
> ½¤Àµ¥Õ¥©¡¼¥à¤Ç¡¢
>
> > <select name=sub><OPTION VALUE="" SELECTED>¢§¢§¢§²¼µ­¤«¤éÁªÂò¢§¢§¢§
>
> ¤È¤¢¤ë¤Ê¤é¡¢°ìÈÖ¾å¤Îoption¤Ëselected¤¬¤¢¤ë°Ù¤Ë¡¢¤³¤ì¤¬¥Ç¥Õ¥©¥ë¥È¤ÇÁªÂò¤µ¤ì¤ë¤Î¤ÏÅö¤¿¤êÁ°¤Ç¤¹¤Í¡£
>
> <tr>
> <td>¥¿¥¤¥È¥ë</td>
> <td colspan=2><select name=sub><OPTION VALUE="" SELECTED>¢§¢§¢§²¼µ­¤«¤éÁªÂò¢§¢§¢§
> <option value="¥¿¥¤¥È¥ë1">¥¿¥¤¥È¥ë1</option>
> <option value="¥¿¥¤¥È¥ë2">¥¿¥¤¥È¥ë2</option>
> <option value="¥¿¥¤¥È¥ë3">¥¿¥¤¥È¥ë3</option></select></td>
> </tr>
>
> ¤ÎÉôʬ¤ò¡¢°Ê²¼¤Î¤è¤¦¤ËÊѹ¹¤·¤Æ²¼¤µ¤¤¡£
>
> <tr>
> <td>¥¿¥¤¥È¥ë</td>
> <td colspan="2"><select name="sub"><option value="">¢§¢§¢§²¼µ­¤«¤éÁªÂò¢§¢§¢§</option>
> EOM
>
> my @title = ('¥¿¥¤¥È¥ë1','¥¿¥¤¥È¥ë2','¥¿¥¤¥È¥ë3'); # ¤³¤³¤Ç¥¿¥¤¥È¥ë¤ò»ØÄꤹ¤ë
> printf qq|<option value="$_"%s>$_</option>\n|,$sub eq $_ ? ' selected' : '' for(@title);
>
> print <<"EOM";
> </select></td>
> </tr>
>
> ¤³¤ì¤Ç¤´´õ˾¤Î¤â¤Î¤Ë¤Ê¤ë¤È»×¤¤¤Þ¤¹¡£
>
> #¡¡¡ûÉÕ¤­Ê¸»ú¤Ïµ¡¼ï°Í¸ʸ»ú¤Ê¤Î¤Ç¡¢¥Í¥Ã¥È¤Ç¤Ï»ÈÍѤ·¤Ê¤¤¤Î¤¬¥Þ¥Ê¡¼¤È¤µ¤ì¤Æ¤¤¤Þ¤¹¡£


¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤·¤¿¡ª
¤ª¤«¤²¤µ¤Þ¤Ç¤¦¤Þ¤¯¹Ô¤­¤Þ¤·¤¿¡£

¼«ÎϤǤϹͤ¨¤Ä¤«¤Ê¤¤²þ¤¤À¤Ã¤¿¤è¤¦¤Ç¤¹¡Ä
¤ªÊÙ¶¯¤Ë¤Ê¤ê¤Þ¤·¤¿¡£
¤Þ¤¿¤è¤í¤·¤¯¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£


[¸¡º÷¥Ú¡¼¥¸]