php - passing variable in url

Associate
Joined
6 Aug 2006
Posts
104
hi, how can i made this redirect url have this format:

www.xxx.com/content/order-complete?order_id=350

i use this code at the moment...

'test_success_url' => url('content/order-complete?order_id='. $order->order_id, NULL, NULL, TRUE)

but it doesnt work. instead it goes to

content/order-complete%3Forder_id%3D%24order-%3Eorder_id

Any ideas?

Thanks

Andy
 
Last edited:
'test_success_url' => url('"content/order-complete?order_id=". $order->order_id . "'", NULL, NULL, TRUE);

Maybe. I'm tired.

Or (to make it clearer):

$foo = "content/order-complete?order_id=" . $order->order_id;

'test_success_url' => url($foo, NULL, NULL, TRUE);
 
Last edited:
Back
Top Bottom