To make the program easier to maintain, let's put the code for this function in a separate file. Let's call that file ActivityEntryForm.php3 and let's call this function Activity_Entry_Form( ). Here is the beginning of the function code.
Now we need to add the echo statement.
That's all for now, save your file as ActivityEntryForm.php3. Now we need to go back to our original ActivityEntry.php3 file and make some changes. Remember that we need to remove the echo statement and replace it with the function call for the Activity_Entry_Form( ) function. We also need to add a require_once statement to include the ActivityEntryForm.php3 file. Here is the finished changes to the ActivityEntry.php3 file.
← Back | |||