묻고답하기




아래 소스에서 변수를 넘겨 받으면 폼이 안뜨야 되는데, 계속 뜹니다.
값이 다른데,
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 남기남
블랙야화 노프레임에 게시판적용시키는법점 알려주세요 [3] 2007.08.10
신민준 질문입니다. 레이아웃 홈피에 적용시키기. [1] 2007.08.10
메이든 배경 그라데이션에 대해.. 질문좀 [1] 2007.08.10
okoru 가장 적당한 BGM의 용량은 몇 MB입니까? [3] 2007.08.10
김지만 사랑비 소스 - 2 - [1] 2007.08.10
김지만 이거 사랑비BGM - 1 - 너무 많아서 2까지..  
블랙야화 도움점 부탁드립니다 [3] 2007.08.10
김지만 사랑비BGM 질문 ㅠㅠ [1] 2007.08.10
Khal 테두리 선을 둥글게는 도대체 어떻게 해야하죠? [1] 2007.08.10
김현준 프레임 사용 페이지 변화 [1] 2007.08.10
히스 php언어중 랜덤으로 나오게 할수 잇는 함수있나요? [2] 2007.08.10
샤르 君 사랑비 어떻게 하는건지요...; [1] 2007.08.10
Shin.CH PSD 웹레이아웃을 홈피로 어떻게 만드나요? [2] 2007.08.10
엽기왕자 노프레임 타겟지정... [1] 2007.08.10
hansong 저기요 제컴퓨터 갑자기 이렇게 나오거든요 ??? [2] 2007.08.10
신민준 질문좀..홈피 만드는거;;; [1] 2007.08.10
Ming* 아이프레임으로 홈페이지를 만드는중인데.. 자꾸 빈공간이 생깁니다; [2] 2007.08.10
노한영 외부 include 설정에 대해서 질문좀.. [1] 2007.08.10
임홍규 메인 페이지 레이아웃 관련 질문입니다. [1] 2007.08.10
이동신 자동계산 도와주세요..ㅡ.ㅜ [1] 2007.08.10
김성국 게시판추가하구요 [1] 2007.08.10
김선미 제로보드 덧글관련 질문입니다. ㅡㅜ 도와주세요  
김욱 우편번호 조회기능을 어떻게 홈페이지에... [1] 2007.08.10
서봉수 노프레임 제홈피에서 페이지마다 로그인을 해줘야 해요. 어떻게 하죠? [2] 2007.08.10
유상종 파일업로드중 에러가 생겼습니다. 어떻게 해야하죠? [2] 2007.08.10
이승아 로그인 관련 질문, 아니 아니 전체적으로다가!!! [1] 2007.08.10
손명수 게시판 달려고 하거든요 ;;; 고수분들 도와주세요~~~ ㅡ,.ㅡ;; [1] 2007.08.10
히스 저기 제로보드에 로그인스킨에 있는것중에서요. [1] 2007.08.10
손명수 헤더와 푸터가 모죠? ;;; [1] 2007.08.10
대굴 축소하면 화면이 깨집니다..