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.

No comments: