|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Automatically update date and time
I am trying to do the following
1. I have a Severity dropdown (1, 2, 3, 4 and 5) in my script 2. Date (dateref)(varchar) 3. time (timeref) (varchar) I want to do this, but have no clue how to write the script to do it. It must Automatically update date and time as per severity rating a. Severity 1. Date to be same day, Time + 1hour b. Severity 2. Date +1 day. Time to be current time c. Severity 3. Date + 3 days. Time to be current time d. Severity 4. Date + 5 days. Time to be current time e Severity 5. Date and time to default blank. If I select any severity, it must changed the time and date that is on the same form, and save it to the table. Hope any one can help me |
|
#2
|
|||
|
|||
|
I just finished a function today (javascript required to update client side form) that works in much the same way.
I'll try and remember to post it here tomorrow ![]()
__________________
How can I soar like an eagle when I'm flying with turkey's? |
|
#3
|
|||
|
|||
|
Well here it is
, others will probably scoff at the coding, but hey, it works.PHP Code:
Let me know if you have any queries. HTH ![]() |
|
#4
|
|||
|
|||
|
help
Still waiting to see if someone can realy help me with this problem
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Automatically update date and time |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|