HTML URL button with variables

I really need some help. As you can see under in the code, I have a receiver, sender and a message for my site. When I click the button on the page it enters the page and sends the message to the receiver I enter in the URL. So what I want it to do: I want it to get the receiver, sender and message from the form into my URL. I have tried with PHP variables and JavaScript variables, but I can't get it to work.


Reciever: <input type="text" name="rcv" /><br><br>

Sender: <input type="text" name="snd" /><br><br>

Message: <input type="text" name="msg" /><br><br>

   <a id="mybutton" href="" title="link to">
   <button>Send Message</button>


change <form> to

<form method="GET" action="">

The get will append the name and value of your fields into the url. You should always use the method and action attributes of the form.

Need Your Help

pre-flight OPTIONS request for CORS

javascript angularjs node.js cors

I use a middle call cors like this in development