Discuss Preventing repetition of a Form in the PHP Development forum on Dev Shed. Preventing repetition of a Form PHP Development forum discussing coding practices, tips on PHP, and other PHP-related topics. PHP is an open source scripting language that has taken the web development industry by storm.
Time spent in forums: 1 Year 2 Weeks 3 Days 8 h 22 m 27 sec
Reputation Power: 581
Yes. You need to set up a Session and set a variable to determine if the form has been previously displayed or not. Keep in mind that PHP is stateless. Once it ends it knows nothing about what it may have previously done.