This topic is locked

Radio button, lookup table and display image on edit page

5/15/2009 7:47:13 AM
PHPRunner General questions
S
sporrencense author

Hi,
I wonder if anyone can help.
I have a table (users) which allows on the edit page a user to select an avatar image from a predefined list in another table (user_avatars).
The edit field is set to radio lookup table (user_avatars). The user_avatar table has two fields, 'id', 'filename' - the filename is written in html code i.e. <img src="avatars/av1.png" />.
At the moment on the edit page I get a list of radio buttons with the html <img src="avatars/av1.png" />, <img src="avatars/av2.png" />, <img src="avatars/av3.png" /> etc but what I would really like is for the image to actually show beside the radio button so that a user can select which avatar they would like to use but I cannot work out how to do this.
Any thoughts would be most appreciated.
Thanks in advance.
Ben

J
Jane 5/18/2009

Ben,
Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages and I'll try to help you.