Hi,
This is my first post in these forums so just tell me if I do or say anything wrong :)
I was going along developing my site in Aptana Studio 3 and I was previewing the pages. On the register page of my site there is a snippet of PHP code before the <!DOCTYPE> declaration of the page. For some reason, just a little bit of that code displays when previewing, but none of the actual page content appears. This is the snippet is:
<?php
require_once("/include/membersite_config.php");
if(isset($_POST['submitted']))
{
if($fgmembersite->RegisterUser())
{
$fgmembersite->RedirectToURL("thank-you.html");
}
}
?>
And this is what appears when previewing through firefox:
RegisterUser()) { $fgmembersite->RedirectToURL("thank-you.html"); } } ?>
Just that and a white background.
Any Ideas why? Is it a problem the PHP server being configured incorrectly? Or a problem with the code?
Kind Regards,
Amar