테스트 사이트 - 개발 중인 베타 버전입니다

왕초보 질문입니다.ㅎㅎ

· 13년 전 · 811 · 1
<form name="fwrite" method="post" onSubmit="return fwrite_submit(this);" enctype="multipart/form-data" style="margin:0px;">

질문1)

여기서 php책을 보면 method="post" action=***.php 이런식인데 위식에 보면 onSubmit="return fwrite_submit(this); 이런것이 있습니다. 이게 어디로 이동하라는 것인지요?


질문2) 분석하고 있는 게시판인데 배열인듯합니다만.. 글쓰기 스킨에 밑에 코드를 넣는 이유는 무엇인가요? 정말 왕초보입니다. php책과 그누보드하고는 좀 차이나는 부분이기도 하고요.. 하지만 재미는 있네요.
제발 고수님 도와주세요.!!

$ex2_filed = explode("|",$write[wr_2]);
$ext2_00 = $ex2_filed[0];
$ext2_01 = $ex2_filed[1];
$ext2_02 = $ex2_filed[2];
$ext2_03 = $ex2_filed[3];
$ext2_04 = $ex2_filed[4];
$ext2_05 = $ex2_filed[5];
$ext2_06 = $ex2_filed[6];
$ext2_07 = $ex2_filed[7];
$ext2_08 = $ex2_filed[8];
$ext2_09 = $ex2_filed[9];
$ext2_10 = $ex2_filed[10];
$ext2_11 = $ex2_filed[11];
$ext2_12 = $ex2_filed[12];
$ext2_13 = $ex2_filed[13];

도움주신 고수님들을 위해 먼저 감사드립니다.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

댓글 1개

onSubmit="return fwrite_submit(this);"
이것은 글쓰기체크함수 fwrite_submit 이동하라는 이야기입니다.
함수안에 action=***.php문이있습니다.

필드변수 $write[wr_2]에 문자열을 "|" 분리하여 배열변수
$ex2_filed에 저장하고 저장된변수는 다시 각각 변수에
다시저장하는것입니다
이런코드를 넣는 이유는 작성한 사람만이 알 수있습니다.
기본적인 그누보드 게시판에는 없는 코드입니다.

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440