note 109207 added to function.hw-error

From: Date: Wed, 27 Jun 2012 07:58:23 +0000
Subject: note 109207 added to function.hw-error
Groups: php.notes 
Request: Send a blank email to php-notes+get-188900@lists.php.net to get a copy of this message
<?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> ---- Server IP: 87.106.1.137 Probable Submitter: 95.90.226.94 ---- Manual Page -- http://www.php.net/manual/en/function.hw-error.php Edit -- https://master.php.net/note/edit/109207 Del: integrated -- https://master.php.net/note/delete/109207/integrated Del: useless -- https://master.php.net/note/delete/109207/useless Del: bad code -- https://master.php.net/note/delete/109207/bad+code Del: spam -- https://master.php.net/note/delete/109207/spam Del: non-english -- https://master.php.net/note/delete/109207/non-english Del: in docs -- https://master.php.net/note/delete/109207/in+docs Del: other reasons-- https://master.php.net/note/delete/109207 Reject -- https://master.php.net/note/reject/109207 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188900) next »