|
|
|
|
±è±¤¼ö / 2001-03-08 / ¿ÀÈÄ 10:52:36 / 168.115.32.56
Á¶È¸¼ö : 140
|
[Áú¹®] °í¼ö´Ô(ä³ÎÀÌ)´Ô¾Æ ¾ÆÁ÷µµ ÀÌÇØ°¡ À߾Ȱ¡´Âµ¥¿ä.. |
´ÔÀÌ ¼³¸íÇØÁØ°ÍÀ» ¾ÆÁ÷µµ ÀÌÇØ°¡ À߾Ȱ¡¼
Á¶±Ý ÀÚ¼¼È÷ ¼³¸í Á» ÇØÁֽøéÇϴµ¥¿ä..
function CheckForm(theForm) {
if (navigator.appName!="Netscape") {
if (theForm.F_Name.value=="") {
alert("À̸§À» ÀÔ·ÂÇϼ¼¿ä.");
theForm.F_Name.focus();
return false;
}
if (theForm.F_Subject.value=="") {
alert("Á¦¸ñÀ» ÀÔ·ÂÇϼ¼¿ä.");
theForm.F_Subject.focus();
return false;
}
if (theForm.F_Contents.value=="") {
alert("³»¿ëÀ» ÀÔ·ÂÇϼ¼¿ä.");
theForm.F_Contents.focus();
return false;
}
}
ÀÌ°Ô ÆÄÀϾ÷·Îµå¿¡ °üÇÑ°Í°°Àºµ¥ ¾î¶»°Ô ÇؾßÇÒÁö??
±×¸®°í
if V_Error=1 then
if P_FileName <> "" then
Set Fso = Server.CreateObject("Scripting.FileSystemObject")
V_Flag=0
V_AddName=0
V_FileName=Fso.GetFileName(P_FileName)
V_BaseName=Fso.GetBaseName(V_FileName)
V_ExtensionName=Fso.GetExtensionName(V_FileName)
V_AbsoluteFileName=Server.MapPath("..\data")&"\"&P_ID&"\"&V_FileName
V_SaveFileName=V_AbsoluteFileName
do while V_Flag=0
if (Fso.FileExists(V_SaveFileName)) then
V_AddName=V_AddName+1
V_SaveFileName=Server.MapPath("..\data")&"\"&P_ID&"\"&V_BaseName&V_AddName&"."&V_ExtensionName
else
V_Flag=1
V_AbsoluteFileName=V_SaveFileName
end if
loop
UploadForm("F_FileName").SaveAs V_AbsoluteFileName
V_FileName=Replace(Fso.GetFileName(V_AbsoluteFileName), "'", "''")
Set Fso=Nothing
Set UploadForm=Nothing
end if
ÀÌ°Ç write_ok.aspÀ̰ŵç¿ä..Á¦°¡ »ý°¢Çϱ⿡ ÀÌÂÊÀΰͰ°Àºµ¥ À߸𸣰ھî¿ä..
±×¸®°í µ¥ÀÌÅͺ£À̽º¸¦ ÀÚ¼¼È÷ Á» ¼³¸íÇØÁֽðھî¿ä..
Àü ¿ÀÇǽº2000¿¡¼ µðºñ¸¦ ¸¸µé¾ú°Åµç¿ä..
±×·³ °í¼ö´Ôµé Á» ¾Ë·ÁÁÖ¼¼¿ä |
|
|
|