Recent content by J'sylve

  1. J

    php inheritance question?

    Here's my HW tasks: Task #1 is to create the new CHILD class by extending the class Company. Create an object from your CHILD class so we can call the methods. Task #2 Add the following properties (variables) to your PARENT class Company: $company_url which will hold the web address of your...
  2. J

    I have an easy array php question?

    I don't understand why I'm getting this incorrect for my php hw, heres the instructions: * For the array named $test_array, do just 2 things: * Assign to a variable named $the_variable the value stored in slot 4 of the array * Store the value 1027 into slot 17 of the array * You...
  3. J

    Returning HTML Strings in PHP?

    Okay well I have a hw assignment but for some reason the code I wrote isn't working (as always) Here's the instructions: Write a function named getHeader() that will be an improvement to the function display_company_name() from a previous lab. The function getHeader() will return an HTML...
  4. J

    PHP array and globals?

    For my php class hw I need to make my code do this: displayProduct() function should: 1. Display a nice headline or heading (you might make the heading the first row of the table) 2. Start an HTML table before you output the data 3. Loop through the array (passed as a parameter), and...
  5. J

    php Function Parameters question?

    Here's my hw directions: * Write an entire function named Sub_5 * It has an input parameter named $invalue, subtract 5 from the parameter $invalue * Return the calculated value (i.e. the result of the subtraction) * You do not have to call Sub_5, I will do that. This is the...
  6. J

    php if-else statement question?

    I can't figure this out from my hw here's the requirements: * Write a complete if-else statement * When the variable $a_value is less than or equal to 182, set the variable $diff_value to 28, if not set $diff_value to 104 This is what I'm placing and its says it's wrong: if (...
  7. J

    php contact form redirect after submit?

    I found this php script online and it works fine except that when it submits it resizes the window and leaves the original website. I see in the code why it resizes I just don't know how to either have the "your message has been submitted" open in a blank page or if I can redirect it to a...
Back
Top