Search results

  1. C

    PHP and HTML programming?

    Ok i created a html file: <html> <head> <title>html form</title> </head> <body bgcolor=yellow> <hr /> <form action="myphp.php" method="GET"> <b>Type your name here: </b> <input type="text" name="namestring" size=50> <p/><b>Talk about yourself here: </b><br /> <textarea name="comments"...
  2. C

    PHP and HTML programming?

    I have a html file, that i want to write a php file to display a picture that i have saved on my c drive. Like if they select Monet and hit submit i want my php file to display the picture of his painting. How do i do that? here is my html: <html> <head> <title>Gallery</title> </head> <body...
  3. C

    PHP subst() function?

    Using this string: " mary jones lives in santa cruz, california at 22 ocean drive." I need to use the subst() function to print "santa cruz, california" making the first letter of each word capitalized. Here is what i used: echo substr ( " mary jones lives in santa cruz, california at 22...
  4. C

    PHP functions strings please help?

    I need to create this string: $string " mary jones lives in santa cruz, california at 22 ocean drive." i then need to find the number of characters in the string and capitalize all the letter in the string. how do i do this? are there built in functions to do this
  5. C

    php and html web programming?

    I need to write a web page that calculates the total area of a floor that needs to be tiled, and if its over 1000 square feet then they get a 5% discount. I then need to tell the customer the totla area of their floor and their name on the response page. I have to have a php file and an html...
  6. C

    PHP program, how does this work?

    Given the values of $a=10, $b=3, $c=7, and $d=20, print the value of $result: $result = ( $a >= $b ) && ( $c < $d ); $result = ( $a < $b ) || ( $c <= $d ); $result = $a % $b; I dont even know what this question is asking me. if you know please tell me or if you know the answer thats helpfull...
  7. C

    PHP program, what would this program print?

    $a = 15; $b = 4; $c = 25.0; $d = 3.0; echo 4 + $c / 4 * $d, "\n"; echo $a / $d * $a + $c, "\n"; echo $b + $c, $b, $c, "\n"; echo $c = = $d, "\n"; echo $a = = = 15, "\n";
  8. C

    PHP script containing HTML and PHP code?

    ok so i have to write a PHP script with HTML and PHP code and i need a little help. i have to make the background light blue. and then use three styles of comments to include my name the date and the number of the lab exercise. so how do i make the backgound light blue? and use the three...
Back
Top