Thread: Adding a Link
View Single Post
Old 09-23-2006, 06:43 AM   #6 (permalink)
ELJ
Registered User
 
Join Date: Sep 2006
Posts: 5
ELJ is on a distinguished road
Adding a Link

Here is the script for the page...I know there must be something missing...I'm just not sure I wrote this correctly...I'm not sure I wrote the variable correctly...thanks for the help!
PHP Code:
<form action="{loginURL}" method="POST" name="login_form">
<
input IF="!target=#login#" type="hidden" name="returnUrl" value="{url}"/>
<
table cellpadding="2" cellspacing="0" border="0">
<
tr>
    <
td>
        <
FONT class="SidebarItems">E-mail</FONT><br>
        <
input type="text" name="login" value="{login:r}" size="20" maxlength="128"><br>
        <
FONT class="SidebarItems">Password</FONT><br>
        <
input type="password" name="password" value="" size="20" maxlength="128"><br>
        <
input type="hidden" name="target" value="login">
        <
input type="hidden" name="action" value="login">
    </
td>
</
tr>
<
tr>
    <
td>
        <
a href="javascript: document.login_form.submit()" class="SidebarItems"><input type="image" src="http://codenewbie.com/forum/images/go.gif" width="13" height="13" border="0" align="absmiddle"Submit</a><br>
        <
a href="cart.php?target=profile&mode=register" class="SidebarItems"><img src="http://codenewbie.com/forum/images/go.gif" width="13" height="13" border="0" align="absmiddle"Register</a>
    </
td>


<
form action="{prev URL}" method="LINK" name="login_form">
<
input IF="!target=#login#" type="hidden" name="Prev Url" value="Return to Page I was viewing"/>
<
table cellpadding="2" cellspacing="0" border="0">
<
tr>

 <
td>
        <
FONT class="SidebarItems">E-mail</FONT><br>
        <
input type="text" name="login" value="{login:r}" size="20" maxlength="128"><br>
        <
FONT class="SidebarItems">Password</FONT><br>
        <
input type="password" name="password" value="" size="20" maxlength="128"><br>
        <
input type="hidden" name="target" value="login">
        <
input type="hidden" name="action" value="login">
    </
td>
   </
tr>
<
tr>
    <
td>
     <
a href="cart.php?target=prev page><Return to Page I was viewing></a>
<a href="
javascriptdocument.login_form.submit()" class="SidebarItems"><input type="image" src="http://codenewbie.com/forum/images/go.gif" width="13" height="13" border="0" align="absmiddle"> Returm to Page I was viewing</a><br>
        
<a href="cart.php?target=profile&mode=register" class="SidebarItems"><img src="http://codenewbie.com/forum/images/go.gif" width="13" height="13" border="0" align="absmiddle"Register</a>
    </
td>
</
tr>
</
table>
</
form

Last edited by redhead; 09-23-2006 at 07:59 AM.
ELJ is offline   Reply With Quote