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 4 Months 5 Days 23 h 52 m 22 sec
Reputation Power: 590
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.