0

When i click the submit button the php doc will be downloaded and not executed. Why ?

<section class="u-clearfix u-section-1" id="sec-f8d1">
  <style>
    body {
      background-image: url('C:/xampp/htdocs/Kulinarik/Kulinarik/images/Login_Hintergrund.jpg');
      background-repeat: no-repeat;
      background-attachment: fixed;
      background-size: 100% 100%;
    }
    </style>
  <div class="u-clearfix u-sheet u-sheet-1">
      <form action="ldap.php" method="POST">
        <input type="text" name="username" /><br>
        <input type="password" name="password" /><br>
        <input type="submit" value="Login" href="ldap.php"/>
      </form>
  </div>
</section>
Setzi138
  • 11
  • 4
  • 2
    If the response from the server includes the PHP code then the server isn't configured to *run* that PHP code. (Note also that your `background-image` value is highly suspect. If you're just opening this from the file system and not from a web server then that would certainly explain why the web server isn't running the PHP code...) – David Oct 05 '21 at 11:52
  • I'm assuming you are browsing incorrectly from `file:///C:/xampp/htdocs/Kulinarik/index.html` or something like that instead of `http://localhost/Kulinarik/index.html`... – CherryDT Oct 05 '21 at 11:55
  • no I'm running this on xampp – Setzi138 Oct 05 '21 at 11:57

0 Answers0