I know that this is relatively simple, but that hasn't stopped it from bugging the heck out of me. 
I'm trying to create a pop-up window from the super_orders.php page that when clicked on, loads customers.php in edit mode for the customer whose order I'm viewing.
I can't figure out a way to correctly load the $cID variable and pass it into the URL string as part of the query.
I've added this to super_orders.php:
Code:
<?php
echo '<br /><a href="javascript:popupWindow(\'' .
zen_href_link(FILENAME_CUSTOMERS, . '&cID=' . $customers_id . '&action=edit', 'NONSSL') . '\', \'scrollbars=yes,resizable=yes,width=600,height=450,screenX=150,screenY=100,top=100,left=150\')">' .
zen_image(DIR_WS_IMAGES . 'icon_edit3.gif', ICON_EDIT_CONTACT) . ICON_EDIT_CONTACT . '</a>';
?>
Towards the beginning of super_orders.php, I define $customers_id as
$customers_id = zen_db_prepare_input($_GET['cID']);
Using
'cID=' . $orders->fields['customers_id']
doesn't seem to work either. I can load customers.php in the popup window in edit mode, but no customer ID is present, so all the fields are blank.
Any help?
Thank you all so much in advance.
Luke
Bookmarks