I’m building a simple note taking app. In order to switch between notes (for example, under the subject “chemistry” from the note “covalent bonding” to “valence electrons”) I want to link the page to itself and change some of the php variables so when it loads it displays a different note. I was thinking using a post method but I don’t know how to integrate that with a link.
Share
You want to use GET, not post:
Would probably be the simplest way. You can grab this with:
Then you could use that variable to get a specific note from whatever you’re storing the notes in (ie
SELECT ID, TEXT FROM NOTES WHERE ID = '$noteNumber') in MySQL.