| | | | |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |||
| Gast
Beiträge: n/a
| Zitat:
| ||
| | |
| Gast
Beiträge: n/a
| Vielen Dank für Eure Antworten, sorry für den 1. Text, nun ein Blick in die Glaskugel: Code: /* datei site_1.php */
<?php
session_start();
?>
<html>
<head>
<title>Formular</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<form name="Eingaben" method="POST" action="site_2.php">
<input type="text" name="wert1" value=<?php if (isset($wert1)) echo $wert1; ?>>
<input type="text" name="wert2" value=<?php if (isset($wert2)) echo $wert2; ?>>
<input type="submit" name="test1" value="Weiter">
</form>
<?php
echo "
Wert1: ".$wert1.", Wert2: ".$wert2."
";
session_unregister("wert1");
session_unregister("wert2");
?>
</body>
</html>
/* datei site_2.php */
<?php
foreach ($_POST as $key=>$elem)
{
$var[$key]=$elem;
session_register($key);
echo $key.". var=".$var[$key]."
";
}
echo "
Wert1: ".$_POST['wert1'].", Wert2: ".$_POST['wert2']."
";
?>
<html>
<head>
<title>Auswertung</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<form name="Back" method="POST" action="site_1.php">
<input type="submit" name="test" value="Zurück">
</form>
</body>
</html>
Grüße Michael |
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| \r\n\ und das Formularfeld? | BartTheDevil89 | PHP Tipps 2007 | 5 | 15.04.2007 20:36 |
| Zeilenumnruch in Formularfeld | Canni | PHP Tipps 2006 | 5 | 06.11.2006 17:23 |
| Unsichtbares Formularfeld mit Javascript ansprechen | mAy^daY | HTML, Usability und Barrierefreiheit | 6 | 13.08.2006 21:25 |
| Farbauswahl mit Farbcodes in Formularfeld? | BartTheDevil89 | HTML, Usability und Barrierefreiheit | 16 | 10.08.2006 19:09 |
| Formularfeld - leider mit wenig Angaben | ruferp | PHP Tipps 2006 | 6 | 25.04.2006 11:55 |
| JavaScript: If -Abfrage ob formularfeld selektiert ist | HTML, Usability und Barrierefreiheit | 4 | 31.12.2005 13:42 | |
| unveränderbares formularfeld?! | HTML, Usability und Barrierefreiheit | 3 | 14.03.2005 14:59 | |
| Formularfeld | PHP Tipps 2005 | 4 | 14.02.2005 21:51 | |
| mal ne ganz doofe frage: formularfeld sofort aktiv? | Promaetheus | HTML, Usability und Barrierefreiheit | 3 | 11.12.2004 14:53 |
| formularfeld in eine Datenbanktabelle eintragen | PHP Tipps 2004-2 | 15 | 30.11.2004 16:02 | |
| Variable wird in Formularfeld nicht richtig dargestellt | PHP Tipps 2004 | 5 | 21.09.2004 16:35 | |
| Formularfeld prüfen | PHP Tipps 2004 | 5 | 25.08.2004 22:06 | |
| Formularfeld sperren | PHP Tipps 2004 | 2 | 24.08.2004 14:42 | |
| [Erledigt] Formularfeld verschmälert, wie aber Schriftgröße verkleinert | HTML, Usability und Barrierefreiheit | 1 | 17.08.2004 21:51 | |
| Formularfeldinhalt in zweites Formularfeld übergeben | juhuwoorps | HTML, Usability und Barrierefreiheit | 2 | 22.07.2004 10:21 |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.