Codice PHP:
<?php require_once ("../includes/db.inc.php"); require_once ("../includes/authenticate.inc.php"); require_once ("../includes/funzioni.inc.php"); session_start(); sessionAuthenticate("index.php"); //collegamento database $connection = mysql_connect($hostName, $username, $password); mysql_select_db($databaseName, $connection); ?> <!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> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="../css/stili_video.css" rel="stylesheet" type="text/css" /> <link href="../css/stili_form.css" rel="stylesheet" type="text/css" /> <link href="../css/stili_liste.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="content"> <div id="main_content"> <?php include("menu.php");?> <?php showMessage(); ?> <h2>Inserisci domanda</h2> <div id="lista"><form method="post" action="validate.php">
[b]Categoria:[/b]
<?php $query = "SELECT * FROM categorie ORDER BY categoria ASC "; $result = mysql_query($query, $connection) or die(mysql_error()); while($row=mysql_fetch_array($result)) { $nome_categoria = $row["categoria"]; $id_categoria = $row["id_cat"]; echo "<input type=\"radio\" name=\"categoria\" value=\"$id_categoria\">$nome_categoria"; } ?>
[b]Domanda:[/b]
<textarea name="domanda" cols="80" rows="5" id="domanda"></textarea>
[b]Corretta:[/b]
<textarea name="opt1" cols="80" rows="3"></textarea>
[b]Sbagliata 1:[/b]
<textarea name="opt2" cols="80" rows="3"></textarea>
[b]Sbagliata 2:[/b]
<textarea name="opt3" cols="80" rows="3"></textarea>
[b]Sbagliata 3:[/b]
<textarea name="opt4" cols="80" rows="3"></textarea>
[b]Sbagliata 4:[/b]
<textarea name="opt5" cols="80" rows="3"></textarea>
<input type="Submit" name="submit" value="Inserisci domanda"> </p> </form></div> </div>
<div id="footer"> Copyright © 2009 </div> </div> </body> </html>
Ciao ho scaricato TinyMCE ora lo voglio mettere nella textbox domanda
cosa devo modificare?