Jump to content

IFRAME and $_GET


lordphate

Recommended Posts

okay, here's what i'm attempting to do

I'm using flashchat and the easiest way to "integrate" it into my site is to use an IFRAME instead of manually editing a lot of files.

 

So I want to have the flashchat read the url and this is the things i'musing so far

 

                        $clb_id = $_GET["clb_id"];
$query = "SELECT id FROM flashchat_rooms WHERE cld_id=".$clb_id;
IF( $clb_id == "0" ) { $chatroom = '1'; } else {
$chatroom = $GLOBALS["DB"]->execute($query);
    }
		if($this->userid = ChatServer::login($login, $password, array('ip' => $bot_id))) {
			if($lang) $this->lang = $lang;
			if($tzoffset) $this->tzoffset = $tzoffset;
			$ar = $this->getAvailableRoom($chatroom);
			$this->roomid = $roomid? $roomid : $ar['id'];
			$this->room_is_permanent = $ar['ispermanent'] != '';
			$this->start = $this->sendLoginInfo();

 

 

 

And no matter if i try to put clb_id=292908 in the URL it still will act like it's returning 0 (or $chatroom = 1)

Link to comment
https://forums.phpfreaks.com/topic/52139-iframe-and-_get/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.