PUG
PUG

Reputation: 4472

$POST array not showing anything on echo

I have 3 php pages, A, B, C. $POST array has all fields in it when i am accessing page A's fields in page B, but when i try to access page A fields in page C it doesnt show anything? but page B's fields do come on page C. A is posting to B, B is posting to C.

Appreciate any help.

Upvotes: 0

Views: 171

Answers (1)

Kaivosukeltaja
Kaivosukeltaja

Reputation: 15735

$_POST fields are only available on the page that the form is posted to. If you want to pass them on to another page, you'll have to either store them in $_SESSION or add them on page B as hidden fields.

Upvotes: 3

Related Questions