fdcusa Posted February 13, 2011 Share Posted February 13, 2011 In building of an array of custom links, how would I reference the session_id so it is included in the link? $info_box_contents[] = array('text' => '<center>' . '<a href="http://www.xxx/catalog/index.php?manufacturers_id=132"><BIG>yyy</BIG></a><br>' . '<a href="http://www.xxx/catalog/index.php?manufacturers_id=21"><BIG>yyy</BIG></a><br>' . '</center>'); $info_box_contents[] = array('form' => tep_draw_form('manufacturers', tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false), 'get'), 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id()); Link to comment Share on other sites More sharing options...
germ Posted February 13, 2011 Share Posted February 13, 2011 $info_box_contents[] = array('text' => '<center>' . '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=132') . '"><BIG>yyy</BIG></a><br>' . '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=21') . '"><BIG>yyy</BIG></a><br>' . '</center>'); To retain the session you must use the osC function tep_href_link() If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
fdcusa Posted February 13, 2011 Author Share Posted February 13, 2011 THANK YOU Jim! Good to go. Edit: I'll read-up on the various functions available... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.