So I want to create a simple result page that lets users download their results using the given code.
This is the script:
<form action="" method="post" >
    <input type="text" name="logincode">
    <input type="submit" name="send">
</form>
<?php
    $name = $_POST['logincode'];
    $filename = $name.'/'.$name.'pdf';  
    header('Location: ./'$filename'');
?>The principle is when the user writes into the input field, for example (1234) and hits enter, it should redirect him to:
./1234/1234.pdf
I don't know where the mistake is in my code.
 
     
     
     
     
    