Jump to content

submit doesnt work on an include


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:


echo date("l F jS Y ");
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"> 

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
Share on other sites

This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 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.