The URL works fine.
Its AJAX or something of the script to give me the ID and that ID put it into de Ajax.Lastdata and then put on the variable UserID
I just want to double check: "Works fine"
When you open a browser and on the URL type in your site address and php request with data it returns exactly what you want?
example:
yoursite.com/cgi-bin/file.php
the php file runs and returns the correct id number in html format in your browser. Correct?
(I use php / ajax everyday. So I'm just walking this through my normal troubleshooting process. Eliminating one problem at a time until complete.)
If all that works, open your project in debugger mode. Under System, Ajax, lastdata, your id number should be there. If it is not, then check the browser log for an error. If still nothing, check that your ajax request.
Assuming all that works, you probably just have a simple coding issue, maybe something as simple as Set ID = int(ajax.lastdata) as suggested above.