Re: [PHP] I need help handling form posting

2007-11-15 Thread Per Jessen
Jon Westcot wrote: Is there a way that I can intercept the click of the Upload button, have it update a field (probably a hidden one) with a date/time stamp, and then have that value included in the $_POSTed values? Sure, javascript is the answer. /Per Jessen, Zürich -- PHP

Re: [PHP] I need help handling form posting

2007-11-15 Thread Per Jessen
Per Jessen wrote: Jon Westcot wrote: Is there a way that I can intercept the click of the Upload button, have it update a field (probably a hidden one) with a date/time stamp, and then have that value included in the $_POSTed values? Sure, javascript is the answer. pseudocode:

Re: [PHP] I need help handling form posting

2007-11-15 Thread Per Jessen
[EMAIL PROTECTED] wrote: But don't forget to send a server timestamp within the form. Just for the case that server time and client time may differ in some minutes (or even timezone). The OP said I'd like to be able to notify the user of when the file upload actually began., so the timestamp

Re: [PHP] I need help handling form posting

2007-11-15 Thread Robert . Degen
Jon Westcot wrote: Is there a way that I can intercept the click of the Upload button, have it update a field (probably a hidden one) with a date/time stamp, and then have that value included in the $_POSTed values? Sure, javascript is the answer. But don't forget to send a

RE: [PHP] I need help handling form posting

2007-11-15 Thread admin
I do this Example: ? switch($_REQUEST['req']) { default: $click_stamp =date('is'); echo form action=? method=postinput type=hidden name=clicks value=$click_stamp input type=file name=upfile tabindex=1 size=35 input type=submit value=upload name=req/form; break; case upload: //Upload function

Re: [PHP] I need help handling form posting

2007-11-15 Thread Daniel Brown
On Nov 15, 2007 12:14 PM, [EMAIL PROTECTED] wrote: FOR GODS SAKE DON'T comment on syntax or design. I DO NOT CARE this is a example ONLY!!! OF COURSE I LEFT OUT CODE. OF COURSE THIS IS NOT A COPY PASTE AND IT WILL RUN!! There should be an apostrophe in GODS and your sentence should