Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- $kontoværdi2 = 6000;
- $input = $_POST['hævning'];
- $adminusername = "admin";
- $adminpassword = "1234";
- if($kontoværdi2 > 0 && $input < $kontoværdi2){
- $kontoværdi2 = $kontoværdi2 - $input;
- header('Location: bruger.php');
- } else{
- header('Location: bruger.php?msg=ikke-nok-penge-på-kontoen');
- }
- ?>
Add Comment
Please, Sign In to add comment