Jump to content

sofia403

Members
  • Posts

    78
  • Joined

  • Last visited

Everything posted by sofia403

  1. i have some other forms in a dropdown menu with different form names those get passed on and entered into mysql by php, but the date one doesnt get updated, just 00-00-0000 should i post the whole html and php?
  2. thanks for quick response fugix, however im having troubles still, not sure if i have everything entered correctly though. i have a form which is being posted by php to mysql here is my html: <form name="DATE1" method="post"> <div><select name="day" id="Date1" class="regularfont"><option value="" selected="selected"></option> <option value="1">01</option> <option value="2">02</option> </select> <select name="month" id="Date2" class="regularfont"><option value="" selected="selected"></option> <option value="1">January</option> <option value="2">February</option> </select> <select name="year" id="Date3" class="regularfont"><option value="" selected="selected"></option> <option value="2014">2014</option> <option value="2013">2013</option> on submit it passed on to php <?php $Date1 = $_POST['day'] . "-" . $_POST['month'] . "-" . $_POST['year']; ?> what am i doing wrong ?
  3. hello i have a question. i have a drop down form to select DD-MM-YEAR , but im unsure how to actually post it into one column DATE since values are given in three separate dropdown options? here is an example of my html, and i would like a php code to be able to post that to mysql. i have it working for other dropdown menus, but not sure how would it work with a date. im very new to php and mysql and any help would be much appreciated. thank you. <select name="Date" id="Date" class="regularfont"><option value="" selected="selected"></option> <option value="1">01</option> <option value="2">02</option> </select> <select name="Date" id="Date" class="regularfont"><option value="" selected="selected"></option> <option value="1">January</option> <option value="2">February</option> </select> <select name="Date" id="Date" class="regularfont"><option value="" selected="selected"></option> <option value="2014">2014</option> <option value="2013">2013</option>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.