묻고답하기




아래 소스에서 변수를 넘겨 받으면 폼이 안뜨야 되는데, 계속 뜹니다.
값이 다른데,
a_userid는 varchar(20)인데,
username은 모르겠어요....
또 어떻게 값을 넘기는 지...
<?
            // a-DB 접속
            $connect=dbconn();
            $member=member_info();

    $username=$user_id;

    if($connect) mysql_close($connect);
?>
<?
if(!$username) {
        print_form();
        exit;
        };
$my_icon = "default.gif";
if(!$message && ($faceshow == $my_icon)) {
        print_form_nameset();
        exit;
        };
$time = date("H:i d/m");
$timeis = time();
$holdtime = $timeis - 900 ;
$message_array = file("messages.htm");
$history_array = file("archive.htm");
$show_who = file("users.txt");
for ($talley = 1; $talley < 40; $talley++) {
        $old_messages .= $message_array[$talley];
}
for ($talley = 1; $talley < 200; $talley++) {
        $old_history .= $history_array[$talley];
}
foreach ($show_who as $user_on) {
        $displayed = explode(",",$user_on);
                if( $displayed[0] < $holdtime  ){
                        break;
                        }
                if( $displayed[1] == "$usernamen" ){
                        break;
                        }
                $updated .= $user_on;
        }
$updated .= "$timeis,$usernamen";
$online = stripslashes($updated);
$open_file = fopen("users.txt", w);
fputs($open_file, $online);
fclose($open_file);
$username = htmlspecialchars($username);
$message = htmlspecialchars($message);
$new_message = "<font color="$myfont"> $time <img src="$faceshow"> $username [-]  $message<p>n </font>";
$header = "<html><head>".
    "<embed src="sound.wav" width=2 height=0 autostart=true loop=false> <noembed> <bgsound src="sound.wav" loop=none> </noembed>n";
    "<meta http-equiv="pragma" content="no-cache">".
    "<meta http-equiv="refresh" CONTENT="15">".
    "<meta name="robots" content="noindex"></head>".
    "<body bgcolor="#ffffff" text="#000000"><p>".
$open_file = fopen("messages.htm", "w");
fputs($open_file, $header);
fputs($open_file, stripslashes($new_message));
fputs($open_file, $old_messages);
fputs($open_file, $footer);
fclose($open_file);
$open_file = fopen("archive.htm", "w");
fputs($open_file, $header);
fputs($open_file, stripslashes($new_message));
fputs($open_file, $old_history);
fputs($open_file, $footer);
fclose($open_file);
print_form_nameset();
function print_form()
{
global $username;
global $self_post;
echo <<<FORM1
</head>
<body bgcolor="#ffffff" text="#000000">
<BODY BACKGROUND="burlap.gif">
<p>
<font size="-1">

function print_form()
{
global $username;
global $self_post;
echo <<<FORM1
</head>
<body bgcolor="#ffffff" text="#000000">
<BODY BACKGROUND="aaaa.gif">
<p>
<font size="-1">
<form name="chat" method="post" action="$self_post" >
Chat Handle : <input type="text" name="username" size="30" value="$username">
<input type="submit" value="test"><br>
</form>
</font>
FORM1;
}
?>


글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
오병이어2 이미지 강제 출력 애드온을 지웠는데도~~ [2] file 2014.02.18 by 오병이어2
수정원 xe_official_v2 배경색 변경방법 [1] file 2014.02.18 by ForHanbi
soso 메뉴의 폰트를 바꾸고싶어요 [1] 2014.02.18 by ForHanbi
조인잡 1.7.4 업데이트후 문제가 이만 저만이 아니군요. [1] 2014.02.18 by ForHanbi
소이스 CONTACT US 깨짐 [5] 2014.02.18 by 착한악마
Xe초보자 새글 알림에 파일첨부 표시를 없게 하고싶습니다.. file  
inphyy 팝업 창 크기 조절은 어떻게 해야하나요? file  
기린782 경고 메시지 확인 좀 부탁드립니다.  
우니즈 스케치북5 갤러리형 수정..  
강신봉 몇일 전부터 갑자기 css 스타일(jquery등..)이 안먹는 것 같은 문제가.. [4] file 2014.02.18 by 강신봉
야옹이님 탈퇴를 1.7.3.8에서 금지하는 방법이 무엇인가요? [18] 2014.02.18 by BonaSera
순대애 소시랑 한줄메모 스킨 글자수 제한 없앨 수 있는 방법은 없나요? [1] 2014.02.18 by BJ람보
XE모듈 우측 배너떄문에 물어봅니다!! file  
물고기708 회원그룹추가 [5] 2014.02.18 by KrteamENT
미스백 로그인 페이지 이동 질문드립니다. [1] 2011.04.03 by 신군임니돠
홍순만619 로그인윗젯을 설치할려 하는데 방법을 모르겠습니다. ㅡ.,ㅡ [1] 2011.04.04 by 에혀라X
상해파 게시판 출력 순서 변경은 어떻게 해야 하나요?  
김선생™ 이번 1.4.5.2 업글후 첨부이미지파일명이.. [1] 2011.04.11 by 백성찬
제주촌닭 왼쪽 제일위 수정 방법 [2] 2011.04.13 by 제주촌닭
김영광609 게시판 제목클릭시 새창으로 열리게 하는방법좀.. 제발요 ㅠㅠ [1] 2011.04.14 by 제주촌닭
무야 위젯스타일에 언어코드로 다국어 제목 입력시 충돌 [2] 2011.04.18 by 무야
스반 탭 형태 최근 게시물 "더보기" 버튼을 넣는 방법?? [2] 2011.05.10 by 송동우
제주촌닭 본문 글 내용이 하얀바탕에 하얀색 글로 있어서 글이 안보입니다 [3] 2011.05.07 by 송동우
wings174 썸네일 관련 질문드립니다. [1] 2011.04.30 by 인간a
nexonx xe게시판의 위치에서 왼쪽에 여백을 둘 수는 없을까요..? [6] file 2011.04.26 by nexonx
한마음^^ 언어 변경 오류 [2] 2011.04.28 by guny
H-BNB 송동우님 봐주세요 [1] 2011.04.22 by 송동우
Ada지오 이미지 슬라이더 문제! (질문수정) [2] 2011.04.20 by 한마음^^
H-BNB 초보가 급한질문드립니다. [1] 2011.04.22 by 송동우
난자상학 이 게시판에 글을 쓸때 이미지를 같이 올리려면 어떻게 하는 겁니까? [1] 2011.04.18 by 새하나모