////////////////////////////플래쉬
function init() {
System.useCodepage = true;
read(U)RL = \"http://localhost/php/checkUSER.php\";
}
function readData() {
read_lv = new LoadVars();
read_lv. = function() {
_root.id.text = this.id;
_root.nam.text = this.nam;
};
read_lv.sendAndLoad(read(U)RL, read_lv, \"POST\");
}
init();
readData();
/////////////////////////////php
<?php
session_start();
include \"dbconn.php\";
$id = $_POST[\"getid\"];
$pwd = $_POST[\"getpwd\"];
$who = $_POST[\"radio\"];
$_SESSION[\'id\']=$id;
$_SESSION[\'pwd\']=$pwd;
$_SESSION[\'who\']=$who;
$sql2=\"select name from personnel where id=\'$id\'\";
$result=mysql_query($sql2,$connect);
$name=mysql_result($result,0,name);
$id2=\"ID : $id\";
$name=\"$name 님 로그인\";
echo \"&id=$id2&nam=$name&\";
if($who == \"mst\"){
include \"dbconn.php\";
$sql =\"select * from Personnel where id=\'$id\'\";
$result = mysql_query($sql,$connect);
$result_count=mysql_num_rows($result);
mysql_close($connect);
if(!$result_count){
echo(\"<>
window.alert(\'등록되지 않은 아이디 입니다.\')
history.go(-1)
~~~~~
~~~
~~
~
///////////////////////////////////////////////
굵은글씨부분이 보내는부분인데....저거 받으면
ID :
님 로그인
이라고만나와요
부탁드립니다..알려주세요..
function init() {
System.useCodepage = true;
read(U)RL = \"http://localhost/php/checkUSER.php\";
}
function readData() {
read_lv = new LoadVars();
read_lv. = function() {
_root.id.text = this.id;
_root.nam.text = this.nam;
};
read_lv.sendAndLoad(read(U)RL, read_lv, \"POST\");
}
init();
readData();
/////////////////////////////php
<?php
session_start();
include \"dbconn.php\";
$id = $_POST[\"getid\"];
$pwd = $_POST[\"getpwd\"];
$who = $_POST[\"radio\"];
$_SESSION[\'id\']=$id;
$_SESSION[\'pwd\']=$pwd;
$_SESSION[\'who\']=$who;
$sql2=\"select name from personnel where id=\'$id\'\";
$result=mysql_query($sql2,$connect);
$name=mysql_result($result,0,name);
$id2=\"ID : $id\";
$name=\"$name 님 로그인\";
echo \"&id=$id2&nam=$name&\";
if($who == \"mst\"){
include \"dbconn.php\";
$sql =\"select * from Personnel where id=\'$id\'\";
$result = mysql_query($sql,$connect);
$result_count=mysql_num_rows($result);
mysql_close($connect);
if(!$result_count){
echo(\"<>
window.alert(\'등록되지 않은 아이디 입니다.\')
history.go(-1)
~~~~~
~~~
~~
~
///////////////////////////////////////////////
굵은글씨부분이 보내는부분인데....저거 받으면
ID :
님 로그인
이라고만나와요
부탁드립니다..알려주세요..
레퍼런스좀 봐라