[PHP] Passing JAVASCRIPT variable to PHP Script...

2006-10-10 Thread Captain
Hi geeks, i am uploading a file to server. Uploading part is working fine. i am struggle with minor part. actually before uploading file, i am checking for existance of a file. If it is not exists, directly i am uploading that file. If it exists, i sud ask user that "This file is exits.

Re: [PHP] POPUP window in PHP

2006-10-09 Thread Captain
to me. Thanks again. Prabhakaran Max Belushkin wrote: > > Captain wrote: >> hi, >> i want to do YES/NO confirmation (like POPUP). If YES, it will upload a >> file > > PHP is server-side, not client-side. You can have the confirmation > passed as a GET v

[PHP] POPUP window in PHP

2006-10-09 Thread Captain
hi, i want to do YES/NO confirmation (like POPUP). If YES, it will upload a file into server. Otherwise, it won't do anything. In JavaScript, i can get using confirm(); But i am not able to do manipulation from that javascript variable. My Code(partial): ?> if (file_exists($fullPath)) {

[PHP] preg_replace problem

2001-01-18 Thread The Captain
I have a regular expression that's not giving me the results i really need. I have a bunch of strings coming at me that need to be truncated if they're over 15 characters... but not to truncate until after it reaches the first word. This regular expression just doesn't seem to want to work 100%: