Jump to content

needing extra script to run only if i click on a button


devilsown
 Share

Recommended Posts

Ok, here is my issue. I want to put a button on my adminsorders.php that when i click on it it will add.

&action=ups_export&ups_method=GND to the url and as the page reloads it uses case to include the file to the the code. Which should in that file it just lets me download the customers info for a tracking label. Can case be used or should i be doing this a differnt way?

 

 

This is all in my adminsorders.php file.

 

echo '<a href="?tab=AdminOrders&id_order='.$order->id.'&vieworder&action=ups_export&ups_method=GND&token='.$this->token.'"> ups</a>';

 

 

/* Display customer information

// ups export

case 'ups_export':

{include file="/ups_print_worldship_xml.php"} ;

break;

// ups_worldship will not return */

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More