This is a discussion on how can I add a log in form to my home page... within the osCommerce 2.2 Discussion forums, part of the osCommerce 2.2 Forums category; I use oscommerce in my web site and I'd like to add a log in option in my home page(not ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I use oscommerce in my web site and I'd like to add a log in option in my home page(not only in catalog), When I insert the "log in" form in my home page (using dream weaver mx) i can not access sucesfully using the oscommerce database, user and password ... (it looks like password is encrypted inside the data base). What can I do to read the plain, or unencrypted password???... Gracias anticipadamente ! |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| Is your form submitting to login.php? If you are using the WYSIWYG part of Dreamweaver, check to make sure it didn't throw in any extra stuff. The password is encrypted in the database. The tep_validate_password() function is used to encrypt the value entered by your users and then that is matched against your database. It sounds like your form is submitting to page without the proper code to hit against the DB although it can be a vast array of things depending on how you are putting this into your page. Look in your login.php file and you will see the code for checking the form and the way the form should be output to the user through default functions. |
|
#3
| |||
| |||
| I will check everything, now I'm reading a lot just to understand better how it works, i just want to say tanks a lot for your fast reply. |
|
#4
| |||
| |||
| Hi KainGNX, could you please explain how can I do my form submitting to login.php ??? Should I call the tep_validate_password() function from my form code??... how can i do it ? It looks so simple, but finally I've been trying for hours and hours... Gracias mil anticiadamente ! |
|
#5
| |||
| |||
| as long as your form has a action="login.php" it will submit to the login.php, but you should use tep_draw_form() function to output the start of your form. You do not have to call tep_validate_password() the login script does that for you. you code should look something like this for the login form Code: <table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="main" colspan="2"><?php echo TEXT_RETURNING_CUSTOMER; ?></td>
</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_EMAIL_ADDRESS; ?></b></td>
<td class="main"><?php echo tep_draw_input_field('email_address'); ?></td>
</tr>
<tr>
<td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td>
<td class="main"><?php echo tep_draw_password_field('password'); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td class="smallText" colspan="2"><?php echo '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>'; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></form>
|
|
#6
| |||
| |||
| Oops I forgot a very important line of code. this will start you form, put this before the code i just posted Code: <?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>
|
|
#7
| |||
| |||
| I just want to say thanks a lot KainGNX for your kindness and for your great help ! Fernando Delgado. |
|
#8
| |||
| |||
| You're welcome. |
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Product detail page as the home/main page??? | sukarya | osCommerce 2.2 Modification Help | 1 | 02-17-2006 06:21 AM |
| Catagories on the home page! | pthurmond | osCMax v1.7 General Mods Discussion | 3 | 08-01-2005 10:47 AM |
| Integrate contrib into template | home page | damnedpig | osCMax v1.7 Discussion | 2 | 07-28-2005 06:18 AM |
| Where do I edit the Home Page | emikey24 | osCommerce 2.2 Modification Help | 1 | 04-11-2005 03:38 AM |
| Make www.mydomain.co.uk the home page | Vick2004uk | osCommerce 2.2 Installation Help | 2 | 01-03-2005 04:24 PM |