<form action="/get_post.php" method='post'> <input type='hidden' name='test.t' value='test'> <input type='submit' value='Отправить'> </form> 

get_post.php

 <?php echo "test->".$_POST[test.t]; ?> 

Why then get_post.php does not issue, does not respond. I can not figure out what the problem is?

    2 answers 2

    PHP automatically translates the character '.' in the name of the variable obtained through POST or GET in the character '_'. So you can get the value in the script like this

      <?php echo "test->".$_POST['test_t']; ?> 
    • Ale_x, thank you very much. now everything works. - Vanguard
    • Not at all;) - Ale_x

    Try $_POST['test.t'] Ie associative index quotes.

    • I forgot to write $_POST['test.t'] . E me in the form the way it is. Just here when in <input type='hidden' name='test.t' value='test'> and $_POST[test.t] point. Everything works fine. Here the problem is at the point. And I want to write with a dot. How to do it? - Vanguard