note 109207 deleted from function.hw-error by danbrown
| From: | danbrown@php.net | Date: | Wed, 27 Jun 2012 16:37:02 +0000 |
| Subject: | note 109207 deleted from function.hw-error by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-188933@lists.php.net to get a copy of this message | ||
Note Submitter: max dot mueller dot 65 at gmx dot de
----
<?php
session_start();
class Buchung {
public $code;
public $datum;
public $name;
public $kreditartennummer;
public $bemerkung;
};
?>
<body>
<?php
print_r($_SESSION);
echo "<br>";
foreach( $_SESSION as $key => $value){
$b= $_SESSION[$key];
echo "<br><hr>";
foreach( $b as $keys => $values){
echo "<p>".$key." - ".$keys." ".$values;
}
}
?>
</body>
</html>
<?php
$fluege = array("LH1336" => "Frankfurt/Main nach Budapest",
"LH1154" => "Frankfurt/Main nach Palma De Mallorca",
"LH402" => "Frankfurt/Main nach New York", "LH408" =>
"Dí²í³¥ldorf nach New York");
?>
<form action="bestelluebersicht.php" method="post">
<select name="fluege">
<?php
foreach ($fluege as $key => $val){
echo '<option value="'.$key.'">'.$key."
".$val.'</option>';
}
?>
</select><br />
Datum:<input type="date" name="date"><br>
Name:<input type="text" name="name"/><br>
Kreditkarte:<input type="text" name="kk"/><br/>
Betreff:<textarea name='text'>
</textarea><br />
<input type="submit" name="submit">
</form>
<?php
include("date.class.php");
session_start();
print_r($_POST);
echo "<br>";
if(isset($_POST['submit'])){
$_SESSION[session_id()] = new Date();
$_SESSION[session_id()]->date=$_POST['datum'];
$_SESSION[session_id()]->starttime=$_POST['startzeit'];
$_SESSION[session_id()]->endtime=$_POST['endzeit'];
$_SESSION[session_id()]->subject=$_POST['betreff'];
$_SESSION[session_id()]->description=$_POST['text'];
echo "<br";
print_r($_SESSION);
header ("Location: display.php");
}
?>
<body>
<?php
class Rechteck {
private $laenge,$breite;
function __construct($l,$b){
$this->breite=$b;
$this->laenge=$l;
}
public function getLaenge(){
return $this->laenge;
}
public function getBreite(){
return $this->breite;
}
public function getUmfang(){
return 2*($this->breite+$this->laenge);
}
public function getDiagonale(){
return sqrt($this->breite*$this->breite+$this->laenge*$this->laenge);
}
}
class Quadrat extends Rechteck{
function __construct($l){
parent::__construct($l, $l);
}
function getDiagonale(){
return $this->laenge*sqrt(2);
}
}
?>
</body>
</html>