Re: [PHP] validating textarea using php

2008-05-13 Thread Hiep Nguyen
On Tue, 13 May 2008, Sudhakar wrote: hi i need to validate textarea of a html form using php presently my php code to validate the text area is if($comments == "" ) { $error.="Please enter your comments"; } with this code if a user hits the space bar once or couple of times as a matter of

Re: [PHP] setcookie

2008-03-12 Thread Hiep Nguyen
On Wed, 12 Mar 2008, Tim Daff wrote: Hi, I am learning PHP, I am trying to set a simple cookie: Cookies time()+(60*60*24*7)); ?> Firefox is returning this error: Warning: Cannot modify header information - headers alr

Re: [PHP] Help on running external command

2008-02-20 Thread Hiep Nguyen
On Wed, 20 Feb 2008, Mário Gamito wrote: Hi, I need to run an eternal command from a PHP page. My code is: " $username= 'lixo'; $username = 'lixo'; exec('su - vpopmail -c "/var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/" . $username'); " try: exec('su - vpopmail -c "/var/qmai

Re: [PHP] Converting tab delimited file to CSV

2008-02-18 Thread Hiep Nguyen
On Mon, 18 Feb 2008, Graham Cossey wrote: I was wondering if someone could offer some advice please. I'm being sent data in tab delimited files which I'm trying to split into smaller files and convert to comma delimited using PHP. Now, I can replace the tabs with commas and opening the resulti

Re: [PHP] generate xls file on fly

2008-02-14 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: let say that user searched and found 10 records, in the meantime, other users may change any of these 10 records, so if we saved mysql statement and re-run mysql statement again, the result might be different. to prevent this problem

Re: [PHP] generate xls file on fly

2008-02-11 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Jason Pruim wrote: On Feb 8, 2008, at 10:14 AM, Hiep Nguyen wrote: On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen & fwrite to the server? my goal is to have a link after the table and user

Re: [PHP] generate xls file on fly

2008-02-08 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Jason Pruim wrote: On Feb 8, 2008, at 10:14 AM, Hiep Nguyen wrote: On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen & fwrite to the server? my goal is to have a link after the table and user

Re: [PHP] generate xls file on fly

2008-02-08 Thread Hiep Nguyen
On Fri, 8 Feb 2008, Per Jessen wrote: Hiep Nguyen wrote: is there anyway to generate this into xls file w/o using fopen & fwrite to the server? my goal is to have a link after the table and user can click on that link and a save window pop up to allow user to save to local disk.

[PHP] generate xls file on fly

2008-02-08 Thread Hiep Nguyen
hi friends, i have a php page with the following logic: Download Title>Author Download Into Excel File is there anyway to generate this into xls file w/o using fopen & fwrite to the server? my goal is to have a link after the table and user can click on that link an

[PHP] string vs number

2008-02-05 Thread Hiep Nguyen
hi all, i have this php statement: debugging, i got $rowA[0] = 54, but i want $rowB[$rowA[0]] = $rowB['54']. is this possible? how do i force $rowA[0] to be a string ('54')? thanks t. hiep -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] control browser with tag

2007-12-27 Thread Hiep Nguyen
""Warren Vail"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> i have two pages: list.php and update.php >> >> list.php will have a hyper link that when click on, it will open a new >> window for user to update info. once user clicks update button on >> update.php page, i want to

[PHP] control browser with tag

2007-12-18 Thread Hiep Nguyen
hi friends, i have two pages: list.php and update.php list.php will have a hyper link that when click on, it will open a new window for user to update info. once user clicks update button on update.php page, i want to close update.php and return to list.php. however if user doesn't click upd