srinivasa Posted March 25, 2010 Report Share Posted March 25, 2010 Here i have attached a file named myAge.php ,basically am reading age from a form ,once i submit the form(just age field is there to fill out) its showing blank page!! give me solution please.... in that session.php(last box is the age form) myAge.php sessions.php Quote Link to comment Share on other sites More sharing options...
falkencreative Posted March 25, 2010 Report Share Posted March 25, 2010 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 Quote Link to comment Share on other sites More sharing options...
srinivasa Posted March 25, 2010 Author Report Share Posted March 25, 2010 thanks ya..that comment line i deleted,but real problem was i missed </form> tag in (username and password form)sessions.php so i rectified the error, and got the desired result........ 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.
Note: Your post will require moderator approval before it will be visible.