php - add a href to a functional submit button -


how can let submit button open link @ same page, @ same time button submits input php file? here code reference:

<form id="input" action="archive.php" method="get">             <textarea rows="3" cols="10" name="content" id="content" class="txt" placeholder="blah blah..." required></textarea>     <input type="submit" id="submit"/> </form> 

in archive.php, redirect browser new location. can use header() that.

header('location: http://www.url.com'); 

this way, processing run in archive.php , @ same time, user see arrives @ url specified.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -