I finally struck on something ... what I need is a unique variable, so originally, I automatically went for the user ... but nothing says I can't use another available variable ... such as $id where id is a unique number. This makes urlencode unnecessary. I tried it out and it seems to work ...
I reviewed the HTML and it seems that I mistyped here in the forum ... the javascript to php variable should have read $user and not $email ...
The scr attributes are out of my control ... I was given the img src code and can't change it other than to include a unique identifier for d, which is now $id with the appropriate changes to the script.
So here what seems to work:
Change javascript variable to a php one:
<?php $id= "<script type='text/javascript'>formData.display('id')</script>"; ?>
<img src=http://www.somesite.com/add.asp?x=1234&y=ABC&z=<?php echo $id; ?> border=0 width=125 height=10>
Thanks for all your help.
Bob