½ÃÀÛÆäÀÌÁö·Î Áñ°Üã±âÃß°¡
·Î±×ÀÎ
ȸ¿ø°¡ÀÔ l Ã⼮üũ l ¸¶ÀÌÆäÀÌÁö l CGIMALL
ÀÚ·á½Ç »çÀÌÆ®µî·Ï ·©Å·100 ÇÁ·Î±×·¥¸®ºä °ü¸®ÀÚÃßõÀÚ·á Ãʺ¸°¡À̵å
Ä¿¹Â´ÏƼ
Àüü ÆîÃ帱â
Äü¸Þ´º¸µÅ© jquery , CSS , PHP , Javascript , ¹«·áÆùÆ® , ASP
»ó¼¼°Ë»ö
Ȩ > Ä¿¹Â´ÏƼ > Áú¹®°ú´äº¯ »ó¼¼º¸±â
Ä¿¹Â´ÏƼ ±¸Àα¸Á÷
»çÀÌÆ®µî·Ï
Ŭ¶ó¿ìµåű×
Javascript
PHP
ASP
CSS
html
mysql
jquery
image
Mobile
API
slide
°Ô½ÃÆÇ
¸Þ´º
ÇöÀçÁ¢¼ÓÀÚ ¸í »õ·Î°íħ
°Ô½ÃÆÇŸÀÌƲ Áú¹®°ú´äº¯ / »ó¼¼º¸±â
Æ®À§ÅÍ·Î º¸³»±â
Ãßõ¼ö 116 | Á¶È¸¼ö 844 | µî·ÏÀÏ 2001-04-13 11:58:29

´Ð³×ÀÓ

HappyCGI

À̸ÞÀÏ

hero@happycgi.com

Á¦¸ñ

[´äº¯] ´Ù½ÃÁú¹® - Äڵ带 Çѱ۷Πº¸¿©ÁÖ·Á ÇÒ¶§...
³»¿ë
¾È³çÇϼ¼¿ä. ÇØÇÇCGI À¥¸¶½ºÅÍ À±¿µ¿õÀÔ´Ï´Ù.
ÇÁ¸°Æ® ¹®À» À§¿¡¼­ »ç¿ëÇؾßÁö¿ä. ^^

¾Æ·¡ Äڵ带 ÀüºÎ ±×´ë·Î º¹»çÇؼ­ ºÙÀ̼¼¿ä.

#!/usr/local/bin/perl

print "Content-type: text/html\n\n";

#################  form¿¡¼­ µ¥ÀÌŸ Àоî¿À±â  #################
&read_form;

print "\n";
print "ÈÞ¹«½Åû¼­ È®ÀÎ\n";
print "\n";
print "\n";
print "
";
print "ÈÞ¹«½Åû¼­ È®ÀÎ

";
print "";
print "\n";
print "

\n";

##########  ÀÔ·Â µÈ °ª »Ñ·Á ÁÖ±â    ###########


if($hyucode1 eq "01"){
print "¿¬Â÷ÈÞ°¡";
}
elsif($hyucode1 eq "02") {
print "¿ùÂ÷ÈÞ°¡";
}
elsif($hyucode1 eq "03") {
print "»ý¸®ÈÞ°¡";
}
elsif($hyucode1 eq "04") {
print "°æÁ¶ÈÞ°¡";
}
elsif($hyucode1 eq "05") {
print "»ç¿Ü°ø°¡";
}
elsif($hyucode1 eq "06") {
print "»ç³»°ø°¡";
}
elsif($hyucode1 eq "07") {
print "Ưº°ÈÞ°¡";
}
elsif($hyucode1 eq "08") {
print "À¯±ÞÈÞ°¡";
}
elsif($hyucode1 eq "09") {
print "Ãâ»êÈÞ°¡";
}
elsif($hyucode1 eq "10") {
print "°á±Ù";
}
elsif($hyucode1 eq "11") {
print "º´°¡°á±Ù";
}
else {
print "±âŸ";
}

print <<_EndOfHtml_;
























_EndOfHtml_;

print << "TablePrint1-3"; 




  ÈÞ¹«½ÃÀÛÀÏ ÈÞ¹«Á¾·áÀÏ »ç¿ëÀϼö ÈÞ¹«Á¾·ù »çÀ¯
ÈÞ¹«1 $hyufrom1 $hyuto1 $sayong1 $sayu1





¼öÁ¤Çϱâ







TablePrint1-3

####  ÇÊ¿äÇÑ ¿ä¼Ò ÃßÃâ  ######################################################

sub read_form {
%Form = &read_input;

$sabun = $Form{'sabun'};
$hyufrom1 = $Form{'hyufrom1'};
$hyuto1 = $Form{'hyuto1'};
$sayong1 = $Form{'sayong1'};
$hyucode1 = $Form{'hyucode1'};
$sayu1 = $Form{'sayu1'};


      $hyufrom1 =~s/\s//g;
      $sayong1 =~ s/\s//g;
     
}



#####  CGI ·Î ¹ÞÀº µ¥ÀÌŸ¸¦ ¿¬»ó¹è¿­ %FORM ¿¡ ÀúÀå  #################################

sub read_input {
    local ($buffer, @pairs, $name, $value, %FORM);

    if ($ENV{'REQUEST_METHOD'} =~ /^post$/i) {
        read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
    } else {
        $buffer = $ENV{'QUERY_STRING'};
    }

    @pairs = split(/&/, $buffer);

  foreach (@pairs) {
        ($name, $value) = split(/=/, $_);
        $value =~ tr/+/ /;
        $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;
        $FORM{$name} = $value;
    }

    return %FORM;
}


Ãßõ½ºÅ©·¦¼Ò½ºº¸±â ¸ñ·Ï
ÀÌÀü°Ô½Ã±Û ºÎŹµå¸³´Ï´Ù. 2001-04-13 10:33:24
´ÙÀ½°Ô½Ã±Û ½Ç¸íÀ¸·Î¸¸ ¾²´Â °Ô½ÃÆÇ 2001-04-13 15:58:13