묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
다시 질문드립니다. 에러가 나는데 무었이 틀린것인가요?
2003.10.05 22:04
질물을 한번 오렸다가 수정하는 바람에 영 모양도 안좋고 해서
다시 질문드립니다.
제 계정에 제로보드는 깔려있는데 따로 php프로그램을 깔지는 않았구요
제 php구성 설명을 먼저 드립니다.
1단계 : write_form : 이건 가입서류이구요 내용을 입력받는게 목적입니다.
2단계 : write_process : 이건 위의 1단계에서 입력받은 내용을 이메일로 보내는 것입니다.
3단계 : write_ok : 가입서류 제출이 잘 되었다고 안내페이지입니다.
**************************************************************************************
**************************************************************************************
**************************************************************************************
write_form 소스입니다.
**************************************************************************************
**************************************************************************************
**************************************************************************************
<html>
<head>
<title>조합원가입양식</title>
<script language="JavaScript">
<!--
//설정한 날짜만큼 쿠키가 유지되게. expiredays가 1 이면 하루동안 유지
function setCookie(name, value, expiredays) {
var expire_date = new Date();
expire_date.setDate(expire_date.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; expires=" + expire_date.toGMTString() + "; path=/";
}
//쿠키 소멸 함수
function clearCookie(name) {
var expire_date = new Date();
//어제 날짜를 쿠키 소멸 날짜로 설정한다.
expire_date.setDate(expire_date.getDate() - 1)
document.cookie = name + "= " + "; expires=" + expire_date.toGMTString() + "; path=/"
}
//체크 상태에 따라 쿠키 생성과 소멸을 제어하는 함수
function controlCookie(elemnt) {
if (elemnt.checked) {
//체크 박스를 선택했을 경우 쿠키 생성 함수 호출
setCookie("op1","true", 1);
closewin();
}
else {
//체크 박스를 해제했을 경우 쿠키 소멸 함수 호출
clearCookie("op1")
}
return
}
// -->
</script>
</head>
<form name='myForm' method='post' action='write_process.php'>
<table cellpadding="0" cellspacing="0" width="452">
<tr>
<td width="452" bgcolor="#006699" height="30" valign="middle" colspan="4" align="center">
<p align="center"><b><font color="#FFFFCC">조 합 원 가 입 서</font></b></p>
</td>
</tr>
<tr>
<td width="452" height="5" bgcolor="white" colspan="4">
<p><font size="1"> </font></p>
</td>
</tr>
<tr>
<td width="76" height="14" bgcolor="#006699">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">성 명</span></font></p>
</td>
<td width="143" height="14">
<p><b><span style="font-size:9pt;"> <input type='text' name='name' size="16" maxlength=20></span></b></p>
</td>
<td width="83" height="14" bgcolor="#006699">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">주민번호</span></font></p>
</td>
<td width="150" height="14">
<p><b><span style="font-size:9pt;"> <input type='text' name='inhabitant' size="16" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="15">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">개인번호</span></font></p>
</td>
<td width="143" height="15">
<p><b><span style="font-size:9pt;"> <input type='text' name='individual' size="16" maxlength=20></span></b></p>
</td>
<td width="83" bgcolor="#006699" height="15">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">근무부서</span></font></p>
</td>
<td width="150" height="15">
<p><b><span style="font-size:9pt;"> <input type='text' name='service' size="16" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="12">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">입사년월일</span></font></p>
</td>
<td width="143" height="12">
<p><b><span style="font-size:9pt;"> </span></b><span style="font-size:9pt;"><input type='text'+ '+ ' name='year' size="4" maxlength=20>년<input type='text' name='month' size="2" maxlength=20>월<input type='text' name='date' size="2" maxlength=20>일</span></p>
</td>
<td width="83" bgcolor="#006699" height="12">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">직급/직위</span></font></p>
</td>
<td width="150" height="12">
<p><b><span style="font-size:9pt;"> <input type='text' name='order' size="16" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="13">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">미 취 업</span></font></p>
</td>
<td width="376" height="13" colspan="3">
<p><b><span style="font-size:9pt;"> </span></b><span style="font-size:9pt;"><input type="radio" name="losing">
실 업 자 <input type="radio" name="housewife">
주 부 <input type="radio" name="student">
학 생 <input type="radio" name="etc">
기 타</span></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="16">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">소속본부<br>/지 부</span></font></p>
</td>
<td width="376" colspan="3" height="16">
<p><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;"><input type='text' name='sub' size="30" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="81" rowspan="2">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">주 소</span></font></p>
</td>
<td width="376" height="21" colspan="3">
<p><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;">직장</span></b><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;"><input type='text' name='add-work' size="44" maxlength=20></span></b><font color="#FFFFCC"><span style="font-size:9pt;"><br>
</span></font><span style="font-size:9pt;"> 전화번호</span><b><span style="font-size:9pt;"><input type='text' name='phone-work' size="18" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="376" height="35" colspan="3">
<p><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;">자택</span></b><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;"><input type='text' name='add-home' size="44" maxlength=20></span></b><font color="#FFFFCC"><span style="font-size:9pt;"><br></span></font><b><span style="font-size:9pt;">
</span></b><span style="font-size:9pt;">전화번호</span><b><span style="font-size:9pt;"><input type='phone-home' name="phone-home" size="18" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="13">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">핸 드 폰</span></font></p>
</td>
<td width="143" height="13">
<p><b><span style="font-size:9pt;"> <input type='text' name='mobile' size="16" maxlength=20></span></b></p>
</td>
<td width="83" bgcolor="#006699" height="13">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">이 메 일</span></font></p>
</td>
<td width="150" height="13">
<p><b><span style="font-size:9pt;"> <input type='text' name='email' size="16" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="85">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">자기소개</span></font></p>
</td>
<td width="376" height="85" colspan="3">
<p><b><span style="font-size:9pt;"> <textarea name="intro" rows="6" cols="49"></textarea></span></b></p>
</td>
</tr>
<tr>
<td width="452" colspan="4" bgcolor="#0099CC" height="48"> <p align="justify" style="padding:10px;"><font color="#FFFFCC"><span style="font-size:9pt;">본인은
전국보건의료산업노동조합의 설립취지와
목표를 적극 찬성하며</span></font><font color="#333333"><span style="font-size:9pt;"><br></span></font><font color="#FFFFCC"><span style="font-size:9pt;"> 규약을 준수하고,
노동자의 인간다운 삶과 국민건강권 쟁취를
위해 함께</span></font><font color="#333333"><span style="font-size:9pt;"><br></span></font><font color="#FFFFCC"><span style="font-size:9pt;"> 하고자 조합원으로 가입을 희망합니다.</span></font></p>
</td>
</tr>
<tr>
<td width="452" colspan="4" bgcolor="white" height="88">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;"> </span></font><font color="#333333"><span style="font-size:9pt;"><input type='text'
name='add-year' value="200" maxlength='4' size='4' style="background-color:white;">년 <input
type='text' name='add-month' maxlength='2' size='2' style="background-color:white;">월 <input
type='text' name="add-date" maxlength='2' size='2' style="background-color:white;">일<br></span><b><span style="font-size:9pt;">신청인</span></b><span style="font-size:9pt;"> : </span></font><span style="font-size:9pt;"><input type="text" name="add-name" maxlength="8" size="10">(날인
생략)</span><font color="#333333"><span style="font-size:9pt;"><br></span></font><span style="font-size:9pt;"><br></span><b><span style="font-size:9pt;"><input type='submit' name='신청'
value="신청하기" style="color:blue; background-color:rgb(248,220,168);"></span></b><span style="font-size:9pt;"> <input type='reset' name='+ '취소'
value="다시입력" style="color:blue; background-color:rgb(244,220,165);"><br></span></p>
</td>
</tr>
<tr>
<td width="452" colspan="4" bgcolor="#006699" height="37"> <p align="center"><font size="2" color="#FFFFCC"><b>전국보건의료산업노동조합 청구성심병원지부</b> 귀중</font></p>
</td>
</tr>
<tr>
<td width="452" colspan="4" bgcolor="#006699" height="11">
<p>
<p align="center"><input type="checkbox" name="closeEvent" onClick="controlCookie(this)"><font color="#FFFFCC"><b><span style="font-size:9pt;">오늘 하루 이 창을 열지 않습니다!</span></b></font><font color="blue"> </font> </td>
</tr>
</table>
</form>
</html>
**************************************************************************************
**************************************************************************************
**************************************************************************************
write_process 소스입니다.
에러나는 부분이 table시작하는 부분입니다. 세미콜론이나 따옴표가 들어갈 부분이 아닌거 같은데요
**************************************************************************************
**************************************************************************************
**************************************************************************************
<?
$contents="
<html>
<head>
<title>조합원가입양식</title>
<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'+ '>
<style type='text/css'>
<!--
table { font-family: 'Tahoma'; font-size: 9pt}
-->
</style>
</head>
<body bgcolor='#FFFFFF' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>
<br>
<table cellpadding="0" cellspacing="0" width="462">
<tr>
<td width="462" bgcolor="#006699" height="39" colspan="4">
<p align="center"><b><font color="#FFFFCC">조 합 원 가 입 서</font></b></p>
</td>
</tr>
<tr>
<td width="462" height="5" bgcolor="white" colspan="4">
<p><font size="1"> </font></p>
</td>
</tr>
<tr>
<td width="76" height="25" bgcolor="#006699">
<p align="center"><font size="2" color="#FFFFCC">성 명</font></p>
</td>
<td width="143" height="25">
<p><font size="2"><b> <input type="text" name='name' size="16" maxlength=20 value="$name"></b></font></p>
</td>
<td width="83" height="25" bgcolor="#006699">
<p align="center"><font size="2" color="#FFFFCC">주민번호</font></p>
</td>
<td width="160" height="25">
<p><font size="2"><b> <input type='text' name='inhabitant' size="16" maxlength=20 value="$inhabitant"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">개인번호</font></p>
</td>
<td width="143" height="25">
<p><font size="2"><b> <input type='text' name='individual' size="16" maxlength=20 value="$individual"></b></font></p>
</td>
<td width="83" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">근무부서</font></p>
</td>
<td width="160" height="25">
<p><font size="2"><b> <input type='text' name='service' size="16" maxlength=20 value="$service"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">입사년월일</font></p>
</td>
<td width="143" height="25">
<p><font size="2"><b> </b><input type='text' name='year' size="4" maxlength=20 value="$year">년<input type='text' name='month' size="2" maxlength=20 value="$month">월<input type='text' name='date' size="2" maxlength=20 value="$date">일</font></p>
</td>
<td width="83" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">직급/직위</font></p>
</td>
<td width="160" height="25">
<p><font size="2"><b> <input type='text' name='order' size="16" maxlength=20 value="$order"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">미 취 업</font></p>
</td>
<td width="386" height="25" colspan="3">
<p><font size="2"><b> </b><input type="radio" name="losing" value="$losing">
실 업 자 <input type="radio" name="housewife" value="$housewife">
주 부 <input type="radio" name="student" value="$student">
학 생 <input type="radio" name="etc" value="$etc">
기 타</font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699">
<p align="center"><font size="2" color="#FFFFCC">소속본부<br>/지 부</font></p>
</td>
<td width="386" colspan="3">
<p><font size="2"> <b><input type='text' name='sub' size="30" maxlength=20 value="$sub"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="50" rowspan="2">
<p align="center"><font size="2" color="#FFFFCC">주 소</font></p>
</td>
<td width="386" height="25" colspan="3">
<p><font size="2"> <b>직장</b> <b><input type='text' name='add-work' size="44" maxlength=20 value="$add-work"></b></font><font size="2" color="#FFFFCC"><br>
</font><font size="2"> 전화번호<b><input type='text' name='phone-work' size="18" maxlength=20 value="$phone-work"></b></font></p>
</td>
</tr>
<tr>
<td width="386" height="25" colspan="3">
<p><font size="2"> <b>자택</b> <b><input type='text' name='add-home' size="44" maxlength=20 value="$add-home"></b></font><font size="2" color="#FFFFCC"><br></font><font size="2"><b>
</b>전화번호<b><input type='phone-home' name="phone-home" size="18" maxlength=20 value="$phone-home"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">핸 드 폰</font></p>
</td>
<td width="143" height="25">
<p><font size="2"><b> <input type='text' name='mobile' size="16" maxlength=20 value="$mobile"></b></font></p>
</td>
<td width="83" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">이 메 일</font></p>
</td>
<td width="160" height="25">
<p><font size="2"><b> <input type='text' name='+ 'email' size="16" maxlength=20 value="$email"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="115">
<p align="center"><font size="2" color="#FFFFCC">자기소개</font></p>
</td>
<td width="386" height="115" colspan="3">
<p><font size="2"><b> <textarea name="intro" rows="7" cols="49">$intro</textarea></b></font></p>
</td>
</tr>
<tr>
<td width="462" colspan="4" bgcolor="#0099CC" height="72"> <p align="justify" style="padding:10px;"><font color="#FFFFCC"><span style="font-size:10pt;">본인은
전국보건의료산업노동조합의 설립취지와
목표를 적극 찬성하며</span></font><font color="#333333"><span style="font-size:10pt;"><br></span></font><font color="#FFFFCC"><span style="font-size:10pt;"> 규약을 준수하고,
노동자의 인간다운 삶과 국민건강권 쟁취를
위해 함께</span></font><font color="#333333"><span style="font-size:10pt;"><br></span></font><font color="#FFFFCC"><span style="font-size:10pt;"> 하고자 조합원으로 가입을 희망합니다.</span></font></p>
</td>
</tr>
<tr>
<td width="462" colspan="4" bgcolor="white" height="100">
<p align="center"><font size="2" color="#FFFFCC"> </font><font color="#333333"><input type='text'
name='add-year' value="$add-year" maxlength='+ '4' size='4' style="background-color:white;">년 <input
type='text' name='add-month' maxlength='2' size='2' style="background-color:white;" value="$add-month">월 <input
type='text' name="add-date" maxlength='2' size='2' style="background-color:white;" value="$add-date">일<br><b>신청인</b> : </font><input type="text" name="add-name" maxlength="8" size="10" value="$add-name"><font size="2">(날인
생략)</font><font color="#333333"><br></font><br></p>
</td>
</tr>
<tr>
<td width="462" colspan="4" bgcolor="#006699" height="35"> <p align="center"><font size="2" color="#FFFFCC"><b>전국보건의료산업노동조합 청구성심대학교
병원지부</b> 귀중</font></p>
</td>
</tr>
</table>
</form>
</html>
";
mail("vinish78@hanmail.net","조합원가입서",$contents, $add_header);
echo("<meta http-equiv='refresh' content='0; url=write_ok.php'>");
?>
<p> </p>
**************************************************************************************
**************************************************************************************
**************************************************************************************
write_ok 소스입니다.
**************************************************************************************
**************************************************************************************
**************************************************************************************
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>가입신청되었습니다.</title>
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="center"><span style="font-size:10pt;"><b>가입신청되었습니다.</b></span></p>
<p align="center"><span style="font-size:10pt;"> </span></p>
<p align="center"><span style="font-size:10pt;"> </span></p>
<p align="center"><span style="font-size:10pt;"><img src="http://chunggu/img/smile.jpg" width="80" height="80" border="0"></span></p>
</body>
</html>
다시 질문드립니다.
제 계정에 제로보드는 깔려있는데 따로 php프로그램을 깔지는 않았구요
제 php구성 설명을 먼저 드립니다.
1단계 : write_form : 이건 가입서류이구요 내용을 입력받는게 목적입니다.
2단계 : write_process : 이건 위의 1단계에서 입력받은 내용을 이메일로 보내는 것입니다.
3단계 : write_ok : 가입서류 제출이 잘 되었다고 안내페이지입니다.
**************************************************************************************
**************************************************************************************
**************************************************************************************
write_form 소스입니다.
**************************************************************************************
**************************************************************************************
**************************************************************************************
<html>
<head>
<title>조합원가입양식</title>
<script language="JavaScript">
<!--
//설정한 날짜만큼 쿠키가 유지되게. expiredays가 1 이면 하루동안 유지
function setCookie(name, value, expiredays) {
var expire_date = new Date();
expire_date.setDate(expire_date.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; expires=" + expire_date.toGMTString() + "; path=/";
}
//쿠키 소멸 함수
function clearCookie(name) {
var expire_date = new Date();
//어제 날짜를 쿠키 소멸 날짜로 설정한다.
expire_date.setDate(expire_date.getDate() - 1)
document.cookie = name + "= " + "; expires=" + expire_date.toGMTString() + "; path=/"
}
//체크 상태에 따라 쿠키 생성과 소멸을 제어하는 함수
function controlCookie(elemnt) {
if (elemnt.checked) {
//체크 박스를 선택했을 경우 쿠키 생성 함수 호출
setCookie("op1","true", 1);
closewin();
}
else {
//체크 박스를 해제했을 경우 쿠키 소멸 함수 호출
clearCookie("op1")
}
return
}
// -->
</script>
</head>
<form name='myForm' method='post' action='write_process.php'>
<table cellpadding="0" cellspacing="0" width="452">
<tr>
<td width="452" bgcolor="#006699" height="30" valign="middle" colspan="4" align="center">
<p align="center"><b><font color="#FFFFCC">조 합 원 가 입 서</font></b></p>
</td>
</tr>
<tr>
<td width="452" height="5" bgcolor="white" colspan="4">
<p><font size="1"> </font></p>
</td>
</tr>
<tr>
<td width="76" height="14" bgcolor="#006699">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">성 명</span></font></p>
</td>
<td width="143" height="14">
<p><b><span style="font-size:9pt;"> <input type='text' name='name' size="16" maxlength=20></span></b></p>
</td>
<td width="83" height="14" bgcolor="#006699">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">주민번호</span></font></p>
</td>
<td width="150" height="14">
<p><b><span style="font-size:9pt;"> <input type='text' name='inhabitant' size="16" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="15">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">개인번호</span></font></p>
</td>
<td width="143" height="15">
<p><b><span style="font-size:9pt;"> <input type='text' name='individual' size="16" maxlength=20></span></b></p>
</td>
<td width="83" bgcolor="#006699" height="15">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">근무부서</span></font></p>
</td>
<td width="150" height="15">
<p><b><span style="font-size:9pt;"> <input type='text' name='service' size="16" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="12">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">입사년월일</span></font></p>
</td>
<td width="143" height="12">
<p><b><span style="font-size:9pt;"> </span></b><span style="font-size:9pt;"><input type='text'+ '+ ' name='year' size="4" maxlength=20>년<input type='text' name='month' size="2" maxlength=20>월<input type='text' name='date' size="2" maxlength=20>일</span></p>
</td>
<td width="83" bgcolor="#006699" height="12">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">직급/직위</span></font></p>
</td>
<td width="150" height="12">
<p><b><span style="font-size:9pt;"> <input type='text' name='order' size="16" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="13">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">미 취 업</span></font></p>
</td>
<td width="376" height="13" colspan="3">
<p><b><span style="font-size:9pt;"> </span></b><span style="font-size:9pt;"><input type="radio" name="losing">
실 업 자 <input type="radio" name="housewife">
주 부 <input type="radio" name="student">
학 생 <input type="radio" name="etc">
기 타</span></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="16">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">소속본부<br>/지 부</span></font></p>
</td>
<td width="376" colspan="3" height="16">
<p><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;"><input type='text' name='sub' size="30" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="81" rowspan="2">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">주 소</span></font></p>
</td>
<td width="376" height="21" colspan="3">
<p><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;">직장</span></b><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;"><input type='text' name='add-work' size="44" maxlength=20></span></b><font color="#FFFFCC"><span style="font-size:9pt;"><br>
</span></font><span style="font-size:9pt;"> 전화번호</span><b><span style="font-size:9pt;"><input type='text' name='phone-work' size="18" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="376" height="35" colspan="3">
<p><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;">자택</span></b><span style="font-size:9pt;"> </span><b><span style="font-size:9pt;"><input type='text' name='add-home' size="44" maxlength=20></span></b><font color="#FFFFCC"><span style="font-size:9pt;"><br></span></font><b><span style="font-size:9pt;">
</span></b><span style="font-size:9pt;">전화번호</span><b><span style="font-size:9pt;"><input type='phone-home' name="phone-home" size="18" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="13">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">핸 드 폰</span></font></p>
</td>
<td width="143" height="13">
<p><b><span style="font-size:9pt;"> <input type='text' name='mobile' size="16" maxlength=20></span></b></p>
</td>
<td width="83" bgcolor="#006699" height="13">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">이 메 일</span></font></p>
</td>
<td width="150" height="13">
<p><b><span style="font-size:9pt;"> <input type='text' name='email' size="16" maxlength=20></span></b></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="85">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;">자기소개</span></font></p>
</td>
<td width="376" height="85" colspan="3">
<p><b><span style="font-size:9pt;"> <textarea name="intro" rows="6" cols="49"></textarea></span></b></p>
</td>
</tr>
<tr>
<td width="452" colspan="4" bgcolor="#0099CC" height="48"> <p align="justify" style="padding:10px;"><font color="#FFFFCC"><span style="font-size:9pt;">본인은
전국보건의료산업노동조합의 설립취지와
목표를 적극 찬성하며</span></font><font color="#333333"><span style="font-size:9pt;"><br></span></font><font color="#FFFFCC"><span style="font-size:9pt;"> 규약을 준수하고,
노동자의 인간다운 삶과 국민건강권 쟁취를
위해 함께</span></font><font color="#333333"><span style="font-size:9pt;"><br></span></font><font color="#FFFFCC"><span style="font-size:9pt;"> 하고자 조합원으로 가입을 희망합니다.</span></font></p>
</td>
</tr>
<tr>
<td width="452" colspan="4" bgcolor="white" height="88">
<p align="center"><font color="#FFFFCC"><span style="font-size:9pt;"> </span></font><font color="#333333"><span style="font-size:9pt;"><input type='text'
name='add-year' value="200" maxlength='4' size='4' style="background-color:white;">년 <input
type='text' name='add-month' maxlength='2' size='2' style="background-color:white;">월 <input
type='text' name="add-date" maxlength='2' size='2' style="background-color:white;">일<br></span><b><span style="font-size:9pt;">신청인</span></b><span style="font-size:9pt;"> : </span></font><span style="font-size:9pt;"><input type="text" name="add-name" maxlength="8" size="10">(날인
생략)</span><font color="#333333"><span style="font-size:9pt;"><br></span></font><span style="font-size:9pt;"><br></span><b><span style="font-size:9pt;"><input type='submit' name='신청'
value="신청하기" style="color:blue; background-color:rgb(248,220,168);"></span></b><span style="font-size:9pt;"> <input type='reset' name='+ '취소'
value="다시입력" style="color:blue; background-color:rgb(244,220,165);"><br></span></p>
</td>
</tr>
<tr>
<td width="452" colspan="4" bgcolor="#006699" height="37"> <p align="center"><font size="2" color="#FFFFCC"><b>전국보건의료산업노동조합 청구성심병원지부</b> 귀중</font></p>
</td>
</tr>
<tr>
<td width="452" colspan="4" bgcolor="#006699" height="11">
<p>
<p align="center"><input type="checkbox" name="closeEvent" onClick="controlCookie(this)"><font color="#FFFFCC"><b><span style="font-size:9pt;">오늘 하루 이 창을 열지 않습니다!</span></b></font><font color="blue"> </font> </td>
</tr>
</table>
</form>
</html>
**************************************************************************************
**************************************************************************************
**************************************************************************************
write_process 소스입니다.
에러나는 부분이 table시작하는 부분입니다. 세미콜론이나 따옴표가 들어갈 부분이 아닌거 같은데요
**************************************************************************************
**************************************************************************************
**************************************************************************************
<?
$contents="
<html>
<head>
<title>조합원가입양식</title>
<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'+ '>
<style type='text/css'>
<!--
table { font-family: 'Tahoma'; font-size: 9pt}
-->
</style>
</head>
<body bgcolor='#FFFFFF' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0'>
<br>
<table cellpadding="0" cellspacing="0" width="462">
<tr>
<td width="462" bgcolor="#006699" height="39" colspan="4">
<p align="center"><b><font color="#FFFFCC">조 합 원 가 입 서</font></b></p>
</td>
</tr>
<tr>
<td width="462" height="5" bgcolor="white" colspan="4">
<p><font size="1"> </font></p>
</td>
</tr>
<tr>
<td width="76" height="25" bgcolor="#006699">
<p align="center"><font size="2" color="#FFFFCC">성 명</font></p>
</td>
<td width="143" height="25">
<p><font size="2"><b> <input type="text" name='name' size="16" maxlength=20 value="$name"></b></font></p>
</td>
<td width="83" height="25" bgcolor="#006699">
<p align="center"><font size="2" color="#FFFFCC">주민번호</font></p>
</td>
<td width="160" height="25">
<p><font size="2"><b> <input type='text' name='inhabitant' size="16" maxlength=20 value="$inhabitant"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">개인번호</font></p>
</td>
<td width="143" height="25">
<p><font size="2"><b> <input type='text' name='individual' size="16" maxlength=20 value="$individual"></b></font></p>
</td>
<td width="83" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">근무부서</font></p>
</td>
<td width="160" height="25">
<p><font size="2"><b> <input type='text' name='service' size="16" maxlength=20 value="$service"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">입사년월일</font></p>
</td>
<td width="143" height="25">
<p><font size="2"><b> </b><input type='text' name='year' size="4" maxlength=20 value="$year">년<input type='text' name='month' size="2" maxlength=20 value="$month">월<input type='text' name='date' size="2" maxlength=20 value="$date">일</font></p>
</td>
<td width="83" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">직급/직위</font></p>
</td>
<td width="160" height="25">
<p><font size="2"><b> <input type='text' name='order' size="16" maxlength=20 value="$order"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">미 취 업</font></p>
</td>
<td width="386" height="25" colspan="3">
<p><font size="2"><b> </b><input type="radio" name="losing" value="$losing">
실 업 자 <input type="radio" name="housewife" value="$housewife">
주 부 <input type="radio" name="student" value="$student">
학 생 <input type="radio" name="etc" value="$etc">
기 타</font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699">
<p align="center"><font size="2" color="#FFFFCC">소속본부<br>/지 부</font></p>
</td>
<td width="386" colspan="3">
<p><font size="2"> <b><input type='text' name='sub' size="30" maxlength=20 value="$sub"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="50" rowspan="2">
<p align="center"><font size="2" color="#FFFFCC">주 소</font></p>
</td>
<td width="386" height="25" colspan="3">
<p><font size="2"> <b>직장</b> <b><input type='text' name='add-work' size="44" maxlength=20 value="$add-work"></b></font><font size="2" color="#FFFFCC"><br>
</font><font size="2"> 전화번호<b><input type='text' name='phone-work' size="18" maxlength=20 value="$phone-work"></b></font></p>
</td>
</tr>
<tr>
<td width="386" height="25" colspan="3">
<p><font size="2"> <b>자택</b> <b><input type='text' name='add-home' size="44" maxlength=20 value="$add-home"></b></font><font size="2" color="#FFFFCC"><br></font><font size="2"><b>
</b>전화번호<b><input type='phone-home' name="phone-home" size="18" maxlength=20 value="$phone-home"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">핸 드 폰</font></p>
</td>
<td width="143" height="25">
<p><font size="2"><b> <input type='text' name='mobile' size="16" maxlength=20 value="$mobile"></b></font></p>
</td>
<td width="83" bgcolor="#006699" height="25">
<p align="center"><font size="2" color="#FFFFCC">이 메 일</font></p>
</td>
<td width="160" height="25">
<p><font size="2"><b> <input type='text' name='+ 'email' size="16" maxlength=20 value="$email"></b></font></p>
</td>
</tr>
<tr>
<td width="76" bgcolor="#006699" height="115">
<p align="center"><font size="2" color="#FFFFCC">자기소개</font></p>
</td>
<td width="386" height="115" colspan="3">
<p><font size="2"><b> <textarea name="intro" rows="7" cols="49">$intro</textarea></b></font></p>
</td>
</tr>
<tr>
<td width="462" colspan="4" bgcolor="#0099CC" height="72"> <p align="justify" style="padding:10px;"><font color="#FFFFCC"><span style="font-size:10pt;">본인은
전국보건의료산업노동조합의 설립취지와
목표를 적극 찬성하며</span></font><font color="#333333"><span style="font-size:10pt;"><br></span></font><font color="#FFFFCC"><span style="font-size:10pt;"> 규약을 준수하고,
노동자의 인간다운 삶과 국민건강권 쟁취를
위해 함께</span></font><font color="#333333"><span style="font-size:10pt;"><br></span></font><font color="#FFFFCC"><span style="font-size:10pt;"> 하고자 조합원으로 가입을 희망합니다.</span></font></p>
</td>
</tr>
<tr>
<td width="462" colspan="4" bgcolor="white" height="100">
<p align="center"><font size="2" color="#FFFFCC"> </font><font color="#333333"><input type='text'
name='add-year' value="$add-year" maxlength='+ '4' size='4' style="background-color:white;">년 <input
type='text' name='add-month' maxlength='2' size='2' style="background-color:white;" value="$add-month">월 <input
type='text' name="add-date" maxlength='2' size='2' style="background-color:white;" value="$add-date">일<br><b>신청인</b> : </font><input type="text" name="add-name" maxlength="8" size="10" value="$add-name"><font size="2">(날인
생략)</font><font color="#333333"><br></font><br></p>
</td>
</tr>
<tr>
<td width="462" colspan="4" bgcolor="#006699" height="35"> <p align="center"><font size="2" color="#FFFFCC"><b>전국보건의료산업노동조합 청구성심대학교
병원지부</b> 귀중</font></p>
</td>
</tr>
</table>
</form>
</html>
";
mail("vinish78@hanmail.net","조합원가입서",$contents, $add_header);
echo("<meta http-equiv='refresh' content='0; url=write_ok.php'>");
?>
<p> </p>
**************************************************************************************
**************************************************************************************
**************************************************************************************
write_ok 소스입니다.
**************************************************************************************
**************************************************************************************
**************************************************************************************
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>가입신청되었습니다.</title>
<meta name="generator" content="Namo WebEditor v5.0">
</head>
<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<p align="center"><span style="font-size:10pt;"><b>가입신청되었습니다.</b></span></p>
<p align="center"><span style="font-size:10pt;"> </span></p>
<p align="center"><span style="font-size:10pt;"> </span></p>
<p align="center"><span style="font-size:10pt;"><img src="http://chunggu/img/smile.jpg" width="80" height="80" border="0"></span></p>
</body>
</html>
그러시면 안되요. 그러실려면.. " 이런 큰따옴표를 내용중에써주시면 안되거든요.
16째줄을 보시면 테이블에 " 따옴표가 있어요.
16번째줄 이후로도 계속 " 가 나오구 있구요.
"를 모두 '로 바꾸어보세요.
저같은경우는,,
$contents .="<html><head><title>조합원가입양식</title>";
$contents .="<meta http-equiv='Content-Type' content='text/html; charset=euc-kr'>";
$contents .="<style type='text/css'>";
이런식으로 하거든요. 보기도 좋구.
컨텐츠 변수 뒤에 .점은 변수 뒤에 더해준다는 거예요.
즉 저런식으로 하면. 컨텐츠에 위 내용이 오류없이 들어가겠죠.
그리구 "와 " 이사이에는 큰따옴표를 써주시면 안되요.
그러니까 ' 혹은 \" 이런식으로 써주셔야 해요.
세미콜론도 빠뜨리시면 안되구요.