$price = FALSE;
        echo '<script>alert("need price")</script>';
    }
    if (strlen($_POST['rental']) > 0) {
        $rental_period = $_POST['rental'];
    } else {
        $rental_period = FALSE;
        echo '<script>alert("need rental_period")</script>';
    }
    if (strlen($_POST['status']) > 0) {
        $status = $_POST['status'];
    } else {
        $status = FALSE;
        echo '<script>alert("need status")</script>';
    }
    $form = new dvd('null', $title, $genre, $description, $price, $rental_period, $status);
    $form->connect("video_rental", "localhost", "root", "");
    $form->insert();
}
?>
      </div>
      <footer>&copyJaypee Bautista&trade;</footer>
    </div>
  </div>
  <div class="col-sm-1 col-mid-2 col-lg-3">
  </div>
  <!-- Bootstrap core JavaScript
  ================================================== -->
  <script>
   // $('#pdffile').change(function(){
   //    $('#subfile').val($(this).val());
Beispiel #2
0
<?php

require 'Soporte.php';
require 'Dvd.php';
$midvd = new dvd('El Padrino', 25, 5, 'Espanol-ingles-frances', '4:3 y 16:9');
$midvd->imprime_caracteristicas();