I have done this type of stuff hundreds and thousands of times.
Theproblem lies with your external php script.
Debugging and diagnosing that external php scritp is not a subject for this forum.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
-------------------- If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
i enabled debug and checked error_log. it does not give me any errors. no code is displayed after the php insert. I have tried a few things for compatibility but dont know why it wont take the code