---> cmau her kommer mit script!
--------add_receiver.php----------------->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"
http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>::.Velkommen til gamezine.dk.:: konsol, spil,anmeldelser, nyheder - gamer`s community</title>
<link rel="stylesheet" type="text/css" href="default.css" media="screen,projection" title="Default" />
<script type="text/javascript">
var divs = ['menu','content'];
function syncronizeDivs(){
var maxH = 0;
d = document.getElementsByTagName("DIV");
for(i=0;d.length>i;i++){
for(j=0;divs.length>j;j++){
if(d[i].id==divs[j])maxH = Math.max(maxH,d[i].offsetHeight);
}
}
for(i=0;d.length>i;i++){
for(j=0;divs.length>j;j++){
if(d[i].id==divs[j])d[i].style.height=maxH + 'px';
}
}
}
</script>
</head>
<body onload="syncronizeDivs()">
<div class="bodywrap">
<div id="banner">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="635" height="125">
<param name="movie" value="banner.swf">
<param name="quality" value="high">
<embed src="banner.swf" quality="high" pluginspage="
http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="635" height="125"></embed>
</object>
</div><br/>
<div id="menu">
<table width="100%" height="36" align="center"><th id="myHeader">login</th><tr>
<td><input name="brugernavn" type="text" size="12" maxlength="12">
</td>
</tr></table>
<table align="center" width="100%">
<th id="myHeader">password</th><tr>
<td> </td>
</tr></tr>
</table><br/>
<table width="100%" height="36" align="center" ><th id="myHeader">Nyhedsbrev</th><tr><td><form action="add_reciever.php" method="post">
<label>Din mailadresse:</label>
<input type="text" name="res_email">
<input type="submit" name="submit" value="Tilmeld mig"></td></tr>
</table>
</form>
</div>
<div id="content"><?php
$link = mysql_connect('localhost', 'foxmulder58', 'firewalker');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
mysql_select_db("foxmulder58",$link);
mysql_query("INSERT INTO newz_reciever VALUES ('".$_POST['res_email']."')",$link);
mysql_close($link)
?>
</div>
</div>
</body>
</html>
-----------------------------> script slut!
mvh
Mads