Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Frage
#3
Also am besten machst du eine HTML Datei:
Name: index.html oder index.htm spielt keine rolle
Code:
Code:
<html>
<head>
</head>
<body>
<form action="seite2.php" method="post">
Ihr Vorname:<br>
<input type="Text" name="vorname">
<input name="button" type="Submit" value="Absenden">
</form>
</body>
</html>
______________________________
Danach noch eine PHP Datei:
Name: seite2.php
Code:
PHP Code:
<?php
if (isset($_POST["button"]))
{
  
$vorname $_POST["vorname"];
  echo 
$vorname;
}
?>

(19.02.2010, 19:55)SlimShady95 Wrote: Öhm. Ich vermute mal du hast es nicht auf einem virtuellem Server (zB xampp) laufen, sonder es einfach mit Internet Explorer aufgemacht.

Das Script stimmt nämlich.

MfG Manuel

Wenn man es nich aufem Xampp laufen lassen würde, würde im IE die PHP Datei als Download kommen.

Das Script stimmt schon aber hab ihm mal ne bessere Variante gegeben

Edit: Hab Quote entfernt
✝ RiP 
Weiter geht's  Cool
Reply


Messages In This Thread
Frage - by _toon-link_ - 19.02.2010, 19:54
RE: Frage - by SlimShady95 - 19.02.2010, 19:55
RE: Frage - by Milu2K - 19.02.2010, 19:57
RE: Frage - by SlimShady95 - 19.02.2010, 20:03
RE: Frage - by _toon-link_ - 19.02.2010, 20:09
RE: Frage - by SlimShady95 - 19.02.2010, 20:12
RE: Frage - by _toon-link_ - 19.02.2010, 20:19
RE: Frage - by Milu2K - 19.02.2010, 20:22
RE: Frage - by Black Arrow - 19.02.2010, 20:22
RE: Frage - by _toon-link_ - 19.02.2010, 20:26



Users browsing this thread: 1 Guest(s)