T
T
trenrnd2015-11-19 22:25:56
PHP
trenrnd, 2015-11-19 22:25:56

How to pass the received $_POST value through the page?

Hello. I can't solve the problem. There is a website with roughly three pages on it. The first page has several inputs with different values. I pass this value to the second page successfully. From the second page, you need to transfer both the previous value (from the first page) and the current value from the inputs from page 2 to page 3. I summarize: on the third page there should be value from the first page and from the second. Specifically, I don’t understand how to transfer the received value from the first page to the third? I am using the POST method. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2015-11-19
@trenrnd

If there is little data - <input type="hidden" ... >, if there is a lot - session.

W
wellgo, 2015-11-19
@wellgo

When moving to a new page, array_merge the old $_POST with the new $_POST array. You can store (the most obvious):
If you need exactly native $_POST - then curl (but this is a perversion, in my opinion).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question