how to save a post in the variable on the same page

-1

I have a number field in my page and I want to get it and send the value typed in it on the same page as I can get the value typed in it on the same page without using jquery or javascript I want to get the value of it by php I need to get this value and immediately go on the same page how can I do this?

    
asked by anonymous 13.11.2015 / 18:14

1 answer

0

You can use it this way:

<?php

if(isset($_POST['variavel'])){
    $variavel = $_POST['variavel'];
}
    
13.11.2015 / 18:18