I've realized I should host my copyright text on my website. And since I take photos, some clients may wish to alter the copyright per an agreement. So, on the generic copyright page I wish to have a form input box where they can type their agreement number and the details of their copyright get displayed on page.
I plan to keep the agreements in a .txt file (.php if need be) with the name of the agreement number. So retrieval should be trivial. Though, I'm a guy with hardly any PHP knowledge.
Would a simple $_POST['var'] and $_GET['var'] work? I've never used _POST but I'm familiar with _GET. So, would _POST send the variable to the URL or save it to a global variable? On form submit I'd likely reload the page and fetch the custom agreement. If no agreement number is present I'd display the generic copyright, I should be able to figure the IF ELSE though.
In wraps, how does $_POST work and would the variable stay set if I reload the page or would I need a global variable? Does the global variable reset once they leave the site?
I plan to keep the agreements in a .txt file (.php if need be) with the name of the agreement number. So retrieval should be trivial. Though, I'm a guy with hardly any PHP knowledge.
Would a simple $_POST['var'] and $_GET['var'] work? I've never used _POST but I'm familiar with _GET. So, would _POST send the variable to the URL or save it to a global variable? On form submit I'd likely reload the page and fetch the custom agreement. If no agreement number is present I'd display the generic copyright, I should be able to figure the IF ELSE though.
In wraps, how does $_POST work and would the variable stay set if I reload the page or would I need a global variable? Does the global variable reset once they leave the site?