forum

Home / DeveloperSection / Forums / How to Pass variable to next page in php?

How to Pass variable to next page in php?

Anonymous User 2349 30-Oct-2014
it seems pretty simple but I can't find a good way to do it.

Say in the first page I create a variable

$myVariable = "Some text";

And the form's action for that page is "Page2.php". So in Page2.php, how can I have access to that variable? I know I can do it with sessions but I think it's too much for a simple string, and I do only need to pass a simple string (a file name).

Updated on 30-Oct-2014
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By