Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login box help!


Isiah

Recommended Posts

Posted

I integrated a login box in the header of my site right now its basically useless its got the two forms for user name and password and a submit button but it doesn't work for instance if you try to login in the box my site does nothing it doesn't load or take you to another page so i figure im missing some coding for this to be able to connect and actually be able to log someone in. My code is below if anyone knows how to fix it please let me know what i have to do thanks!

 

 

 

<!--

--------------------------------------------------------------------

Login Anywhere 1.0 by Skeedo.com Enterprises [email protected]

Released under GNU General Public License for use with OSCommerce

--------------------------------------------------------------------

-->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>

<HEAD>

<META NAME="Generator" CONTENT="EditPlus">

<META NAME="Author" CONTENT="">

<META NAME="Keywords" CONTENT="">

<META NAME="Description" CONTENT="">

</HEAD>

 

<BODY>

 

<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0" border="0" style="height:5px; background:url(images/2_bg.gif) repeat-x top" class="infoBoxContents">

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main" colspan="2"><b><?php echo ("Customers Login"); ?><b></td>

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '10%', '10'); ?></td>

</tr>

<tr>

<td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b><?php echo tep_draw_separator('pixel_trans.gif', '3%', '1'); ?>

<?php echo tep_draw_input_field('email_address'); ?>

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<tr>

<td class="main"><b><?php echo ENTRY_PASSWORD; ?></b><?php echo tep_draw_separator('pixel_trans.gif', '12%', '10'); ?>

 

<?php echo tep_draw_password_field('password'); ?>

</tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

 

<tr>

<td>

<?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?>

</td>

</tr>

<tr>

<tr>

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>

</tr>

<td class="smallText" colspan="2" align="middle"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . ("Forgot Password") . '</a>'; ?></td>

</tr>

 

</table>

</BODY>

</HTML>

Posted

A typical FORM has the following structure -

<form action="WHICH FILE WOULD PROCESS VALUES" name="HOW DO I RECOGNIZE THIS FORM"  method="GET OR POST">
//--whatever comes here 
<INPUT TYPE=TEXT NAME="1" VALUE="1">
<INPUT TYPE=TEXT NAME="2" VALUE="2">
<input type="SUBMIT" name="SUBMIT" value="LOGIN">
//whatever else is required on the page... 
</form>

 

Code posted by you doesn't define the FORM (open and close) and thus no action takes place.

 

The question posted here is more to do with basic HTML - and no relevance to OSC.

Best Regards,
Gaurav

Posted

Have a look at some of the contributions that already do this and alter the codes to fit your requirements

REMEMBER BACKUP, BACKUP AND BACKUP

Archived

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

×
×
  • Create New...