LogIn E-mail
설계이야기
Perl CGI Input Test, getenv.cgi
# 87 JMJS    18.11.21 07:51

#!/usr/bin/perl -U
#==============================================================================#
package main;
#==============================================================================#
local $nallo="w800";
local $com="";
local $cpage=1000;
local $word="";
local $table="eeeeeeeee";
local $spell=();
local $start="Show";
#------------------------------------------------------------------------------#
umask(000);
#------------------------------------------------------------------------------#
read(STDIN,$buffer,$ENV{'CONTENT_LENGTH'});
@bufs=split(/&/,$buffer);
my %xh=();
foreach(@bufs) {
        ($k,$v)=split(/=/,$_);
        %xh=(%xh,$k,$v);
        $cc.="<p>KK23:$k=$v:KK23<p>\n";
}
open(O,">box/$ENV{'UNIQUE_ID'}");
foreach $k (keys %ENV) {
        $cc.="<p>KK17:$k=$ENV{$k}:KK17<p>";
        print O "$k        $ENV{$k}\n";
}
close(O);
#==============================================================================#
print <<_ENDLINE_;
Content-type: text/html; charset=euc-kr

<HTML>
<HEAD>
<TITLE>JMJS Elementary Word 800</TITLE>

<SCRIPT language="JavaScript">
<!--

-->
</SCRIPT>
<link rel="stylesheet" type="text/css" href="w800.css"/>
</HEAD>

<BODY
text=#606060 vLink=#404040 aLink=#404040 link=#404040 bgColor=white
>
<!----------------------------------------------------------------------------->
<!--        Body Table Begin                                                      -->
<!----------------------------------------------------------------------------->
<TABLE        width=100% height=37 valign=top
        cellSpacing=0 cellPadding=0 border=0>
<!----------------------------------------------------------------------------->
<TR><TD>
<!----------------------------------------------------------------------------->
<!--        JMJS Title Table Begin                                                     -->
<!----------------------------------------------------------------------------->
<TABLE width=100% border=0 cellspacing=0 cellpadding=0><TR valign=bottom>
<TD width=4></TD>
<TD><A HREF="http://www.jmjs.com"><IMG
 src="http://www.jmjs.com/images/frame/JMJS_Title_logo.jpg" border=0></A></TD>
<!----------------------------------------------------------------------------->
<TD valign=botton width=30% align=right>
</TD>
<TD valign=botton width=10% align=right>
</TD>
<TD width=10%>
</TD>
<TD valign=botton width=10% align=center>
</TD>
<TD width=10%>
 
</TD>
<TD valign=botton width=10% align=right>
</TD>
<TD width=10%>
 
</TD>
<TD valign=botton width=10% align=right>
</TD>
<TD width=10%>
</TD>
<!----------------------------------------------------------------------------->
</TR></TABLE>
<!----------------------------------------------------------------------------->
<!--        JMJS Title Table End                                                     -->
<!----------------------------------------------------------------------------->
</TD></TR>
<!----------------------------------------------------------------------------->
<TR><TD width=100%>
<IMG src="http://www.jmjs.com/images/frame/topbar.gif" width=100% height=11 border=0>
</TD></TR>
<!----------------------------------------------------------------------------->
<TR><TD width=100%></TD></TR>
<!----------------------------------------------------------------------------->
<TR><TD width=100%>
<!----------------------------------------------------------------------------->
<!--        Core Table Begin                                             -->
<!----------------------------------------------------------------------------->
<TABLE width=100%>
<TR>
<TD width=33%>
</TD>
<TD width=33%>
</TD>
<TD width=33%>
</TD>
</TR>
</TABLE>
$cc
<!----------------------------------------------------------------------------->
<!--        Core Table End                                                             -->
<!----------------------------------------------------------------------------->
</TD>
</TR>
<!----------------------------------------------------------------------------->
<TR>
<TD>
<!----------------------------------------------------------------------------->
<TABLE>
<TR>
<TD width=70%>
</TD>
<TD>
</TD>
<!----------------------------------------------------------------------------->
<TD>
</TD>
</TR>
</TABLE>
<!----------------------------------------------------------------------------->
</TD></TR>
<!----------------------------------------------------------------------------->
<TR><TD width=100%><IMG src="http://www.jmjs.com/images/frame/bottombar.gif"
        width=100% height=11 border=0></TD></TR>
<!----------------------------------------------------------------------------->
<TR><TD width=100% align=center><IMG src="http://www.jmjs.com/images/frame/jmjs2008.gif" border=0></TD></TR>
<!----------------------------------------------------------------------------->
</TABLE>
<!----------------------------------------------------------------------------->
<!--        Body Table End                                                             -->
<!----------------------------------------------------------------------------->
</BODY></HTML>
_ENDLINE_

첨부파일: env.pl Perl_CGI_Input_Test.htm
게시물: 100 건, 현재: 1 / 2 쪽
번호 제       목 작성자 등록일 방문
100  jsame.pl JMJS 09.5.21 1402
99  jos.pl JMJS 08.11.29 1175
98  jmngr.pl - jmjspro manager JMJS 08.11.29 1221
97  vhdl.pm JMJS 08.11.29 1213
96  jreg.pl JMJS 08.11.29 1214
95  jtree.pm JMJS 08.11.29 1243
94  w2c.pl JMJS 08.11.29 1222
93  jdread.pl JMJS 08.11.29 1060
92  ffile.zip ffilediff.pl JMJS 09.4.24 1108
91  rgb2ycbcr.pl JMJS 10.5.12 1298
90  proview.pl JMJS 08.11.29 1372
89  smi_shift.pl JMJS 10.10.3 1074
88  srt2smi.pl srtshift.pl JMJS 18.7.14 1232
87  Perl CGI Input Test, getenv.cgi JMJS 18.11.21 905
86  opendir, readdir, closedir JMJS 08.10.12 1170
85  tr a-z A-Z JMJS 08.10.3 982
84  JARRAY->jfunc JMJS 08.10.2 983
83  수치함수 - ... JMJS 09.5.7 1363
82  역행렬3x3 JMJS 09.5.7 1485
81  hex2int.pl JMJS 10.9.12 2187
80  stat - file status 보기 JMJS 07.12.16 1052
79  Perl Tip JMJS 09.7.20 2048
78  SMI file sync delay JMJS 07.7.18 1176
77  rmword.pl JMJS 07.6.18 1077
76  [Perl]package AP jinsung 07.2.28 1009
75  [Perl]read_dir.pl JMJS 07.2.22 1245
74  [Perl]jtab2char - tab문자를 특정 char로 바꿔주기 JMJS 07.2.22 1172
73  Perl 숫자 Sorting JMJS 11.5.17 1320
72  [CGI]GET and POST JMJS 06.11.20 2652
71  Perl Grammer JMJS 06.9.4 2237
70  표준 모듈 JMJS 06.8.10 1478
69  Getopt::Long example JMJS 06.8.10 1660
68  array of array JMJS 06.4.22 1082
67  [HTML]테이블 배경에 그림넣기 JMJS 06.3.8 1177
66  l2w.pm - line to word JMJS 08.12.1 1138
65  make_random_chars JMJS 05.8.10 1029
64  mail 보내는 script JMJS 05.3.23 1007
63  실행파일을 실행시키고 표준에러 읽기 JMJS 09.2.25 987
62  팝업창(공지창)띄우기 Jinsung 03.12.16 1931
61  print <<ENDLINE JMJS 03.12.5 1064
60  [HTML]Target JMJS 03.5.21 1104
59  [Perl]jutil.pm JMJS 03.5.3 1241
58  [Perl]jdiff.pl JMJS 02.6.6 1246
57  [Perl]cfilter.pm - commant filter JMJS 02.1.31 1290
56  [HTML]자동으로 다른 페이지 이동 JMJS 02.1.19 1160
55  Perl 설치하기 - ActiveWare JMJS 02.1.16 1131
54  opendir , readdir , closedir JMJS 02.1.4 1159
53  rand_diff JMJS 01.10.23 1066
52  vcd2v.pl JMJS 15.8.25 1177
51  file upload JMJS 01.3.16 1061
50  umask(070) <- chmod o-rwx 진성 01.3.16 1247
49  head2index 진성 01.3.15 957
48  grep.pl JMJS 11.1.20 1067
47  chr(13) = \M 진성 01.3.15 973
46  stty JMJS 01.3.12 1085
45  des.pl JMJS 01.3.8 989
44  chr_plus.pl JMJS 01.3.8 1005
43  test JMJS 09.7.20 914
42  test JMJS 09.7.20 1114
41  test JMJS 09.7.20 935
40  vec JMJS 01.3.8 1173
39  chomp $_ @_ say defined use 5.010 state grep any ... JMJS 18.10.27 1065
38  [Perl Tk] 도스창 없이, 펄 Tk 스크립트 실행하기; ... JMJS 17.9.30 1002
37  @bs = sort {$a <=> $b} @as; JMJS 17.7.12 1124
36  if ( -e -z -s -f -d -T -B -M ) JMJS 16.3.10 1162
35  mkmm.pl - make freemind JMJS 12.5.22 1148
34  perl -pi.orig -e "s/\bu_(\w+_t)\b/u$1/g" *.c JMJS 11.8.26 1153
33  .xls output csv 파일에 \n "가 있을때 JMJS 11.4.13 1044
32  jdcat.pl juncat.pl JMJS 11.2.24 1154
31  print chr(ord('a')); JMJS 01.3.8 1083
30  require "/user/home/jin1/jin1.pm"; JMJS 00.11.28 1024
29  for(my $i=0; $i < @abc; $i ++) {} JMJS 00.11.15 1113
28  remove blank $abc =~ s/[\s]+//g; JMJS 00.11.15 1067
27  array and for JMJS 00.11.14 926
26  홈페이지 자동 이동 JMJS 00.10.28 986
25  html에서 쓰이는 기호표시방법 JMJS 00.9.30 932
24  배열의 범위 연산자 JMJS 00.9.20 1163
23  for(1..3) { print "$_";} JMJS 09.4.24 948
22  package JMJS 00.9.18 970
21  줄에서 한글자 고치기 JMJS 00.8.7 1038
20  hotkey function by getc JMJS 00.7.21 1103
19  read, sysread, syswrite JMJS 00.7.21 1886
18  crypt JMJS 00.7.13 1146
17  csv2gan.pl JMJS 11.4.4 1241
16  hexa JMJS 00.7.7 1091
15  file in out.pl JMJS 00.7.5 1228
14  ARGV JMJS 00.7.5 1096
13  jtime.pm - localtime, timelocal JMJS 09.4.9 1499
12  @INC JMJS 00.7.5 1438
11  $#myarray JMJS 00.7.5 1176
10  Hash of Array JMJS 00.7.5 1014
9  package JARRAY JHASH JMJS 00.7.4 1168
8  foreach, while each, dos2unix.pl, next last JMJS 09.4.24 1180
7  치환 전이 JMJS 00.7.4 1005
6  file lock JMJS 00.7.4 1095
5  gettime JMJS 00.7.4 1097
4  [Perl]jcdread.pl JMJS 00.7.4 1182
3  [Perl]jdread.pl JMJS 00.7.4 1046
2  Hash Example JMJS 00.6.27 1094
1  DESTROY JMJS 09.7.20 1045
[1] [2]