So working with PHP. At first I really hated it. New syntax, question marks and dollar signs in weird places, and seemingly another layer of hassle. Its like someone said english wasn't hard enough let's make code. PHP looked like code's ugly half cousin.
Good thing I don't judge on first impressions! It was a good deal of fun to play around with as soon as I got the hang of it. The annoying part being that if one little thing was wrong the entire page doesn't load. But I guess completing each section of code in order one after another made the work go a bit faster. Also using the same basic code for the Lab helped.
So start here: http://webdev.ramapo.edu/~pcoleman/PROJECT/ITEMS.html
The tables and buttons are last week's work. Now this week to get to the PHP page you click on the link that say submit an item(at the of the body section in large letters). Fill out the form and click the submit button at the bottom. The email must be of valid format otherwise it will not work. This one has a double email check so that only one address can be put in and accepted. This is actually connected to my email unlike the Lab, so please don't submit items over and over thanks lol.
From there I will get an email at my Ramapo email address telling me what you put in. At the same time you are brought to submitform.php which is where you should see success at the top. Under that lists the "thank you [name]." line. And everything else described in the lab.
Finally the new item button is at the bottom and you can start the process again.
So really not much has been modified from the Lab. The email feature is the secure version found on w3 schools. This can also be good for a "Contact Us" link. I guess thats it. If I think of or add anything more I'll just edit this post. Gnight everybody.
No comments:
Post a Comment