text: you'll get actual answers if you post what you have already written (even if it's just the html)\n\nnow all you'll get are sites to search!\n\nhttp://www.w3schools.com\n\nor use a search engine for the topic "javascript form checkbox hide required" will get you right to lots of examples!\n\n\n\nassuming your html is :\nform method="post" action="customer_checkout2.php">\n<input name="same" type="checkbox" id="same" value="checkbox">\n<input name="ordermain_Shipfirst" type="text" id="ordermain_Shipfirst">\n<input name="ordermain_Shiplast" type="text" id="ordermain_Shiplast">\n<input name="ordermain_Shipcompany" type="text" id="ordermain_Shipcompany">\n.....\n<input type=image name="Submit" value="Submit" src="../Images/Button/Continue_Checkout.jpg">\n\n\nthe simplest way is to add an onsubmit handler to the form\n\n<form ... onsubmit="return mysubmitfunction">\n\nwhere mysubmitfunction \nreturns true if the fields are entered correctly and false if they are not!\nfalse magically stops the submit from submitting!\n\nto do the checkbox, it's the onclick handler, inside there you \nmake the fields hidden or not depending on the value of the checkbox!\n\nthat should help you out... the rest is left for you to discover using google or yahoo search!