para guardarlo en mysql.
aca tengo el codigo
Código PHP:
Ver original
<link rel="stylesheet" href="css/colorpicker.css" type="text/css" /> <link rel="stylesheet" media="screen" type="text/css" href="css/layout.css" /> <title>ColorPicker - jQuery</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/colorpicker.js"></script> <script type="text/javascript" src="js/eye.js"></script> <script type="text/javascript" src="js/utils.js"></script> <script type="text/javascript" src="js/layout.js?ver=1.0.2"></script> <script type="text/javascript"> $('#colorpickerField1, #colorpickerField2, #colorpickerField3').ColorPicker({ onSubmit: function(hsb, hex, rgb, el) { $(el).val(hex); $(el).ColorPickerHide(); }, onBeforeShow: function () { $(this).ColorPickerSetColor(this.value); } }) .bind('keyup', function(){ $(this).ColorPickerSetColor(this.value); }); </script> <script type="text/javascript"> function notEmpty(){ var myTextField = document.getElementById('colorpickerField1'); if(myTextField.value != "") alert("You entered: " + myTextField.value) else alert("Would you please enter some text?") } </script> <?php echo "<div id=\"colorSelector\"><div id=\"colorpickerField1\" style=\"background-color: #0000ff\"></div></div>"; ?> <input type='button' onclick='notEmpty()' value='Form Checker' />