묻고답하기




아래 소스에서 변수를 넘겨 받으면 폼이 안뜨야 되는데, 계속 뜹니다.
값이 다른데,
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] 2007.08.10
이승아 로그인 관련 질문, 아니 아니 전체적으로다가!!! [1] 2007.08.10
손명수 게시판 달려고 하거든요 ;;; 고수분들 도와주세요~~~ ㅡ,.ㅡ;; [1] 2007.08.10
히스 저기 제로보드에 로그인스킨에 있는것중에서요. [1] 2007.08.10
손명수 헤더와 푸터가 모죠? ;;; [1] 2007.08.10
대굴 축소하면 화면이 깨집니다..  
김상돈 마우스오른쪽 클릭금지... [1] 2007.08.10
김선종 섬네일 생성시... 문제... [2] 2007.08.10
플로렐라 MySQL에서... [2] 2007.08.10
hanpedro [도움바람] 변수를 받지 못합니다. ㅋ - 소스첨부  
손명수 외부로그인이요... [1] 2007.08.10
히스 아래 소스좀 해석해주세요..-_-;; [1] 2007.08.10
손명수 외부 로그인 설정하는거요~~~ [2] 2007.08.10
[유아독존] htaccess 질문 하나만 받아주세요. [1] 2007.08.10
ufo220 바디에 온로드 삽입하려면? [1] 2007.08.10
이정주 APM(?)을 이용한 웹 상이 아닌 일반하드에서 제로보드 이용하기에 대해 [1] 2007.08.10
이경원 새로운창을 열어도 기존에 열었던 창에서 음악 안꺼지기?!  
강형민 [Linux] 서버에 관련된 질문입니다. [1] 2007.08.10
김걸 스크롤바 따라다니는 메뉴가 ... [5] 2007.08.10
김동철 내용좀.. 보고..;;;; [2] 2007.08.10
두개 도메인 한계정 드렉토리별 이동 방법 [1] 2007.08.10
히스 mysql_fetch_array와 mysql_fetch_row의 차이점좀..; [4] 2007.08.10
이재호 원프레임 홈페이지 만들기에 대해서 궁금합니다. [2] 2007.08.10
이현기 게시판 만들때요 답글 처리를 어떻게 해야되나요? [2] 2007.08.10
:D내나이54 사랑비 BGM 를 홈페이지에 달았는데.. 노래제목부분이 한쪽으로 내려갔어요;ㅂ; [1] 2007.08.10
송영진 Mysql 이전 및 복구에 대해 질문드립니다. [2] 2007.08.10
정용우 일러스트 그림이 자꾸 번져보여요.. [1] 2007.08.10
기억속에 쇼핑몰 구축에 대한 도움을 좀 구합니다... [1] 2007.08.10
이동신 자동계산스크립트 [4] 2007.08.10
백도 닫기. 그것은 인생 그것은 외로움..>0< [5] 2007.08.10