Lat9 or MC12345678
Thank you again for your help on these. The client wants to add additional tracking to various forms and I manage to get all of them done, but have had no success with the logins.
If I wanted to also add an ID to split logn and the header login on this page
https://customironworks.com/login.html, would the same code modification apply?
I noticed that split login already has an action=process
HTML Code:
<?php echo zen_draw_form('login', zen_href_link(FILENAME_LOGIN, 'action=process' . (isset($_GET['gv_no']) ? '&gv_no=' . preg_replace('/[^0-9.,%]/', '', $_GET['gv_no']) : ''), 'SSL'), 'id="loginForm"'); ?>
however, the ID does not show on the form when you view source and placing the 'post' does not process the form, it just reloads the same page. I've tried various combinations, but the only one that works is the original code.
for the header I've added the same in the sidebox/tpl_login_header.php like this
HTML Code:
if(!$_SESSION['customer_id']) {
echo zen_draw_form('account_box', zen_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', 'id="loginForm"');
I also need to add scripts below the form tag, but not sure where to place that
HTML Code:
</fieldset></form>\n";
before the \n" ?? having it below the </form> of split login is not sufficient as users can login from any page. Maybe this particular one should be just before the </body>
I really appreciate the assistance. Thank you.
Bookmarks