I had this working and have now done something to break it. I have a link for people that forget their password. It links to a page that calls a do_forgot_form() function.
The function is defined in a file that is included with a require_once command. For some reason it is tossing the following error:
Fatal error: Call to undefined function: do_forgot_form() in /home/omgma/public_html/Fresh_start/forgot_form.php5 on line 32
The file that calls the function is as follows:
<?php
require_once('includes/member_fns.php5');
//call functions to generate standard page elements
do_html_header($pgtitle );
$padding ="220px"; //<<< set the bottom padding of the maincontent area
do_main_div($padding);
$main_div = <<<EOT
<h2>$pgtitle</h2>
EOT;
echo $main_div;
//THIS IS WHERE I AM HAVING PROBLEM
do_forgot_form();
do_html_footer();
?>
The function is defined in output_fns.php5 which was included in the member_fns.php5:
//---------------------------------------------------------------------------
// function to display the forgot form
//---------------------------------------------------------------------------
function do_forgot_form()
{
// heredoc to put the info in $forgot_form
$forgot_form = <<<EOT
<div id='user'>
<form method='post' action='forgot_passwd.php5'>
<p>Enter your username:<input type='text' name='username' size=16 maxlength=16></p>
<p>This will reset your password. A new password will be emailed to you.</p>
<p><input id='send' type='submit' value='Change Password'></p>
</form>
</div>
EOT;
//closed the heredoc, now echo to browser
echo $forgot_form;
}
Any ideas what is a muck? 😕