<textarea name=message cols=45 rows=10> $_POST[typo] </textarea> Questo va messo nella pagina di destinazione vero?
Cmq in quella di invio ho provato a fare così (la inserisco tutta):
<?
include "func.inc.php";
include "header.php";
if(@is_logged_in($user_env, $pass_env, $power_env, $id_env)) {
if(isset($id) && isset($t_id) && isset($p_id)) {
$upb["def"] = "./db/p_topic";
$topic = get($p_id, "./db/$id/$t_id");
if(@$topic[user_id] == $id_env) {
@$topic[message] = undo_format2($topic[message]);
if(isset($message)) {
$message = format_field($message);
@edit($p_id, "$topic[icon]<~>$topic[subject]<~>$topic[user_name]<~>$topic[date]<~>$message<~>$topic[user_id]<~>$topic[id]", "./db/$id/$t_id", "no");
echo "Database inserito...<meta http-equiv='refresh' content='2;URL=viewtopic.php?id=$id&t_id=$t_id'>";
//////INIZIO////////
} else {
echo "<form action='editpost.php?id=$id&t_id=$t_id&p_id=$p_id' METHOD=POST>
<table width=$table_width_main cellspacing=1 cellpadding=3 border=0 bgcolor='$border' align='center'>
<tr><td colspan='2' bgcolor='$header'><font size='$font_l' face='$font_face' color='$font_color_header'>Edita Database</font></td></tr>
<tr><td bgcolor='$table1'><font size='$font_m' face='$font_face' color='$font_color_main'>Tipo File:</font></td><td bgcolor='$table1'><font size='$font_m' face='$font_face' color='$font_color_main'>
<form method="post" action="anteprimadatabase.php"><input type=radio name=typo value='Testo' CHECKED>Testo | <input type=radio name=typo value='Testo e Audio'>Testo e Audio | <input type=radio name=typo value='Testo Audio e Video'>Testo Audio e Video </font></td></tr>
<tr><td bgcolor='$table1' colspan=2><input type=submit value='Invia'></td></tr>
</table>
</form>";
}
} else {
echo "You are not authorized to edit this post.";
}
} else {
echo "Not enough information to perform this function.";
}
} else {
echo "You are not logged in, therefore unable to perform this action.";
}
?>
e ricevo questo errore
codice:
Parse error: parse error, expecting `
','' or `';'' in /membri/theblackhole/down/editdatabase.php on line 25