how href user after form submit? (why? form @ bottom of page, when user submits form directed top of page. need href="#kontakt" after form submit)
<button type="submit" class="btn btn-info">submit</button> <input type="hidden" name="action" value="submitform">
this might obvious someone, new html/php
use action
attribute specify url form should submit to. if need document fragment, can add there well.
here's stack snippet well, won't work due sandboxed nature of <iframe>
:
:target { background-color: yellow; }
<form action="#example" method="get"> <input type="text" name="example"> <input type="submit" value="go"> </form> <div id="example">lorem ipsum dolor sit amet</div>