Plain ÅؽºÆ® ÈÀÏÀ» ÀÌ¿ëÇÏ´Â Á¶±×¸¶ÇÑ ÆÞ½ºÅ©¸³Æ® DB¸¦ ¼öÁ¤ÇÏ¿© »ç¿ëÇÏ°í ÀÖ½À´Ï´Ù. Çѱ۷ΠÀúÀåµÇ¾îÀÖ´Â º¯¼ö¸¦ ¾î¶»°Ô °Ë»öÇÒ¼öÀÖ´ÂÁö¿ä? ¾Æ·¡ºÎºÐÀº ÀÌ ½ºÅ©¸³Æ®ÀÇ Ã³À½ºÎºÐÀÔ´Ï´Ù. Àú´Â ÆÞ½ºÅ©¸³Æ®ÀÇ ¹®¿ÜÇÑÀ̶ó ¾Æ½Ã´ÂºÐÀÇ Á¶±×¸¸ÇÑ Á¶¾ðÀÌ Å« µµ¿òÀÌ µÇ°Ú½À´Ï´Ù. °¨»çÇÕ´Ï´Ù. =========================================== #!/usr/local/bin/perl # read(STDIN, $input, $ENV{ CONTENT_LENGTH }); # split the input @pairs = split(/&/, $input); # split the name/value pairs foreach $pair (@pairs) { ($name, $value) = split(/=/, $pair); $name =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $value =~ tr/ / /; $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg; $FORM{$name} = $value; } #A1. The following lines get and process data passed #through the URL, do not modify $stringpassed=$ENV{ QUERY_STRING }; #A2. Replace all plusses with spaces for data passed via URL $stringpassed=~s/ / /g; #A3. Get words passed to URL and get field name to search ( $Name, $Type, $City, $State, $Describe,$skiplast)=split(/&&/,$stringpassed);
|