Jump to content

submit doesnt work on an include


ronnie1988

Recommended Posts

Hi I am trying to incorporate a login form on my main page from WHMCS but nothing happens I did an include ('login2.php'); and in that login2.php here is the code:

 

<?php
echo date("l F jS Y ");
require("./billing/dbconnect.php");
require("./billing/includes/functions.php");
require("./billing/includes/clientareafunctions.php");
if ($_SESSION['uid']) {
  $result = mysql_query("SELECT firstname,lastname FROM tblclients WHERE id=" . $_SESSION['uid'] . "");
  $data = mysql_fetch_array ($result);
  echo "<hr/><strong>Welcome Back</strong><br>";
  echo "<strong>{$data['firstname']}</strong> ";
  echo "<strong>{$data['lastname']}</strong><br><br>";
  echo "<br><br><form method=post action=http://store.crytell.com/billing/logout.php><input type=submit class=submitbutton value=Logout /></form>";

} else  {
  echo '<form method="post" action="http://store.crytell.com/billing/dologin.php?goto=clientarea">
<input type="hidden" name="token" value="##removed##" /> 
Email Address: <input type="text" name="username" size="50"><br>
Password: <input type="password" name="password" size="20"><br>
<input type="submit" value="Login"> 
</form>';
}
?> 

when I go directly to the login script it works but when I include it in my homepage nothing happens any help?

Link to comment
https://forums.phpfreaks.com/topic/212569-submit-doesnt-work-on-an-include/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.