View Single Post
Old Oct 28th, 2005, 4:23 PM   #5
jstephens
Newbie
 
Join Date: Oct 2005
Posts: 12
Rep Power: 0 jstephens is on a distinguished road
So can you place your functions into a seperate page and use an include? All the examples in the book show poor usage of them. I am looking for an actual real world Example of how and when to use them. One of the examples in the book is as follows:

function page_Header($color) {
print "<html><head><title>Welcome to My Site </title></head>";
print "<body bgcolor = " . ' $color ' . ">";
}

This is typed into the same web page as the call to the function. So how would I use this over again.
jstephens is offline   Reply With Quote