Tuesday, April 29, 2008
PHP Understood!
Monday, April 28, 2008
PHP hates me
$age and $name are from the form page but it's strange that the first line of code won't even show on the screen even though there's no arguments to make it not work. I'm flabbergasted by this new and strange language, I looked up multiple tutorials on http://www.tizag.com/phpT/forms.php including:
forms and php
if statements
Overall I have failed at PHP and it's frustrating because it does not seem a very difficult structured language like Action-Script 3.0 which I already know.
$age = $_POST['age'];
$name = $_POST['name'];
echo "Congratulations".$name" you have passed the first test";
if ($age == "0-18")
{
echo "You are too young to be a member!";
}
if ($age == "18-65")
{
echo "Pay your standard dues!!";
}
if ($age == "65+")
{
echo "You get a 10% discount!";
}
?>
Sunday, April 6, 2008
CSS Poem format
During this in class I realized the importance of background images.I googled image serached "city aerial" to get the background image. At first I tried to have two seperate images, one for the city and one for the transparent box to house the text in. But instead by taking the photo into photohsop I was able to adjust the image and mask it to give it to the desired look and feel.
I also had trouble thinking that in CSS language I thought font-family was an attribute for css language. I looked up CSS font formatting at http://www.w3.org/TR/REC-CSS1#color, and found that it was the color that was the attribute I was looking for. This improved the legibility dramatically.
I also had trouble centering my main division. I again referenced the internet and found http://www.w3.org/TR/REC-CSS1#margin and found that I had to implement "margin:auto" to properly center the image even on scalign of the window.
«I also found the html validator insides dreamweaver was an excellent tool or validating my webpage.
It was a lesson in the importance of properly implementing background images.
The poem can be found here: CSS Formateed Poem