peacengell Posted March 7, 2009 Share Posted March 7, 2009 here i run the login page and i received error message on the line where it says do_html_heading($title); the error mean can't find the function i don't know where it is wrong if anybody done this before can let me know or send me the file so i can have a look at them and know where is the problem as i'm new to php programing thanks bye hope to get some help see you guys Listing 27.4 do_html_header()Function from output_fns.php—This Function Outputs the Standard Header That Will Appear on Each Page in the Application function do_html_header($title) { // print an HTML header ?> <html> <head> <title><?php echo $title;?></title> <style> body { font-family: Arial, Helvetica, sans-serif; font-size: 13px } li, td { font-family: Arial, Helvetica, sans-serif; font-size: 13px } hr { color: #3333cc; width=300px; text-align:left} a { color: #000000 } </style> </head> <body> <img src="bookmark.gif" alt="PHPbookmark logo" border="0" align="left" valign="bottom" height="55" width="57" /> <h1>PHPbookmark</h1> <hr /> <?php if($title) { do_html_heading($title); } } Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted March 7, 2009 Share Posted March 7, 2009 1.) You might want to try reading your code. The function you've tried to call is do_html_heading(); the function you wrote is called do_html_header() 2.) I assume you meant to call the function from outside of it. I can't imagine you want to recursively create a header. 3.) where is $title defined? function do_html_header($title) { // print an HTML header ?> <html> <head> <title><?php echo $title;?></title> <style> body { font-family: Arial, Helvetica, sans-serif; font-size: 13px } li, td { font-family: Arial, Helvetica, sans-serif; font-size: 13px } hr { color: #3333cc; width=300px; text-align:left} a { color: #000000 } </style> </head> <body> <img src="bookmark.gif" alt="PHPbookmark logo" border="0" align="left" valign="bottom" height="55" width="57" /> <h1>PHPbookmark</h1> <hr /> <?php } if($title) { do_html_header($title); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.