Fixed: i am having problems modifying dates through forms

Use this forum to report bugs and to check for bugfixes and new releases of OpenEMM

Moderator: moderator

Hoeney
Posts: 6
Joined: Thu Aug 09, 2007 10:04 pm

Fixed: i am having problems modifying dates through forms

Post by Hoeney »

i am using OpenEMM 5.1. on CentOS 5. i would like to be able to create dates and input them into a recipient's profile through a form when they subscribe. i have made some static dates to test the input but i have not yet succeeded. here is my code for the form

Code: Select all

<form action="form.do" method="post">
<input type="hidden" name="agnCI" value="1" />
<input type="hidden" name="agnFN" value="optincompletebg" />
<input type="hidden" name="agnUID" value="$agnUID" />
<input type="hidden" name="agnSUBSCRIBE1" value="1" />
<input type="hidden" name="agnMAILINGLIST1" value="1" />
<input type="hidden" name="field1_day_date" value="10" />
<input type="hidden" name="field1_month_date" value="08" />
<input type="hidden" name="field1_year_date" value="2007" />
<input type="hidden" name="field2_day_date" value="15" />
<input type="hidden" name="field2_month_date" value="08" />
<input type="hidden" name="field2_year_date" value="2007" />
<input type="hidden" name="field3_day_date" value="20" />
<input type="hidden" name="field3_month_date" value="08" />
<input type="hidden" name="field3_year_date" value="2007" />
<table width="50%" cellpadding="3">
  <tr>
    <td><label for="gender">Gender:</label></td>
    <td><select name="gender">
	<option value="2" selected="selected" >no specification</option>
	<option value="0" >Male</option>
	<option value="1" >Female</option>
	</select></td>
  </tr>
  <tr>
    <td><label for="firstname">First Name:</label></td>
    <td><input name="firstname" type="text" id="firstname" size="25" maxlength="20" /></td>
  </tr>
  <tr>
    <td><label for="lastname">Last Name:</label></td>
    <td><input name="lastname" type="text" id="lastname" size="25" maxlength="20" /></td>
  </tr>
  <tr>
    <td><label for="email">E-Mail Address:</label></td>
    <td><input name="email" type="text" id="email" size="50" maxlength="100" /></td>
  </tr>
  <tr>
    <td><label for="mailtype">E-Mail Format:</label></td>
    <td>
      <label><input type="radio" name="mailtype" value="0" />Text</label>
      <label><input name="mailtype" type="radio" value="1" checked="checked" />HTML</label>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2"><input name="subscribe" type="submit" id="subscribe" value="Subscribe" /><input name="cancel" type="reset" id="cancel" value="Cancel" /></td>
  </tr>
</table>
</form>
when i try to confirm input checking out the database. it will come up as NULL for all fields. if i use the field name in the db, instead of the field name in openemm, for the column i get 0000-00-00 instead of NULL and the error form instead of the success form for the subscribe complete form. please help me if you can, this has been racking my brain all day. thank you
Hoeney
Posts: 6
Joined: Thu Aug 09, 2007 10:04 pm

Post by Hoeney »

updating to OpenEMM 5.1.1 fixed this issue
Post Reply