alleyesonme Posted December 16, 2003 Share Posted December 16, 2003 Hey guys just need a little help I have the Purchase Without Account module installed which is working fine but the customer cannot login?? $returning_customer_title = TEXT_RETURNING_CUSTOMER; $returning_customer_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\"> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . HEADING_RETURNING_CUSTOMER . "</td> </tr> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td> </tr> <tr> <td class=\"main\"> <table width=\"70%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"left\"> <tr> <td class=\"main\">" . ENTRY_EMAIL_ADDRESS . "</td> <td>" . tep_draw_input_field('email_address') . "</td> </tr> <tr> <td class=\"main\">" . ENTRY_PASSWORD . "<br><br></td> <td>" . tep_draw_password_field('password') . "<br><br></td> </tr> </table> <table width=\"30%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\"> <tr> <td align=\"center\" class=\"smalltext\">" . '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . '</a>' . "<br><br>" . '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>' . "<br><br></td> </tr> </table> </td> </tr> </table> thats the code in the PWA file which i believe is responsible for login the customer in, basically what happens is when you click the LOGIN button nothing happens at all, like its not being instructed to do anything??? any help would be grateful TIA Omar Link to comment Share on other sites More sharing options...
Guest Posted December 16, 2003 Share Posted December 16, 2003 You are missing a </form> tag at the end - look at an unmodified file. Matti Link to comment Share on other sites More sharing options...
alleyesonme Posted December 16, 2003 Author Share Posted December 16, 2003 Hi thank you for your reply, thing is when i look at an unmoddified file the layout is different so i tired adding </Form> before and after </table> but this didnt resolve the problem, heres the complete content of the file <td> <?php <CENTER> //BOF: MaxiDVD Returning Customer Info SECTION //=========================================================== $returning_customer_title = TEXT_RETURNING_CUSTOMER; $returning_customer_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\"> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . HEADING_RETURNING_CUSTOMER . "</td> </tr> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td> </tr> <tr> <td class=\"main\"> <table width=\"70%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"left\"> <tr> <td class=\"main\">" . ENTRY_EMAIL_ADDRESS . "</td> <td>" . tep_draw_input_field('email_address') . "</td> </tr> <tr> <td class=\"main\">" . ENTRY_PASSWORD . "<br><br></td> <td>" . tep_draw_password_field('password') . "<br><br></td> </tr> </table> <table width=\"30%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\"> <tr> <td align=\"center\" class=\"smalltext\">" . '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . '</a>' . "<br><br>" . '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>' . "<br><br></td> </tr> </table> </td> </tr> </table> "; //=========================================================== ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr> <td class="main" width=100% valign="top" align="center"> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $returning_customer_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $returning_customer_info); new infoBox($info_box_contents); ?> </td> </tr> </table> <?php //EOF: MaxiDVD Returning Customer Info SECTION //=========================================================== //MaxiDVD New Account Sign Up SECTION //=========================================================== $create_account_title = HEADING_NEW_CUSTOMER; $create_account_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\"> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . TEXT_NEW_CUSTOMER_INTRODUCTION . "</td> </tr> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td> </tr> <tr> <td width=\"33%\" class=\"main\"></td> <td width=\"33%\"></td> <td width=\"34%\" rowspan=\"3\" align=\"center\">" . '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_create_account.gif', IMAGE_BUTTON_CREATE_ACCOUNT) . '</a>' . "<br><br></td> </tr> </table>"; //=========================================================== ?> <?php echo tep_draw_separator('pixel_trans.gif', '100%', '15'); ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr> <td class="main" width=100% valign="top" align="center"> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $create_account_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $create_account_info); new infoBox($info_box_contents); ?> </td> </tr> </table> <?php //EOF: MaxiDVD New Account Sign Up SECTION //=========================================================== //BOF: MaxiDVD Purchase With-Out An Account SECTION //=========================================================== $pwa_checkout_title = HEADING_CHECKOUT; $pwa_checkout_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\"> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . TEXT_CHECKOUT_INTRODUCTION . "</td> </tr> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td> </tr> <tr> <td width=\"33%\" class=\"main\"></td> <td width=\"33%\"></td> <td width=\"34%\" rowspan=\"3\" align=\"center\">" . '<a href="' . tep_href_link(FILENAME_CHECKOUT, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>' . "<br><br></td> </tr> </table>"; //=========================================================== ?> <?php echo tep_draw_separator('pixel_trans.gif', '100%', '15'); ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr> <td class="main" width=100% valign="top" align="center"> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $pwa_checkout_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $pwa_checkout_info); new infoBox($info_box_contents); ?> </td> </tr> </table> <?php //EOF: MaxiDVD Purchase With-Out An Account SECTION //=========================================================== </CENTER> ?> </td> TIA Omar Link to comment Share on other sites More sharing options...
alleyesonme Posted December 17, 2003 Author Share Posted December 17, 2003 any ideas please? Link to comment Share on other sites More sharing options...
alleyesonme Posted December 17, 2003 Author Share Posted December 17, 2003 still not having any luck trying and getting nowere :*( Link to comment Share on other sites More sharing options...
alleyesonme Posted December 19, 2003 Author Share Posted December 19, 2003 :blink: Link to comment Share on other sites More sharing options...
alleyesonme Posted December 21, 2003 Author Share Posted December 21, 2003 arghhh! pwease help Link to comment Share on other sites More sharing options...
alleyesonme Posted December 27, 2003 Author Share Posted December 27, 2003 anyone? Link to comment Share on other sites More sharing options...
Guest Posted December 27, 2003 Share Posted December 27, 2003 Your file (which we still have not seen complete) needs both the </form> tag at the end, and at the beginning, something like: <?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?> HTH Matti Link to comment Share on other sites More sharing options...
alleyesonme Posted December 27, 2003 Author Share Posted December 27, 2003 hi johnson, i have pasted the complete file in my 2nd post. This is the file responsible for the login process, that not the one? thanks for your reply again. Link to comment Share on other sites More sharing options...
Guest Posted December 28, 2003 Share Posted December 28, 2003 Ok - I assume you call this file with 'include' ? The <center> tags will cause a parse error - I have replaced these with <tr></tr> in the correct place. The following works: <tr> <td> <?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); //BOF: MaxiDVD Returning Customer Info SECTION //=========================================================== $returning_customer_title = TEXT_RETURNING_CUSTOMER; $returning_customer_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\"> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . HEADING_RETURNING_CUSTOMER . "</td> </tr> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td> </tr> <tr> <td class=\"main\"> <table width=\"70%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"left\"> <tr> <td class=\"main\">" . ENTRY_EMAIL_ADDRESS . "</td> <td>" . tep_draw_input_field('email_address') . "</td> </tr> <tr> <td class=\"main\">" . ENTRY_PASSWORD . "<br><br></td> <td>" . tep_draw_password_field('password') . "<br><br></td> </tr> </table> <table width=\"30%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"right\"> <tr> <td align=\"center\" class=\"smalltext\">" . '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . '</a>' . "<br><br>" . '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>' . "<br><br></td> </tr> </table> </td> </tr> </form></table> "; //=========================================================== ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr> <td class="main" width=100% valign="top" align="center"> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $returning_customer_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $returning_customer_info); new infoBox($info_box_contents); ?> </td> </tr> </table> <?php //EOF: MaxiDVD Returning Customer Info SECTION //=========================================================== //MaxiDVD New Account Sign Up SECTION //=========================================================== $create_account_title = HEADING_NEW_CUSTOMER; $create_account_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\"> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . TEXT_NEW_CUSTOMER_INTRODUCTION . "</td> </tr> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td> </tr> <tr> <td width=\"33%\" class=\"main\"></td> <td width=\"33%\"></td> <td width=\"34%\" rowspan=\"3\" align=\"center\">" . '<a href="' . tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL') . '">' . tep_image_button('button_create_account.gif', IMAGE_BUTTON_CREATE_ACCOUNT) . '</a>' . "<br><br></td> </tr> </table>"; //=========================================================== ?> <?php echo tep_draw_separator('pixel_trans.gif', '100%', '15'); ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr> <td class="main" width=100% valign="top" align="center"> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $create_account_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $create_account_info); new infoBox($info_box_contents); ?> </td> </tr> </table> <?php //EOF: MaxiDVD New Account Sign Up SECTION //=========================================================== //BOF: MaxiDVD Purchase With-Out An Account SECTION //=========================================================== $pwa_checkout_title = HEADING_CHECKOUT; $pwa_checkout_info = "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\" id=\"AutoNumber1\"> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . TEXT_CHECKOUT_INTRODUCTION . "</td> </tr> <tr> <td width=\"100%\" class=\"main\" colspan=\"3\">" . tep_draw_separator('pixel_trans.gif', '100%', '10') . "</td> </tr> <tr> <td width=\"33%\" class=\"main\"></td> <td width=\"33%\"></td> <td width=\"34%\" rowspan=\"3\" align=\"center\">" . '<a href="' . tep_href_link(FILENAME_CHECKOUT, '', 'SSL') . '">' . tep_image_button('button_checkout.gif', IMAGE_BUTTON_CHECKOUT) . '</a>' . "<br><br></td> </tr> </table>"; //=========================================================== ?> <?php echo tep_draw_separator('pixel_trans.gif', '100%', '15'); ?> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr> <td class="main" width=100% valign="top" align="center"> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $pwa_checkout_title ); new infoBoxHeading($info_box_contents, true, true); $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $pwa_checkout_info); new infoBox($info_box_contents); ?> </td> </tr> </table> <?php //EOF: MaxiDVD Purchase With-Out An Account SECTION //=========================================================== ?> </td></tr> HTH Matti Link to comment Share on other sites More sharing options...
geenygreat Posted December 28, 2003 Share Posted December 28, 2003 The <center> tags will cause a parse error - I have replaced these with <tr></tr> in the correct place. Johnson, I think this is not related with HTML tag. But a link tag <a> is stopping the form button to be submitted. So removing <a...> tag may solve the problem. Try replacing following: <td align=\"center\" class=\"smalltext\">" . '<a href="' . tep_href_link(FILENAME_LOGIN, '', 'SSL') . '">' . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . '</a>' . "<br><br>" . '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>' . "<br><br></td> With: <td align=\"center\" class=\"smalltext\">" . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) .? "<br><br>" . '<a href="' . tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN . '</a>' . "<br><br></td> Hope it works! ;) Link to comment Share on other sites More sharing options...
Guest Posted December 28, 2003 Share Posted December 28, 2003 I think this is not related with HTML tag. But a link tag <a> is stopping the form button to be submitted. So removing <a...> tag may solve the problem.As written, the <center> tag is in a php block. That's what he meant by causing a parse error, since PHP won't know what to do with a naked (unquoted) HTML tag. Cheers, Matt Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.