I have a WAnchor to another page, which changes the internal path. I also have a function internalPathChange()
that reacts to internalPathChanged()
and that calls the right function depending on the internal path.
How can I use POST to give values from the first page to the second page?
You should work with widgets. Wt doesn't known the concept of post and different html pages.
A great example can be found here in the file HangmanGame.C. You create your own widgets, and in the constructor of those widgets you specify which values you need. Then they use a
Wt::WStackedWidget
for displaying only the new "page".They use following code:
So in this example the
HighScoresWidget
andHangmanWidget
are the "pages" to which you want to post values.