Welcome! Log In Create A New Profile


Topic 3A

Posted by Dorac 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Topic 3A
July 09, 2008 11:26PM
I know i'm speeding through these topics, but i have learn't 90% of this material before so its easy cake for me tongue sticking out smiley
Re: Topic 3A
July 11, 2008 05:30PM
Know the fealing Dorac, Completed no issues

Craig G Smith
Re: Topic 3A
July 20, 2008 11:13AM
Topic 3A completed

Gareth van Zyl
Anonymous User
Re: Topic 3A
July 20, 2008 01:05PM
Guy I really love PHP, I have done JavaScript, Java you named them but PHP is really cspinning smiley sticking its tongue outgrinning smileyl. Topic3A done.

Re: Topic 3A
July 28, 2008 03:10PM
Hi Guys

I just want to confirm if my function.php is correct


$title = "Calculating the purchase price";
include ("header.php"winking smiley;
function total ($price, $items)
$cost = $price * $items;
return $cost;

echo "The total price of your purchase is $" . $cost;
include ("footer.php"winking smiley;

<form method='GET' action='function.php'>
How much does the book cost?
<input name='price' TYPE='text'>
How many copies of the book are you purchasing?
<input name='items' TYPE='text'>
<input type=submit>

Ryan Harris
Re: Topic 3A
July 30, 2008 06:44AM
What happens when you run it?
eye popping smiley Re: Re: Topic 3A problem
July 30, 2008 01:51PM
Hi Mac get this on my web page after completing the function.php

$title = "Calculating the purchase price ",include ("header.php"winking smiley;The total price of your purchase is $eye popping smiley

Home|Author |Subjects|Best Sellers|My Account

How much does the book cost ?
How many copies of the book are you purchasing ?

Ryan Harris
smoking smiley Re: Topic 3A
July 30, 2008 04:04PM
smoking smileyHi Mac I found the problem thank

I complete with Topic 3A


Ryan Harris
Anonymous User
Re: Topic 3A
July 31, 2008 11:52AM
Topic 3A is now history
Anonymous User
Re: Topic 3A
August 07, 2008 04:11PM
Nice to learn more about PHPthumbs up

Topic 3A completed, looking like it should do...

Re: Topic 3A
August 17, 2008 01:54PM
Good Day,

TOPIC 3A is complete.

To use Includes on a site is awesome.
I have been using it for some time now and makes life much easier

Kind Regards

Justin Leaf-Wright


hot smiley
Re: Topic 3A
September 08, 2008 02:38PM
Re: Topic 3A
October 01, 2008 09:28PM
3A completed. i agree with justin, includes are very handy!
Sorry, only registered users may post in this forum.

Click here to login