DieterWeber
Mitglied
PHP:
if ($type==newlink) {
if (!($neueintrag)) {
include ("design2.php");
echo $br;
echo $topboxtable;
echo $conbox2bb;
echo ("<form action=\"tactics.php?type=newlink\" method=\"post\" name=\"eintragung\">");
echo ("<div style=\"text-align:right\">");
echo ("<b>Demolink adden</b>:<br>Link (mit http://): <input type=\"text\" name=\"content\" size=\"40\">");
echo ("<br>Linktitel (zB \"CT Mouz vs Mtw\"): <input type=\"text\" name=\"topic\" size=\"40\">");
echo ("<br><br>Demobeschreibung: <br><textarea name=\"desc\" cols=\"40\" rows=\"8\" wrap=\"hard\"></textarea><br>");
echo ("<input type=\"hidden\" name=\"poster\" value=\"$user_eingeloggt\">");
echo ("<input type=\"hidden\" name=\"type\" value=\"1\">");
echo ("<input type=\"hidden\" name=\"mapid\" value=\"$mapid\"></div>");
echo ("<input type=\"submit\" name=\"neueintrag\" value=\"abschicken\"></form>");
echo $td;
echo $tr;
echo $table;
} else {
$MAname = idToMap($mapid,connID);
$insertin = "INSERT INTO '$MAname' (content, topic, desc, poster, type) VALUES ('$content', '$topic', '$desc', '$poster', '$type')";
mysql_query($insertin) or die("Error: " . mysql_error());
echo ("<meta http-equiv=\"Refresh\" content=\"1; url=tactics.php?type=map&id=$mapid\">");
echo ("<p style=\"text-align:center\"><b>Sie werden weitergeleitet...</b></p>");
}
}