Test
<?php
print ”<p style=’height: 700px;’>”;
session_start();
$session = current($_SESSION);
$user = $session[’user’];
$id = $user->id;
mysql_connect(”mysql246.loopia.se”,”sfpe_b_se@s36567″,”yacVirk3″);
mysql_select_db(”sfpe_biv_se_db_1”);
$sessionId = md5(time() + rand() + $id);
$sql = ”INSERT INTO `bm_sessions` (`session`, `memberId`,`created`) VALUES (’$sessionId’, ’$id’,UNIX_TIMESTAMP())”;
mysql_query($sql);
print mysql_error();
print ’<iframe id=”blockrandom”
name=”iframe”
src=”http://medlem.sfpe-biv.se/external/member-form?session=’.$sessionId.’&memberId=’.$id.'”
style=”overflow: hidden; height: 700px; width: 100%; position: absolute;”
height=”700px”
width=”100%”
scrolling=”auto”
align=”top”
frameborder=”0″
>
Detta val kommer inte att fungera korrekt. Din webbläsare stödjer tyvärr inte IFRAMES.</iframe></p>’;
?>