Hi,
ich wollte einen html code in eine mysql dateinbank speichern...
leider hats nicht funktioniert...
wisst ihr was falsch ist?
mit phpmyadmin funktionierts problemlos
ich wollte einen html code in eine mysql dateinbank speichern...
leider hats nicht funktioniert...
Code:
<?
$id=1;
$ag='<form onsubmit="return check(this, \'game\');" method="post" action="***"><input type="hidden" value="'.$_POST["name"].'" name="loginForm_default_username"><input type="password" title="Darkorbit" style="background-image:url(fav/game.png);" class="srch" name="loginForm_default_password" id="darkorbit" onfocus="this.style.backgroundImage=\'url()\';" onfocusout="this.style.backgroundImage=\'url(fav/game.png)\';" spellcheck="false" autocomplete="off">';
mysql_query("INSERT INTO `login` (`id`, `code`) VALUES ('$id, '$ag');") or die ("fail");
?>
wisst ihr was falsch ist?
mit phpmyadmin funktionierts problemlos