Jump to content

tarnold4

New Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by tarnold4

  1. I have a script i was playing with below. I want to edit it using the setcookie() function to set a cookie with the random image script, using the $_COOKIE array, i want to be able to read the cookie if its available. Finally i want to create a test condition where a new random index is selected if the user has previously viewed the image and the cookie is available. I would love to know how to do this <html> <head> <title>JFQ Turnings</title> </head> <body bgcolor="#ffffff" text="#000000"> <img src="jfqturnings.gif" alt="JFQ Turnings, coming soon." width="864" height="100"> <br /><img src="<?php echo getRandomImage(); ?>" alt="" width="864" height="567"> <?php echo getRandomImage(); function getRandomImage() { $images = array("candlestick.jpg", "rollingpin.jpg", "table.jpg", "table2.jpg"); $random = rand(0, 3); return $images[$random]; } ?> </body> </html>
  2. I am trying my shot at creating a webpage by myself and I wanna create a submit form, with a submit button. I want all the information below to be in the submit form.... Help would be wonderful Last Name (last, text) First Name (first, text) Street Address 1 (street1, text) Street Address 2 (street2, text) City (city, text) State (state, text) Zip (zip, text) Phone (phone, text) Fax (fax, text) Email (email, text) Verify Email (verify_email, text) How did you find us? (marketing, select) 1. Mailing 2. Phonebook 3. Search Engine 4. Phone Call 5. Word of mouth 6. Other Type of request (request_type, radio) Quote Information Request Quote/Request (request, textarea)
  3. I just wanna thank everyone for their help, but i finally got it working. I was so wrapped up in the code and not realizing.... I forgot to save the images in the same folder... DUH
  4. I thought that to but, its fine.
  5. This is what i came up with, the whole thing is supposed to randomly show a different image everytime the webpage is loaded. When i test it, all it does is pretty much shows the title, but no image <html> <head> <title>JFQ Turnings</title> </head> <body bgcolor="#ffffff" text="#000000"> <img src="jfqturnings.gif" alt="JFQ Turnings, coming soon." width="864" height="100"> <br /><img src="<?php echo getRandomImage(); ?>" alt="" width="864" height="567"> <?php echo getRandomImage(); function getRandomImage() { $images = array("candlestick.jpg", "rollingpin.jpg", "table.jpg", "table2.jpg"); $random = rand(0, 3); return $images[$random]; } ?> </body> </html>
  6. Im very new to php, I wanted to see if anyone could help me with the following. I have to take a function, along with the count function, to randomly select one of the array values. Use the return keyword to return this value and end the function. The value returned should be one of the provided file names.
  7. tarnold4

    HTML help

    Thank you so much to both
  8. tarnold4

    HTML help

    I have this recipe below, i wanna make it into HTML format, i was told that i would have to add html tags to each part of the recipe, but not all the same..... any help would be great Apple Bavarian Torte (4 stars) A classic European torte baked in a springform pan. Cream cheese, sliced almonds, and apples make this the perfect holiday treat (12 servings). INGREDIENTS 1/2 cup butter 1/3 cup white sugar 1/4 teaspoon vanilla extract 1 cup all-purpose flour 1 (8 ounce) package cream cheese 1/4 cup white sugar 1 egg 1/2 teaspoon vanilla extract 6 apples - peeled, cored, and sliced 1/3 cup white sugar 1/2 teaspoon ground cinnamon 1/4 cup sliced almonds DIRECTIONS Preheat oven to 450 degrees F (230 degrees C). Cream together butter, sugar, vanilla, and flour. Press crust mixture into the flat bottom of a 9-inch springform pan. Set aside. In a medium bowl, blend cream cheese and sugar. Beat in egg and vanilla. Pour cheese mixture over crust. Toss apples with sugar and cinnamon. Spread apple mixture over all. Bake for 10 minutes. Reduce heat to 400 degrees F (200 degrees C) and continue baking for 25 minutes. Sprinkle almonds over top of torte. Continue baking until lightly browned. Cool before removing from pan. REVIEWS 4 stars I loved the buttery taste of the crust which complements the apples very nicely. Reviewed on Sep. 22, 2014 by MMASON. 2 stars Nothing special. I like the crust, but there was a little too much of it for my taste, and I liked the filling but there was too little of it. I thought the crunchy apples combined with the sliced almonds detracted from the overall flavor. Reviewed on Sep. 1, 2014 by GLENDACHEF. 5 stars Delicious!! I recommend microwaving the apples for 3 minutes before baking, to soften them. Great dessert - I'll be making it again for the holidays. Reviewed on August 28, 2014 by BBABS.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.