Nieuw lid |
|
Hallo lezers,
ik heb een probleem met data uit de database halen. De kans is GROOOOT dat er een fout in m'n script zit
Alvast hartelijk bedankt!
// contact.php
<?php
include("include.php");
head();
if(!session_is_registered('memberid')){
echo"U moet ingelogd zijn om contact met ons op te nemen!";
}
if(!$_GET['submit'])
{
?>
<form action='contact2.php' method=post>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: x-small;
}
.style1 {
font-size: medium;
font-weight: bold;
}
.style2 {font-size: small}
.style4 {font-size: 9px}
-->
</style>
<div align="center">
<table width="449" border="0">
<tr valign="middle">
<td width="131"> </td>
<td width="308">Mails over "mag ik credits?" beantwoorden wij niet en je kan gereset/gedelete worden. Hetzelfde geld voor spammen. (één keer versturen dus!) </td>
</tr>
<tr valign="middle">
<td><pre>Naam:</pre></td>
<td><input name=name type=text id="name"></td>
</tr>
<tr valign="middle">
<td><div align="left" class="style2">
<pre>Gebruikersnaam:</pre>
</div></td>
<td><input name=nick type=text id="nick" value="<?=.$username. ?>" disabled></td>
</tr>
<tr valign="middle">
<td><div align="left" class="style2">
<pre>E-mail:</pre>
</div></td>
<td><input name=email type=text value="<?=.$email. ?>" disabled></td>
</tr>
<tr valign="middle">
<td><pre>Bericht:</pre></td>
<td><textarea name="weapon" id="weapon"></textarea></td>
</tr>
<tr valign="middle">
<td> </td>
<td><input name="submit" type=submit id="submit" value=Verstuur> </td>
</tr>
<tr valign="middle">
<td> </td>
<td> </td>
</tr>
<tr valign="middle">
<td> </td>
<td>Jouw IP is: <?=.$_SERVER['REMOTE_ADDR'].?></td>
</tr>
</table>
</div>
// contact.php <?php include("include.php"); head(); echo"U moet ingelogd zijn om contact met ons op te nemen!"; } if(!$_GET['submit']) { ?> <form action='contact2.php' method=post> <style type="text/css"> <!-- body,td,th { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: x-small; } .style1 { font-size: medium; font-weight: bold; } .style2 {font-size: small} .style4 {font-size: 9px} --> </style> <div align="center"> <table width="449" border="0"> <tr valign="middle"> <td width="131"> </td> <td width="308">Mails over "mag ik credits?" beantwoorden wij niet en je kan gereset/gedelete worden. Hetzelfde geld voor spammen. (één keer versturen dus!) </td> </tr> <tr valign="middle"> <td><pre>Naam:</pre></td> <td><input name=name type=text id="name"></td> </tr> <tr valign="middle"> <td><div align="left" class="style2"> <pre>Gebruikersnaam:</pre> </div></td> <td><input name=nick type=text id="nick" value="<?=.$username. ?>" disabled></td> </tr> <tr valign="middle"> <td><div align="left" class="style2"> <pre>E-mail:</pre> </div></td> <td><input name=email type=text value="<?=.$email. ?>" disabled></td> </tr> <tr valign="middle"> <td><pre>Bericht:</pre></td> <td><textarea name="weapon" id="weapon"></textarea></td> </tr> <tr valign="middle"> <td> </td> <td><input name="submit" type=submit id="submit" value=Verstuur> </td> </tr> <tr valign="middle"> <td> </td> <td> </td> </tr> <tr valign="middle"> <td> </td> <td>Jouw IP is: <?=.$_SERVER['REMOTE_ADDR'].?></td> </tr> </table> </div>
//contact2.php
<?php
include("include.php");
head();
if ($submit) {
mail("ricovalentijn@gmail.com","competition-signup","Naam: ".$_POST['name']."\n Nickname: ".$_POST['nick']." \n E-mail: ".$_POST['email']."\n\n \n IP: ".$_SERVER['REMOTE_ADDR']."","From: ".$_POST['email']."");
echo "Mail verzonden, Wij zullen zo snel mogelijk antwoord geven.";
}
?>
//contact2.php <?php include("include.php"); head(); if ($submit) { mail("ricovalentijn@gmail.com","competition-signup","Naam: ".$_POST['name']."\n Nickname: ".$_POST['nick']." \n E-mail: ".$_POST['email']."\n\n \n IP: ".$_SERVER['REMOTE_ADDR']."","From: ".$_POST['email'].""); echo "Mail verzonden, Wij zullen zo snel mogelijk antwoord geven."; } ?>
//include.php
<head><STYLE TYPE="text/css">
td{
font-size:9pt;
}
body{
background:#FFFFFF;
color:#000000;
font-size:8pt;
font-family:verdana;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
A: Link {font-family:Verdana;color:#FFFFFF;font-size:9pt;font-weight:normal;font-style:normal;background:#000000;text-decoration:none;}
A: Active {font-family:Verdana;color:#FFFFFF;font-size:9pt;font-weight:normal;font-style:normal;background:#000000;text-decoration:none;}
A: Hover {font-family:Verdana;color:#FFFFFF;font-size:9pt;font-weight:normal;font-style:normal;background:#000000;text-decoration:none;}
A: Visited {font-family:Verdana;color:#FFFFFF;font-size:9pt;font-weight:normal;font-style:normal;background:#000000;text-decoration:none;}
</STYLE><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head>
<?
$gb = "ffff"; //gebruikersnaam admin
$ww = "ffff"; //Wachtwoord admin
$wapenprijs = "0,01";
$refprijs = "0,05";
$mysql_server = "localhost";//mysql server
$mysql_pass = "ffff";//wachtwoord
$mysql_login = "ffff";//gebruikersnaam
$mysql_database = "ffff";//database
$mysql_conn = mysql_connect ("$mysql_server", "$mysql_login", "$mysql_pass");
mysql_select_db("$mysql_database");
?>
<font face="Verdana" size="2">
<?
function head() {
?>
<html>
<head>
<title>[Dutchleader dealer]</title>
</head>
<body bgcolor="#000000" link="#000000" vlink="#000000" alink="#000000" style="color: #000000; background-color: #FFFFFF">
<div align="center"><img src="header.png"><br>
<br>
<?
echo "<a href=\"index.php?id=$_GET[id]\">Begin</a> - ";
echo "<a href=\"aanmelden.php?id=$_GET[id]\">Aanmelden</a> - ";
echo "<a href=\"inloggen.php?id=$_GET[id]\">Inloggen</a> - ";
echo "<a href=\"uitloggen.php?id=$_GET[id]\">Uitloggen</a> - ";
echo "<a href=\"stats.php?id=$_GET[id]\">Stats</a> - ";
echo "<a href=\"top100.php?id=$_GET[id]\">Top100</a> - ";
echo "<a href=\"regels.php?id=$_GET[id]\">Regels</a> - ";
echo "<a href=\"prijzen.php?id=$_GET[id]\">Prijzen</a> - ";
echo "<a href=\"extra.php?id=$_GET[id]\">Extra geld</a>";
echo "<br><br>";
}
function foot() {
?>
<br>
<br>
</font> <br>
<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" src="http://www.dutchleader.com/php/banex/view.php?id=indounit"></script>
</div>
</body>
</html>
<?PHP
mysql_close();
}
//include.php <head><STYLE TYPE="text/css"> td{ font-size:9pt; } body{ background:#FFFFFF; color:#000000; font-size:8pt; font-family:verdana; margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } A: Link {font-family:Verdana;color:#FFFFFF;font-size:9pt;font-weight:normal;font-style:normal;background:#000000;text-decoration:none;} A: Active {font-family:Verdana;color:#FFFFFF;font-size:9pt;font-weight:normal;font-style:normal;background:#000000;text-decoration:none;} A: Hover {font-family:Verdana;color:#FFFFFF;font-size:9pt;font-weight:normal;font-style:normal;background:#000000;text-decoration:none;} A: Visited {font-family:Verdana;color:#FFFFFF;font-size:9pt;font-weight:normal;font-style:normal;background:#000000;text-decoration:none;} </STYLE><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></head> <? $gb = "ffff"; //gebruikersnaam admin $ww = "ffff"; //Wachtwoord admin $wapenprijs = "0,01"; $refprijs = "0,05"; $mysql_server = "localhost";//mysql server $mysql_pass = "ffff";//wachtwoord $mysql_login = "ffff";//gebruikersnaam $mysql_database = "ffff";//database $mysql_conn = mysql_connect ("$mysql_server", "$mysql_login", "$mysql_pass"); ?> <font face="Verdana" size="2"> <? function head() { ?> <html> <head> <title>[Dutchleader dealer]</title> </head> <body bgcolor="#000000" link="#000000" vlink="#000000" alink="#000000" style="color: #000000; background-color: #FFFFFF"> <div align="center"><img src="header.png"><br> <br> <? echo "<a href=\"index.php?id=$_GET[id]\">Begin</a> - "; echo "<a href=\"aanmelden.php?id=$_GET[id]\">Aanmelden</a> - "; echo "<a href=\"inloggen.php?id=$_GET[id]\">Inloggen</a> - "; echo "<a href=\"uitloggen.php?id=$_GET[id]\">Uitloggen</a> - "; echo "<a href=\"stats.php?id=$_GET[id]\">Stats</a> - "; echo "<a href=\"top100.php?id=$_GET[id]\">Top100</a> - "; echo "<a href=\"regels.php?id=$_GET[id]\">Regels</a> - "; echo "<a href=\"prijzen.php?id=$_GET[id]\">Prijzen</a> - "; echo "<a href=\"extra.php?id=$_GET[id]\">Extra geld</a>"; } function foot() { ?> <br> <br> </font> <br> <SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript" src="http://www.dutchleader.com/php/banex/view.php?id=indounit"></script> </div> </body> </html> <?PHP }
ik heb even "ffff" ipv. mijn wachtwoorden en usernames gedaan, en dat is wel logisch denk ik.
ik hoop dat iemmand mij kan helpen,
Bye , Rico..
|