vigiw Posted January 16, 2007 Share Posted January 16, 2007 Hi, I have a PHP form with an image map. I would like the image map to output specific text for each hotspot, and enter it into a form field.Is this possible? And is it possible with multiple at one time without having to refresh?For example--I would have a map of Massachusetts, and the map may contain northeast, southeast, west, and central as 4 different hotspots. And the form submitter happens to choose maybe 3 of these.How do I make it so the selections, and only the selections, all show together in the form field? I tried this with PHP but it only outputs 1 and refreshes for the next, and I was told to go for Javascript. I am inexperiened with Javascript and would appreciate some help.Thanks in advance! Quote Link to comment Share on other sites More sharing options...
fenway Posted January 16, 2007 Share Posted January 16, 2007 I don't see what PHP has to do with this... you want an imagemap, and on mouseover, I assume show something fancy (i.e. not just a tooltip)? Quote Link to comment Share on other sites More sharing options...
vigiw Posted January 16, 2007 Author Share Posted January 16, 2007 No, I mean this is a PHP Form that submits to a MySQL database, that is why it is PHP, and that part is done and working. I want to make an image map and allow the person submitting the form to click any hotspots they want, maybe they want multiple and click 3 of however many hotspots there may be. I would like those 3 or however many hotspots the person clicked, to be entered together in one field in this PHP form. So if the person click North, east, and south, I want it to appear in the form field:North, East, SouthI'm not sure how to implement this.Thanks Quote Link to comment Share on other sites More sharing options...
vigiw Posted January 17, 2007 Author Share Posted January 17, 2007 Can anyone else help?Thanks. Quote Link to comment Share on other sites More sharing options...
fenway Posted January 18, 2007 Share Posted January 18, 2007 Well, if you're happy with a JS-only solution, you can put whatever you want in a HIDDEN input field. Otherwise, it's going to get tricky. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.