Ich hab des jetzt nämlich bei mehreren seiten gemacht und mein server liest aber nur die php teile, den htmlcode wo zb. Tabellen angelegt sind ignoriert er!
- Code: Select all
<?php
require "../includes/config_publications.inc.php";
require "../includes/functions.main.php";
//check_login();
print_header("Beitrag erfassen");
if (! $nextstep || $nextstep == "1") {
if ($errorbutton) {
foreach ($_POST as $key => $value) {
$$key = stripslashes($value);
}
}
$o_categories = options_categories($c_cat_id);
?>
<form method="POST" name="CCform" enctype="multipart/form-data">
<input type="hidden" name="nextstep" value="2">
<table border="0" cellpadding="0" cellspacing="0" width="85%">
<tr>
<td valign="top" align="left" style="background: #ffffff">
<table border="0" cellpadding="1" cellspacing="2">
<tr>
<th valign="middle" align="right">Kategorie</th>
<td valign="middle" align="left"><select name="c_cat_id">
<?php echo $o_categories;?>
</select></td>
</tr><tr>
<th valign="middle" align="right">Titel</th>
<td valign="middle" align="left"><input
type="text" name="title" value="<?php echo $title;?>" size="50"></td>
</tr><tr>
<th valign="middle" align="right">Datum</th>
<td valign="middle" align="left"><input
type="text" name="publication" value="<?php echo $publication;?>" size="50"></td>
</tr><tr>
<th valign="middle" align="right">Ort</th>
<td valign="middle" align="left"><input
type="text" name="p_place" value="<?php echo $p_place;?>" size="50"></td>
</tr><tr>
<th valign="middle" align="right">Author</th>
<td valign="middle" align="left"><input
type="text" name="author" value="<?php echo $author;?>" size="50"></td>
</tr><tr>
<th valign="top" align="right">Status</th>
<td valign="top" align="left"><input type="radio" name="c_status" value="active" <?php echo($c_status<>"hold")?"checked":"";?>> <?php echo $o_status['active'];?>
<input type="radio" name="c_status" value="hold" <?php echo ($c_status=="hold")?"checked":"";?>> <?php echo $o_status['hold'];?></td>
</tr><tr>
<th valign="top" align="right" colspan="2"> </td>
</tr><tr>
<th valign="top" align="right"> </th>
<td valign="top" align="center"><input
type="reset" value="Zurücksetzen" onclick="return confirm('Formular leeren?')">
<input
type="submit" name="submit" value="Speichern"></td>
</tr>
</table>
</td>
<td valign="middle" align="right" style="background: #ffffff"></td>
</tr>
</table>
</form>
<?php
} else if ($nextstep == "2") {
print "<p><b>Lege neuen Beitrag an</b><br>";
unset($error);
require ("$p_includes/functions.inputcheck.php");
$c_timestamp = time();
$error .= check_value($c_cat_id, "Kategorie");
$error .= check_value($title, "Titel");
if (! empty($error)) {
$HTTP_POST_VARS[nextstep] = 1;
print_form_error($error);
} else {
$db = $dbn_c;
require ("$p_includes/record_add.php");
print "<p><b>Vorgang abgeschlossen!</b></p>";
}
}
print_footer();
?>
lg KB