html/php

Alles, was PHP betrifft, kann hier besprochen werden.

html/php

Postby Bastl1801 » 31. August 2006 07:44

Ich hab mal eine Frage muss ich etwas spezielles machen wenn ich einen html-code in ein php script einbaue????
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">&nbsp;</td>
        </tr><tr>
         <th valign="top" align="right">&nbsp;</th>
         <td valign="top" align="center"><input
            type="reset" value="Zur&uuml;cksetzen" onclick="return confirm('Formular leeren?')">
            &nbsp; &nbsp; &nbsp; &nbsp;<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
Bastl1801
 
Posts: 18
Joined: 18. August 2006 10:40

Postby Flominator » 31. August 2006 12:07

sollte eigenlich so funktionieren
Lust auf Kommunikation?
Meinung über Musik vorhanden?
Text nicht verstanden?
Songtexte gesucht?

Dann besucht uns in der Songtexte-Community:
http://www.ramselehof.de/songtexte
User avatar
Flominator
 
Posts: 50
Joined: 30. August 2004 13:59
Location: Hinterzarten


Return to PHP

Who is online

Users browsing this forum: No registered users and 43 guests