I want to know if you can take a value from a form(input type ='text' etc.) and store it in a variable without submitting the form.
The form is on the client's side, and PHP on the server. So in some way the value needs to get there if you want to work with it. But this is not possible without submitting the form. Unless you want to use AJAX.