I picked up the script for the color cube at javascriptsource.com [url]http://javascript.internet.com/miscellaneous/color-cube.html[/url] and have the cube on [url]http://www.geocities.com/adilbookz/Utilities/colorcubefinished.html[/url] But for reasons that are beyond me, it doesn’t work. Does anyone have any idea of what might be wrong?
@bunner_bobDec 30.2002 — #I'm trying to adapt this colorcube script to create a form field populated with the chosen color, so when the form is submitted, the chosen color is sent to a database.
If there's a color already in the database, the <?php echo $headingcolor ?> pulls it out of the db. This works fine. If I manually type a value into the form field it posts to the db just fine as well.
If I click on a color square in the cube, it appears to set the innerHTML properly (i.e. I can make the form field change size, and the specified color value shows up in the field) but the value does NOT get passed on "Submit". It's as if the field were empty.