Desired Operation : User will fill out the html form and when press the submit button then I want to validate the user type and if it is guest then it should show a fancybox(popup) screen to sign up for that user because I dont want to save values with guest user. The code I have mentioned in the question is fine but HOW CAN I ACTIVATE THE FANCYBOX SCREEN AFTER VALIDATING THE USER.
I am trying
if($_SESSION['FIRST_NAME']=="Guest")
{
// here I want the code to show the signup.php page
print '<a id="loginframe" href="Signup.php">Sign Up here</a>';
}
How would I activate the fancybox screen coz I dont want to show the link but the activated fancybox firectly with the signup.php iframe. (fancybox is working fine)