yo tengo un sistema de registro en mi pagina web y loque sucede es que yo quiero que cuando este diga se a registrado correctamente se autoejecute un frame el cual lo e puesto con greybox en ajax.! quiero que me ayuden aqui les dejo todo:
codigo:
Código PHP:
<?php
include dirname(__FILE__) . "/includes/session.php";
include dirname(__FILE__) . "/templates/header.php";
include dirname(__FILE__) . "/templates/header3.php";
?>
<div class="main_box" align="center">
<div class="break"></div>
<div class="boxup"></div>
<div class="boxcenter" align="center">
<div class="info_box">
<table width="390px">
<tr>
<td align="left" style="padding-top:10px;font-size:12pt;color:#fff;font-weight:bold;">
Sign-Up
</td>
</tr>
<tr>
<td align="left" style="padding-top:10px;padding-bottom:10px;font-size:8pt;color:#000;">
Sign-up to enjoy new playlist feature and many more ..
</td>
</tr>
</table>
</div>
<!-- content area -->
<?php
if ($session->logged_in) {?><div class="error"><?
echo $lang['154'] . $session->username . $lang['155']." <a href=\"" . WEB_PATH . "\">".$lang['156']."</a>.</p>"; ?></div><?
} elseif (isset($_SESSION['regsuccess'])) {
if ($_SESSION['regsuccess']) {?><div class="error"><?
echo $lang['157'] . $_SESSION['reguname'] . $lang['158']; ?></div><?
} else {
?><div class="error"><?
echo $lang['159']." <b>".$_SESSION['error_array']."</b> ".$lang['178'];
echo "<script language=javascript>setTimeout(\"location.href='register.php'\", 5000);</script>";
?></div><?
}
unset($_SESSION['regsuccess']);
unset($_SESSION['reguname']);
unset($_SESSION['error_array']);
} else {
?>
<a href="http://callateyescucha.com/invite/sample/inviter.php" title="Invitar amigos" rel="gb_page_fs[]">Invitar amigos</a>
<div>
<form name="Register" action="<?=WEB_PATH;?>process.php" method="POST" onSubmit="return ValidateForm()">
<table border="0" width="270px">
<tr>
<td colspan="2"> </td>
</tr>
<tr>
<td class="boxtext"><?=$lang['44']?>:</td>
<td><input type="text" name="user" maxlength="30" value="<?=$form->value("user");?>" id="tbox"></td>
<td><?=$form->error("user");?></td></tr>
<tr>
<td class="boxtext"><?=$lang['45']?>:</td>
<td><input type="password" name="pass" maxlength="30" value="<? echo $form->value("pass"); ?>" id="tbox"></td>
<td><? echo $form->error("pass"); ?></td>
</tr>
<tr>
<td class="boxtext"><?=$lang['102']?>:</td>
<td><input type="text" name="email" maxlength="50" value="<?=$form->value("email");?>" id="tbox"></td>
<td><?=$form->error("email");?></td>
</tr>
<tr>
<td colspan="2"><?=recaptcha_get_html($error);?></td>
</tr>
</table></div><br />
<div class="info_box_b">
<div class="submit_button" align="center" style="padding-top:10px;">
<input type="hidden" name="subjoin" value="1">
<input type="image" value="<?=$lang['109']?>" src="<?=WEB_PATH;?>images/signup_b.png">
</div>
<div class="info_box_link" align="center"><a href="main.php"><?=$lang['175']?></a></div>
</div>
</form>
</div>
<?php } ?>
<div class="boxdown"></div>
</div>
<!-- content area -->
<?php include dirname(__FILE__) . "/templates/footer.php"; ?>
</body>
</html>
lo que quiero que se ejecute es :
Código PHP:
<a href="http://callateyescucha.com/invite/sample/inviter.php" title="Invitar amigos" rel="gb_page_fs[]">Invitar amigos</a>
que representa el siguiente codigo
Código PHP:
unset($_SESSION['regsuccess']);