This is going to seem incredibly boring to about 99% of the people who read this blog, but I simply must preserve this moment in some form because it was a significant victory for me.
On my final project for my web databases class there is a feedback page where users can send me an email using a form on the page. Previously I have asked them to add their username and email addresses to specific areas of the form so that I can then send the email properly with a PHP function.
However, this poses the problem that someone can put in anything they want as a username or email address, or even pose as someone else and then flood my email inbox with a bunch of spam or other things. I needed a way to force them to only be able to type their message and then pull their username and email from the database without them being able to alter it.
So, I wrote some new functions in my PHP objects, called some different variables, etc, etc, etc.
AND GUESS WHAT!!!
IT FREAKING WORKED!!! THE FIRST TIME!!!
HUGE VICTORY... ABSOLUTELY MONUMENTOUS!!!
8 years ago