CB Code is depreciated, please upgrade to CB Auto Actions. At any rate to get the user_id to the called script you can append ?user_id=[user_id] to the end of your URL (e.g.
www.example.com/myscript.php?user_id=
[user_id]) which will send it with the GET request. You can access it with $_GET in your script.