Heey allemaal!
Ik ben bezig met een chatboxscript, maar op de een of andere manier zet ie de gegevens niet in de database...
Dit is chatbox.php:
Alvast bedankt voor jullie hulp!
Gr.
Jos
Edit: Code aangepast.
Ik ben bezig met een chatboxscript, maar op de een of andere manier zet ie de gegevens niet in de database...
Dit is chatbox.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Chatbox</title>
</head>
<body>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]"config.php"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$mysql[/COLOR] [COLOR= #007700]= ([/COLOR][COLOR= #DD0000]"INSERT_INTO
chatbox
VALUES
(
name,
bericht
)
"[/COLOR][COLOR= #007700]);[/COLOR]
[COLOR= #0000BB]$mysql_insert[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$mysql[/COLOR][COLOR= #007700]);[/COLOR]
?>
<form action="chatbox.php" method="post">
<table border="0">
<tr>
<th></th>
<td><input type="text" name="naam" value="Naam"></td>
</tr>
<tr>
<th></th>
<td><textarea type="text" name="bericht" maxlength="150" rows="5" cols="45">Typ hier je bericht van maximaal 150 woorden.</textarea></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" naam="Verstuur"></td>
</tr>
</table>
</form>
</body>
</html> Alvast bedankt voor jullie hulp!
Gr.
Jos

Edit: Code aangepast.



hij is bezig met scripten neem ik aan en alles wordt verbeterd en als je iemand wilt afkraken doe het dan via pm en onderbouw je reactie gewoon
)
