hi Brij
I can see that, but I am posting data from a form in an HTML page and I also want to incorporate the time into the subsequent text file.So it is two variables from two separate functions into one text output.
I am declaring the $todaysDate from a function at the very beginning of the handle file, before the fopen/fwritebefunction is declared. Everything parses and all my form data appears in the .txt but no date/time appears.
My $todaysDate function works Ok independently but I am unable to incorporate it into the data that has been posted from the form. I will try inserting if($todaysDate) [exists]in the script until it doesn't parse.
peter