Automated date "+1 year" syntax error.
I have a subscriber update page that has a stored value for the registration date. I'd like to have a hidden field with the value of:
renewal date = registation date +1 year
so that when the page is updated, it will replace the existing renewal date in the db.
I have had a stab at the code, but somewhere I have a syntax error.
<input id="ri_SubscriberRenewalDate" name="ri_SubscriberRenewalDate" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("riSubscribersupdate","ri_SubscriberRegistrationDate"):"".(($row_WADAri_Subscribers["ri_SubscriberRegistrationDate"])?date("n/d/Y",strtotime($row_WADAri_Subscribers["ri_SubscriberRegistrationDate"] "+1 year")):"")."")); ?>" class="formTextfield_Medium" tabindex="20" title="Please enter a value.">
Could you kindly have a look and perhaps correct my coding syntax to achieve the objectives described above