Search code examples
htmltags

HTML:IT redirects me to the same file not to Inscription.html


as i said in the question this is my problem with redirecting to a file in my computer

<a href="../html/inscription.html">
        <input type="submit" class="button-2" value="Inscription">
        </a>

Solution

  • You don't need to put a link around your submit button anymore, you have the form's action attribute for that. Your code should be like:

    <form action="inscription.html" method="post">
        <!-- Put the other inputs here -->
        <input type="submit" class="button-2" value="Inscription">
    </form>