I want to direct my html file based on the condition given by user in the front end (i.e. in the same html file itself).
Like if user enters code 789 it should direct to a specific folder u57.php and if it user enters 783 it should direct to the folder u38.php
i wrote a code, but it doesn't work properly...
$a = 57;
$b = 38;
$residue = $_POST["residue"];
<?php if($residue == "$a") { ?>
<form method="POST" action="u57.php" enctype="multipart/form-data">
<?php } ?>
<?php if ($residue == "$b") { ?>
<form method="POST" action="u38.php" enctype="multipart/form-data">
<?php } ?>
Its directing to only the same page u57.php, if user enters 38 or any other number like 40, 45, 1 ,2 . Please tell me whats wrong with my code?