Jump to content

age display


srinivasa

Recommended Posts

Two comments:

 

-- You had an incorrect comment ("*/") at the end of the myAge file that may have been causing an error (which caused a blank screen if your server is setup so it doesn't show errors)

 

-- You can't use "header("Location file.php")" after you have already sent HTML code to be displayed in the browser:

 

<html>
<head>
<style type=text/css>
body{
margin-top:230px;
margin-left:150px;
margin-right:150px; 
background-color:d6ffeb;
font-size:35px;
color:red;
}
</style>
</head>
<body>

 

You can get around this error by removing this code and inserting it in a different way (through an echo statement in a function, for example) or by using ob_start() and ob_end_flush(). http://php.net/manual/en/function.ob-start.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...