<?php function formularz($mod="add", $komunikat="Dodaj", $title="", $tresc="", $no="", $obrazek="brak"){ $return.= "Treść:<table><tr><td><textarea name=\"body\" style=\"width:700px; height:350px;\" tabindex=\"2\">$tresc</textarea><br><br></td></tr></table> <table width=600><tr> <td align=center valign=middle width=300><input type=submit name=formularz value=\"$komunikat\" style=\"width:100px\" tabindex=\"4\"></td> <td align=right valign=middle width=300><form method=post action=podglad.php target=\"_blank\"><input type=submit value=Podgląd style=width:100px tabindex=3></form></td> </tr> </table>"; return("$return"); } ?>
Problem właśnie polega na tym, że nie mogę zrobić tak aby Podgląd przechodził do tego pliku podglad.php, działa wg tego $mod=add. Czy jest to możliwe, aby dodać ten przycisk? Koniecznie w function formularz