Tuesday, April 29, 2008

Secret Society PHP

With this assignment I had a lot of trouble, considering I have never used PHP before, so I had no idea how it worked. I had no problem setting up the HTML form to work. I did have difficulty figuring out how to get it to link to the php, but a friend told me that I needed to include the line < form action="society.php" method="post" > in the body, which I placed between the header and the content. When trying to work on the php, I tried looking at the handouts and at your source code from http://people.rit.edu/~jrhicsa/mymail.php, but I got totally lost trying to figure it out because everything seemed so foreign to me. I jotted down a few things mentioned in class, which helped me out, such as the lines $age = ($_POST['age']);
$name = ($_POST['name']);
Hello
and the if statements.

The hardest part was determining where things went in php (if it goes in the head or body). I am not sure as to why my php is not working correctly, since I followed most of the code that was discussed in class, but the sites can be viewed at: http://people.rit.edu/~say1534/409/society.php and http://people.rit.edu/~say1534/409/society.html.

Sunday, April 20, 2008

Midterm

For the midterm, it was difficult for me to pick just one town, seeing as though I live in between three different towns, so I just chose central Pennsylvania in general (with a focus on Turbotville, since my high school is in that town). I used greens as my color palette, because the area is rich with countryside, and I felt that the colors reflected that well (meant for any season). I also wanted to choose very simple fonts and keep it one consistent font throughout. Also, since I live in such a small area, it was hard for me to find very many pictures that suited my needs, so I just chose one picture per page, and let the greens take over for visual interest. Overall, I made it a very simple page, with simple navigation (I felt it was organized the best if I placed it vertically on the left-hand side under the title and subtitle.

When I was thinking about information, I tried thinking of what sprung to my mind when I first thought of the area in which I live. I felt that location was important, because not too many people know exactly where it is placed on the map. I wanted the home page to be an introductory page, as if a visitor to the area was reading it. Also, since my high school gives the best reference of my hometown (it's a blending of multiple townships, towns, and counties that make up the district), and the Heritage Days goes on there during the summer, I felt that it was important to include in the site. In the mindset of gearing the page toward visitors, there are many events that take place at the school (sporting events, school musical, etc.), and most people would also like to know where they could send their children to school if they were looking to move into the area. As for general information, I thought about the things that most people think about when they hear central PA (I also asked others if they felt these three factors were important, and they agreed): Historical preservation, countryside landscape and Little League World Series. These three things are the backbone of what draws visitors to the area. Lastly, I included contact information. If a visitor was to really look at this website, he/she would probably like to know where they can find more information about the area. I also just included the validation stickers on the home page, because I felt it would be redundant to put it on them all (because they were all validated).

The site can be found at: http://people.rit.edu/~say1534/409/midterm.

Tuesday, April 1, 2008

Poem Exercise

After choosing a poem on bartelby.com, I decided to play around with different features of a table to put the poem in order. I made the actual poem separate from writer and title information with the use of rows and cells. I also added a background image, which I tried to match the color of for the poem's information text. Then I picked a color that would compliment it well for a background. I wanted to choose another color for the actual poem, and decided to center the table to make things look nice. I made all of the font Georgia, and added some spacing/border around the poem's cell to add to the overall appearance. I didn't have too much trouble with it, other than adding an image. I tried playing around with two different techniques on how to add a background image, and chose one that I liked the best to use. (The other way was to add it in the body tag as background). I didn't have a hard time trying to validate things either this time.

Something that I had picked up from the Textile site provided by the assignment was a superscript, which I hadn't known was available through HTML. I also wanted to use the blockquote, but afterwards decided that things looked better centered (while still keeping the blockquote). Overall, these new HTML techniques were simple to figure out and use.

My site can be viewed at Week 4: Poem or there is a link to it from my homepage.

I also created a new one, including more CSS, which can be viewed at New Poem. With this one, I added the image as the back of the actual poem, and took out the tables from the previous example. I also tried to play around with some different techniques of padding and such. Both sites are almost the same, except for one has a table and the other uses more CSS. If you go to both, you can see what kind of a difference there is.