Hi leutz könnt ihr mir sagen was daran falsch ist ?
PHP-Code:
<table>
<form action="" method="post">
<tr>
<input type="hidden" name="action" value="save">
<td>Name:</td>
<td><input type=text name=name></td>
</tr>
<tr>
<td>Email:</td>
<td><input type=TEXT name=email></td>
</tr>
<tr>
<td>Homepage:</td>
<td><input type=text name=hp></td>
</tr>
<tr>
<td>Eintrag:</td>
<td><textarea name="inhalt" rows="6" cols="25"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type=submit value="eintragen" name="GO "></td></form>
</tr>
</table>
<?php
if ($GO) {
$username = "xxxxx";
$pw = "xxxxx";
$host = "xxxxx";
$db = "xxxxx";
$table = "xxxxx";
$conn_id = mysql_connect($host,$username,$pw);
mysql_select_db($db,$conn_id);
$inhalt = $inhalt;
$name = $name;
$hp = $hp;
$email = $email;
mysql_query("INSERT INTO $table (name,email,hp,inhalt) VALUES ('$name','$email','$hp','$inhalt')");
?>
</html>
Folgender Fehler erscheint:
Code:
Parse error: parse error, unexpected $ in /usr/export/www/vhosts/funnetwork/hosting/xxxxxx/xxxxx/guestbook.php on line 145