php - how to get value from a form before submit -


i want values form before action redirect it. example in form, want grab "text_one" , send database before redirected google. want "text_one" in google too.what should do?

<form method="post" action="google.com">    <input type="text" name="text_one">    <input type="submit">  </form>

try ...

<form method="post" onsubmit="return getdata()" action="google.com">   <input type="text" name="text_one" id="text_one">   <input type="submit"> </form> <script> function getdata(){       var txtone = document.getelementbyid('text_one').value;       //  } </script> 

Comments

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -