iframe in a widget
-
I am trying to create a login widget for a different program in the same root directory, here’s the iframe source file code:
<?php include('functions.php'); include('config.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Login</title> </head> <?php if(isset($_POST['submit'])){ $fname = trim($_POST['firstname']); $lname = trim($_POST['lastname']); $email = trim($_POST['email']); $_SESSION['userfname'] = $fname; $_SESSION['userlname'] = $lname; $_SESSION['useremail'] = $email; unset($_SESSION['timer']); header('location: videoplaypage.php'); exit; } ?> <body style="margin:0;padding:0;background-color:#FFFFFF"> <div class="boxform" style="float:left;width:200px"> <form name="login" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <input type="text" name="firstname" value="Enter Registered First Name Here..." onfocus="if(this.value=='Enter Registered First Name Here...')this.value='';" class="tbx" /> <input type="text" name="lastname" value="Enter Registered Last Name Here..." onfocus="if(this.value=='Enter Registered Last Name Here...')this.value='';" class="tbx" /> <input type="text" name="email" value="Enter Registered Email Here..." onfocus="if(this.value=='Enter Registered Email Here...')this.value='';" class="tbx" /> <input type="image" value="Submit" src="images/ajoinnow.gif" alt="Join" style="margin-top:5px; margin-bottom:5px;border:none;" /> <input type="hidden" name="submit" value="Submit" /> </form> </div> </body> </html>
The problem is with the line “header(‘location: videoplaypage.php’);”
It loads the page in the iframe and I want it to either load in a new window or replace the window.
Any tricks for this?
Steve
- The topic ‘iframe in a widget’ is closed to new replies.