Jump to content

Auto Calculate Date for beginning and ending upon the amount of days


phplover

Recommended Posts

Hi,

 

Thanks for let me joined this great helpful and informative php forum.

 

I am a php script beginner. I am trying to make a form that calculate the start and end dates in the second and third field in the form as soon as the numbers of day is entered in the first field.

 

For example:

 

1. Number of days = (let say we enter 65)

2. Today's date = (Mar 31, 2009) <-- this field should be auto populated as <?now?> or something.

3. End date = (correctly auto calculated date using field 1 and two)

 

Please help me clearly step by step on how to do it.

 

Thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.