this is exactly what I needed, thanks. However, I'm not able to get it to do anything, I changed the user in the php file, but it redirects me to ../leadCapture.php which does nothing and there is no new lead in sugar. Any ideas? Also sugar has a tendency to get hung up ALOT...i'm running it on RHEL3 and it is freezing almost every session. Any ideas on that too? thanks ALOT for the help.