Advertisement

09.03.2008 at 11:03AM PDT, ID: 23700199 | Points: 50
[x]
Attachment Details

how can i reload current page from within a smarty template

Asked by blastcast in WebApplications, Programming User Management

Tags: , ,

i would like to be able to reload the current page on login, no matter what page the user is currently on..Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
<form method="post" action="http://thegreennova.com/index.php" />
	Username:<br/>
    <input type="text" name="uname"/><br/><br/>
    Password:<br/>
    <input type="password" name="pwd"/><br/><br/>
    Remember me? <input type="checkbox" name="remember" value="1" /><br/><br/>
    <input type="submit" value="login" />
</form>
 
I THOUGHT THAT IT SHOULD BE SOMETHING LIKE THIS BUT I GET AN ERROR
 
<form method="post" action="{$_SERVER['PHP_SELF']}" />
	Username:<br/>
    <input type="text" name="uname"/><br/><br/>
    Password:<br/>
    <input type="password" name="pwd"/><br/><br/>
    Remember me? <input type="checkbox" name="remember" value="1" /><br/><br/>
    <input type="submit" value="login" />
</form>
[+][-]09.03.2008 at 12:13PM PDT, ID: 22380826

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.03.2008 at 01:53PM PDT, ID: 22381863

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628