Re: [PHP] PHP, Javascript, and Forms

2006-05-30 Thread Minuk Choi
I think a better way for you to go(it may be a little bit more difficult, but it won't have any annoying flickering from the reloading of page) is to use AJAX. But if you insist on going on a PHP form + Javascript validation - submit form -PHP form + Javascript validation, that can be done as

Re: [PHP] url query problem

2005-11-11 Thread Minuk Choi
You've tried accessing $_GET in reservation.php? Like $_GET['client'] would return apartment1 in reservation.php if you clicked on http://www.taximauritius.mu/reservation.php?client=apartment1 -Minuk Imroz wrote: Hi PHP Gurus Am new to the php world, I need help to do something.

Re: [PHP] PEAR on PHP 5+?

2005-11-09 Thread Minuk Choi
Thanks! It turns out there was an rpm installed php-4.2.3 which was clobbering with my PHP-5.0.5 installation. I removed it with apt-get remove php and reinstalled PHP-5.0.5 and pear works fine! Thanks again! -Minuk M wrote: Minuk Choi wrote: I can't seem to get pear to work correctly

Re: [PHP] Determining Built Configuration

2005-11-08 Thread Minuk Choi
can you get the output from phpinfo()? That is, create a file, phpinfo.php with the following ?PHP echo phpinfo(); ? and then put that in your htdocs/html directory so you can browse it with your internet browser... there should be a configure block on that page with all the options listed

[PHP] PEAR on PHP 5+?

2005-11-08 Thread Minuk Choi
I can't seem to get pear to work correctly. if I type [/]# pear install DB I get the usage printed out back(no error message, no action) and if I go to the PHP-5.0.4/lib/php directory, I get [PHP-5.0.4/lib/php]# pear install DB br / bFatal error/b: Call to undefined function: getoptions() in

Re: [PHP] Convert fake Unicode to real UTF-8

2005-11-03 Thread Minuk Choi
Have you tried feeding that through htmlentities()? e.g. echo htmlentities(#1043;#1072;); see if that outputs what you want on the page. -Mk Andreas Jakl wrote: I've been searching for quite some time now and tried several functions, but didn't find a solution. I hope somebody can point me

Re: [PHP] [DONE] Substr by words

2005-10-29 Thread Minuk Choi
Good job! However, let me give a few suggestions to optimize the code function trim_text($text, $count) { $text = str_replace( , , $text); /* * This is redundant; you are replacing all in $text with * maybe you meant * $text = trim($text); ? */

Re: [PHP] Processing two post values

2005-10-22 Thread Minuk Choi
...not quite sure what you're asking. Are you asking for help on how to process these variables? I wrote this off the top of my head... meaning that I did not test it... since I don't know if this was what you were asking... I just fiddled with it. Add this code and tell me if it prints out

Re: [PHP] SCRIPT_NAME

2005-10-21 Thread Minuk Choi
... what, the off by one error? Hey, I was just providing suggestion off the top of my head. :-P -Minuk Robert Cummings wrote: On Thu, 2005-10-20 at 23:27, Minuk Choi wrote: Off the top of my head... $filename = $_SERVER['PHP_SELF']; $strippedFilename = substr($filename, strrpos

Re: [PHP] SCRIPT_NAME

2005-10-20 Thread Minuk Choi
Off the top of my head... $filename = $_SERVER['PHP_SELF']; $strippedFilename = substr($filename, strrpos($filename, '/')); references : http://us3.php.net/substr http://us3.php.net/manual/en/function.strrpos.php -Minuk John Taylor-Johnston wrote: SCRIPT_NAME and PHP_SELF always include

Re: [PHP] re: some problems with php form

2005-10-18 Thread Minuk Choi
://evolution.com/Contact_Form_test.php * on line *63* -Bruce On 10/17/05, Minuk Choi [EMAIL PROTECTED] wrote: Wait a minute... you meant input class= ?PHP if ($error_msg) { echo input.error; } else { echo input.normal; } ? id=firstname name=firstname type=text value=?PHP echo $_POST['firstname

Re: [PHP] re: some problems with php form

2005-10-18 Thread Minuk Choi
*/ On 10/18/05, Minuk Choi [EMAIL PROTECTED] wrote: Can you post your Contact_Form_test.php? input class=?PHP if ($error_msg) { echo input.error; } else { echo input.normal; } ? id=firstname name=firstname type=text value=?PHP echo $_POST['firstname'];? should parse into HTML by PHP. This block, I am

Re: [PHP] re: some problems with php form

2005-10-17 Thread Minuk Choi
Wait a minute... you meant input class= ?PHP if ($error_msg) { echo input.error; } else { echo input.normal; } ? id=firstname name=firstname type=text value=?PHP echo $_POST['firstname'];? ...or am I looking at the wrong thing?

Re: [PHP] Funky array question

2005-10-16 Thread Minuk Choi
Assuming that you are also accepting partial matches... (e.g. if you had a sentence with something like, Mr. LeBlue says hello, and that should be a match for blue) If $mysqlString contains 1 sentence from the mySQL database(I assume you've a loop or something that'll fetch 1 string per

Re: [PHP] Problem with Javascript:...submit()

2005-10-13 Thread Minuk Choi
I'm just taking a wild guess... but I'm guessing that if you set a name with spaces, it'll be replaced with _(underscore). A couple of ways around this is to 1) figure out a way to assign a one-word name for all your books(e.g. Code, ID number, etc.) 2) generate a hash code(e.g.

Re: [PHP] Query - Warning: Cannot modify header information

2005-09-30 Thread Minuk Choi
Months ago when I kept encountering that problem, it was due to this. Suresh, in /home/gift1/public_html/home.php, do you have a space, an empty line, etc. ? that file should start with ?PHP NOT ?PHP or ?PHP I put double quotes to emphasize that there should be NOTHING before the PHP

Re: [PHP] Redirect after download

2004-12-01 Thread Minuk Choi
have you considered attempting to use header(Location: .$URL); where $URL contains the URL AFTER putting ob_start(); at the top of the php file? - Original Message - From: Justin England [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 01, 2004 4:07 AM Subject: [PHP]

Re: [PHP] fedora core 3 mail() not working from web

2004-11-27 Thread Minuk Choi
, there was no issue with Sendmail, probably just with PHP/Apache. - Original Message - From: Curt Zirzow [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Thursday, November 25, 2004 2:54 PM Subject: Re: [PHP] fedora core 3 mail() not working from web * Thus wrote Minuk Choi: hey gang, I have a fedora

Re: [PHP] fedora core 3 mail() not working from web

2004-11-27 Thread Minuk Choi
PHP.ini file?? Can you post the error message, as it will give us a better idea of what could be wrong. Angelo Minuk Choi [EMAIL PROTECTED] 11/26/2004 10:31:59 AM hey gang, I have a fedora core 3, with standard PHP and MySQL included with the distribution. I'm having a rather odd problem. the following

[PHP] fedora core 3 mail() not working from web

2004-11-26 Thread Minuk Choi
hey gang, I have a fedora core 3, with standard PHP and MySQL included with the distribution. I'm having a rather odd problem. the following script(mailTest.php) ?PHP $result = mail('[EMAIL PROTECTED]', 'test subject', 'test message'); if (!$result) echo FAILURE; else echo SUCCESS;

Re: [PHP] page redirect question

2004-11-09 Thread Minuk Choi
Victor, try this. at the TOP of your HTML, put ?PHP ob_start(); ? then you can have all your regular HTML/PHP/JAVASCRIPT/ETC code, and somewhere(in the middle, in the end), you can call ?PHP header('location: '.$URL); ? where $URL is a variable that contains a URL and it will work. ? -

Re: [PHP] Video Uploads

2004-11-09 Thread Minuk Choi
How big are the video files(byte wise)? Have you tried uploading a non-video file of the same size? - Original Message - From: Jay Fitzgerald [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 12:10 PM Subject: [PHP] Video Uploads I can upload just about everything

Re: [PHP] problem with array

2004-10-19 Thread Minuk Choi
- Original Message - From: Dale Hersowitz [EMAIL PROTECTED] To: 'Minuk Choi' [EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 12:38 AM Subject: RE: [PHP] problem with array Minuk, After much searching and asking, I found the answer to my problem. It turns out that after re-attaching my

Re: [PHP] problem with array

2004-10-14 Thread Minuk Choi
$selectedCol=$row[selectedCol]; echo $selectedCol; $selectedColName=$row[$selectCol]; //--- PLEASE NOTE THIS SPECIFIC ROW Please give me the output, what do you get from echo $selectedCol;? If I had to guess, it looks like you're confusing key and value of an associatative array.

Re: [PHP] Lost in PHP (part 1) ---- Sequle to Lost in Query

2004-10-11 Thread Minuk Choi
As far as checking to see if it's a number, note that you can get the following 10 = string that contains 10 10 = integer that contains 10. You can verify that a variable contains numbers or numeric data by using if (is_numeric($variable)) { $variable is either a number variable or a string

Re: [PHP] forms

2004-10-11 Thread Minuk Choi
this info to change the connect_db file so that it doesnt have to be done manually. Minuk Choi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] try this : $link = mysql_connect($host, $user, $pass); Note : No SINGLE quotes. In PHP, quotations are as follows $host = 'localhost'; $a = '$host'; $b

Re: [PHP] install /setup script

2004-10-11 Thread Minuk Choi
Well, you can just put up a regular form, something to the effect of form action=create_db.php method=post Hostname input type=text name=Hostname User Nameinput type=text name=username Password input type=text name=password ... ... ... etc. /form and when you submit that form, those variables will

Re: [PHP] Parse Error --- can not solve at this time... please assit

2004-10-11 Thread Minuk Choi
the , $desc) is your culprit. foreach ($arrayVariable as $key=$value) is probably the form you meant. foreach ($admin_get_options_result as $api =$file, $desc) what is $api, $file, $desc supposed to be? If I were to hazard a guess, is the $admin... array a nested array, something like

Re: [PHP] Finding one line in a Variable?

2004-10-11 Thread Minuk Choi
If you don't mind NOT using regex or regular expression searching commands, you can try it this way. Assuming that there is a carriage break(e.g. \r\n if windows, and I'm assuming the HTML file was written in windows, otherwise, just \n for Unix and \n\r for Mac, I believe). $eolnString

[PHP] testing - disregard

2004-10-11 Thread Minuk Choi
This is a test e-mail, please disregard

Re: [PHP] textarea vs. type=text data difference?

2004-10-10 Thread Minuk Choi
Okay, so in other words... //Doc1.php include functions.php //this file contains the function definition for protectText() include formProcessor.php //this file contains the code that calls protectText() include form.php //this file gets the form data from user By any chance, are ANY of the

Re: [PHP] forms/variables/create database

2004-10-10 Thread Minuk Choi
try this : $link = mysql_connect($host, $user, $pass); Note : No SINGLE quotes. In PHP, quotations are as follows $host = 'localhost'; $a = '$host'; $b = $host; echo $a; that prints $host echo $b; that prints localhost. HTH -Minuk - Original Message - From: bigmark [EMAIL PROTECTED]

Re: [PHP] MYSQL_VERSION_ID?

2004-10-09 Thread Minuk Choi
the value for MYSQL_VERSION_ID, though. - Original Message - From: Curt Zirzow [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, October 09, 2004 2:46 AM Subject: Re: [PHP] MYSQL_VERSION_ID? * Thus wrote Minuk Choi: I've a Redhat9 and installed MySQL 4.0 from source and Apache 1.3 from

[PHP] MYSQL_VERSION_ID?

2004-10-08 Thread Minuk Choi
I've a Redhat9 and installed MySQL 4.0 from source and Apache 1.3 from source. I also downloaded the PHP5.0.2 source and attempted to compile it. Apache and MySQL are installed successfully, as they all work without any noticeable errors. This is how I configured PHP5 ./configure

Re: [PHP] php5 and php4?

2004-09-21 Thread Minuk Choi
: Tuesday, September 21, 2004 1:45 AM Subject: Re: [PHP] php5 and php4? On Tue, 21 Sep 2004 01:29:06 -0400, Minuk Choi [EMAIL PROTECTED] wrote: I've been meaning to ask this... but I always thought I could find the answer online(I didn't). Back when PHP 5.0.1 was released, PHP 4.something else

Re: [PHP] php5 and php4?

2004-09-21 Thread Minuk Choi
Oh, I see. Thanks for clarifying. - Original Message - From: Matthew Weier O'Phinney [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 4:05 PM Subject: Re: [PHP] php5 and php4? * Minuk Choi [EMAIL PROTECTED]: But then, don't you run the risk of having 2

[PHP] php5 and php4?

2004-09-20 Thread Minuk Choi
I've been meaning to ask this... but I always thought I could find the answer online(I didn't). Back when PHP 5.0.1 was released, PHP 4.something else was released. What was the main reasoning behind this move? Is it because PHP5 is more OOP(similar to java)?

[PHP] PHP + Multiple MySQL-4.0.20

2004-06-07 Thread Minuk Choi
I have a RedHat9 machine. I needed to have multiple MySQL installations, so I removed the RPM installation and did a binary installation of MySQL-4.0.20. As it stands, I have the following installations /usr/local/mysql-4.0.20-webpage /usr/local/mysql-4.0.20-exp /usr/local/mysql-4.0.20-def