php-windows Digest 14 Feb 2004 12:19:36 -0000 Issue 2121

Topics (messages 22802 through 22807):

How to make linked drop down box
        22802 by: Haidong \(Henry\) Chen
        22803 by: Vail, Warren

Regular Expression help?
        22804 by: Jim MacDiarmid

Apache 1.3.29 crashes with PHP-extensions added
        22805 by: Torsten Schabdach
        22807 by: Cyruss

setcookie & header(Location
        22806 by: Alan McDonald

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Hi, there,
Could someone tell how to implement a two or more drop down list with parent and child 
relationship between them?
What I need is something like the following. For example, if click on country, we will 
see "US< Canada, France, etc". After click on "US", we can see "Arizona, California, 
Florida, etc" in State box. After click on California in State box, we can see " san 
Jose, San Francisco, Santa Clara, etc" in City box.
Thank you in advance!
Henry


Position Type : 
   -- Select -- 

Country : 
  -- Select --U.S.BelgiumChinaIndiaIsraelJapanNetherlandsSingaporeTaiwanUnited 
KingdomKorea 

State : 
   -- Select -- 

City : 
   -- Select --

--- End Message ---
--- Begin Message ---
You have two selection lists, the contents of the second is determined by
the selection on the first.  With PHP you have two choices, as I see it.

1.  When a selection occurs on the first box, you force a form submit
(OnChange="this.form.submit();") and the php code puts together a new page
with the second list filled in with the contents that match the selection in
the first list.

2.  You send all the contents with your form as a JavaScript array, and when
the user clicks on the first list, JavaScript code that you have included in
your form changes the contents of the contents of the second list.

The first solution is slower requiring a "round trip" to the server and
back, but is all PHP.  The second is much faster, but requires a good
knowledge of JavaScript (many developers do not consider sending JavaScript
to the browser with their html, because they don't know JavaScript, but PHP
can handle that just fine).

hope this helps,

Warren Vail


-----Original Message-----
From: Haidong (Henry) Chen [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 9:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] How to make linked drop down box 


Hi, there,
Could someone tell how to implement a two or more drop down list with parent
and child relationship between them?
What I need is something like the following. For example, if click on
country, we will see "US< Canada, France, etc". After click on "US", we can
see "Arizona, California, Florida, etc" in State box. After click on
California in State box, we can see " san Jose, San Francisco, Santa Clara,
etc" in City box.
Thank you in advance!
Henry


Position Type : 
   -- Select -- 

Country : 
  -- Select
--U.S.BelgiumChinaIndiaIsraelJapanNetherlandsSingaporeTaiwanUnited
KingdomKorea 

State : 
   -- Select -- 

City : 
   -- Select --

--- End Message ---
--- Begin Message ---
Can anyone recommend where I might be able to get some "Regular
Expression" assistance? I'm very new to "Regular Expression". I've read
some of the info I've found on the web, and have a few books that I've
read, however I'm at a loss and confused as heck. I'm hoping someone
would be able to shed some light on this for me.

Many many thanks,

Jim

--- End Message ---
--- Begin Message --- Hello!

I'm using W2K and Apache 1.3.29. When I try to uncomment some extensions
in the php.ini and try to reload Apache, then Apache crashes. I've set the right path to the extension_dir = "D:\php\php-5.0.0b4-Win32\ext".
I am trying to do this with an snap of PHP5 and now with Beta4.


It doesnt seem to matter, which extension I uncomment. I tried to do this with the extensions of MySQL, PostgreSQL and some other, too. After that, Apache will only start again, if I delete the path to the extension_dir (and comment the extensions of course). It will even start, when I add the ext_dir then. But Apache crashes again, if I try to uncomment some extensions. And here we go again...

This is no dll-missing-issue. PHP4.3.4 seems to work well with extensions, so this might be a PHP5 issue and not an Apache issue.
I have a logfile from Dr. Watson. It's a very big log of serveral trials, so I will not include it here. But if you think it would be useful to find a solution, please drop a line, so I can mail you the log file.


Is there any topic that I missed? I hope someone knows a solution for that! Thank you in advance!

--
Torsten

--- End Message ---
--- Begin Message --- Hello,

I'm using W2K and Apache 1.3.29. When I try to uncomment some extensions
in the php.ini and try to reload Apache, then Apache crashes. I've set the right path to the extension_dir = "D:\php\php-5.0.0b4-Win32\ext".
I am trying to do this with an snap of PHP5 and now with Beta4.
It doesnt seem to matter, which extension I uncomment. I tried to do this with the extensions of MySQL, PostgreSQL and some other, too. After that, Apache will only start again, if I delete the path to the extension_dir (and comment the extensions of course). It will even start, when I add the ext_dir then. But Apache crashes again, if I try to uncomment some extensions. And here we go again...

I have the same problem ! It worked with Apache/PHP5b3 but not with b4.

This is no dll-missing-issue. PHP4.3.4 seems to work well with extensions, so this might be a PHP5 issue and not an Apache issue.

Is there any topic that I missed? I hope someone knows a solution for that! Thank you in advance!

If you find a solution send me a mail or post it here, i'll do the same.


Regards

Cyril
--- End Message ---
--- Begin Message ---
On Win2003 it's fine but Win2k will not allow me to use setcookie and then a
header("Location combination.
I've tried the workaround of renaming php.exe to nph-php.exe for non-parsed
header mode but it doesn;t work.
What is the genrally used workaround for combining these command on the one
page?
thanks
Alan

--- End Message ---

Reply via email to