Hi all,

sorry for my bad subject, I try to explain in a better way my question,
I'm using jQuery with Smarty and PHP, I've a form with username and
password fields for a simple authentication

<div id="frmLogIn">
  <form id="formLogIn" method="post" action="login.php">
    Username : <input type="text" name="username" />
    Password : <input type="password" name="password" />
    <input id="submit" type="submit" name="submit" value="Enter" />
  </form>
  <div id="responseLogIn"></div>
</div>

$('#formLogIn').ajaxForm({
   target: '#responseLogIn',
   success: function() {
     $('#responseLogIn').fadeIn('fast');
   }
});

My structure with Smarty is this

index.php -> where smarty display index.tpl (the page site)

index.tpl -> include header.tpl footer.tpl and the content
like a DIV of TopNavBar, DIV Form LogIn and other content.


In login.php I check in DB if the account exist, If the account exist,
what I want to do is return "something" (I don't know what and how) can
change my page content with another DIV (a private area of the
account), this is my idea, but the problem is: I've not idea how to do
this. Any suggest are welcome. Thanks.

--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
"It's easier to invent the future than to predict it."  -- Alan Kay

Reply via email to