php-general Digest 4 Nov 2005 17:24:11 -0000 Issue 3775

Topics (messages 225085 through 225094):

Re: proc_open, fwrite, 16384 bytes magic
        225085 by: Curt Zirzow

Re: Convert fake Unicode to real UTF-8
        225086 by: n.g.
        225090 by: Andreas Jakl

Re: PHP from the command line
        225087 by: Jasper Bryant-Greene
        225091 by: bruce

PHP 4.4.1 on Apache 2.0.x issue
        225088 by: Max Belushkin

Re: Pictureupload
        225089 by: Georgi Ivanov

Re: actually the è not the ampersand
        225092 by: Fredrik Tolf

Re: if statement help
        225093 by: Ford, Mike

[php] dependable combo boxes with mysql database
        225094 by: Bhoomi Vora

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 ---
On Thu, 03 Nov 2005 13:14:48 -0800, Philip Hallstrom wrote:

> ...
> 
> Anyway, on FreeBSD 5.4 running CLI PHP 5.0.5 with your previously sent
> script I get output of:
> 
> 10240
> 10240
> 
> anyway, thought that might be helpful...
> ...
> 
>>>   The output is:
>>> 10240
>>>   6144
>>>   which makes up exactly the magic 16384 bytes. So it's certainly not
>>>   a
>>> qmail issue.


I get the correct results with FreeBSD 5.4 and php versions 4.4, 5.0, 5.1,
and 6.0 as well.

I dont remember if you mentioned what version of bsd and php you have
installed.


Curt.
-- 
http://news.zirzow.dyndns.org/

--- End Message ---
--- Begin Message ---
> UTF-8. In the MySQL-Table the text gets
> converted to something like "Га" as an ASCII text.
>
where did you see this, phpmyadmin or mysql cli ?

--- End Message ---
--- Begin Message ---
Thanks for the tip! htmlentities() didn't work, as it just converted the
"&" in the string to "&". However, following the trail I did get it
working the other way round, using:

html_entity_decode($row['text'], ENT_NOQUOTES, "UTF-8")

After this call, I had a real unicode text in my output file.

About the question where I saw it - both in phpMyAdmin and in my own PHP
script. It seems to be really stored as an ASCII text in the DB, as a
substr($row['text'], 0, 1) also simply outputs "&".

Thanks for your help,
Andreas

Minuk Choi schrieb:
> Have you tried feeding that through htmlentities()?
> 
> e.g. echo htmlentities("Га");
> 
> 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 in the right
>> direction.
>>
>> The problem:
>>
>> Russian text is entered through a web form. It's a rather badly
>> administrated external webserver with old versions of everything, so I
>> can not set the table to UTF-8. In the MySQL-Table the text gets
>> converted to something like "Га" as an ASCII text.
>>
>> Using PHP I need to get the text out into a plain text file, as a real
>> UTF-8 string.
>>
>> How can I convert this? All the conversion methods from PHP that I tried
>> failed, as the text seems to really consist of the individual ASCII
>> chars like "&", "#". Therefore, a normal to-unicode-conversion doesn't
>> change anything.
>>
>> Thanks in advance,
>> Andreas Jakl
>>
>>  
>>

--- End Message ---
--- Begin Message ---
On Thu, 2005-11-03 at 20:58 -0800, bruce wrote:
> ok..
> 
> show us the connection code you're using to access the db..

I think you're on the wrong track. The connection code is known good
because it works in CLI mode.

What I would like to see is any notable differences between the output
of phpinfo() in CLI mode and through your webserver.

Jasper

> -----Original Message-----
> From: Robbert van Andel [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 03, 2005 8:37 PM
> To: [EMAIL PROTECTED]; 'David Tulloh'
> Cc: [email protected]
> Subject: RE: [PHP] PHP from the command line
> 
> 
> From the web, all I get is that the connection failed.  Nothing more useful
> than that.  PHP_INFO tells me that it sees the MS SQL ini file and the MS
> SQL configuration settings are displayed further down the list.
> 
> The username and password work in the script because I am able to connect
> using the exact same script from the command line.
> 
> -----Original Message-----
> From: bruce [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 03, 2005 7:28 PM
> To: 'David Tulloh'; 'Robbert van Andel'
> Cc: [email protected]
> Subject: RE: [PHP] PHP from the command line
> 
> what's the error that you're getting from the web php app...
> 
> also, what do you get from the php_info() for the web app? this tells you a
> great deal of information regarding your php/web setup (if you didn't
> already know!)
> 
> get us the information and we can help track down your issue...
> 
> also, is there a user/passwd setup to access the mssql db?
> 
> -bruce
> 
> 
> -----Original Message-----
> From: David Tulloh [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 03, 2005 6:22 PM
> To: Robbert van Andel
> Cc: [email protected]
> Subject: Re: [PHP] PHP from the command line
> 
> 
> Many linux distributions use a different php config file for the apache
> and cli versions.
> Using two different configurations might explain the problems you are
> seeing.
> 
> David
> 
> Robbert van Andel wrote:
> 
> >I run a linux webserver with Apache and PHP5.  Does anyone out there know
> >why a php script would work from the command line but fail when running it
> >through a web browser?  In particular, I'm trying to get a connection to an
> >MSSQL server but PHP fails to connect when I run the script with a web
> >browser.  My regular scripts (i.e. ones without any mssql functions) work
> >fine from the browser. When I run the script from the command line, the
> >connection succeeds.  Any idea if this is a PHP error or an apache error.
> If
> >this is an apache error, does anyone know what I need to search for to find
> >an answer?
> >
> >
> >
> >Thanks,
> >
> >Robbert van Andel
> >
> >
> >
> >
> >
> >
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
-- 
Jasper Bryant-Greene
General Manager
Album Limited

e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
b: http://jbg.name/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand

--- End Message ---
--- Begin Message ---
jasper,

what i meant to say is show us the code, as well as the output of the err
msgs generated by the connection code. in some cases, the app runs as a
different user when the code is run as the apache user or the 'command line'
user.

if you're going to try to figure out the issue/problem, you need to look at
what might be the problem, and prioritize.

from my experience:
 -might be running as a different user
 -might be some weird setup having to do with the host/port addresses
 -might be weird php.ini config settings..
 -etc..

so rather than guess, let's get the guy's data/information and go from
there.
but all things remaning equal, i'm inclined to agree that the same code
'should' work.

so, give us the data/output, and we'll see what it looks like. i'm also
willing to bet that the issue will be something fairly simple/trivial to
fix.

-bruce


-----Original Message-----
From: Jasper Bryant-Greene [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 03, 2005 11:30 PM
To: [EMAIL PROTECTED]
Cc: 'Robbert van Andel'; 'David Tulloh'; [email protected]
Subject: RE: [PHP] PHP from the command line


On Thu, 2005-11-03 at 20:58 -0800, bruce wrote:
> ok..
>
> show us the connection code you're using to access the db..

I think you're on the wrong track. The connection code is known good
because it works in CLI mode.

What I would like to see is any notable differences between the output
of phpinfo() in CLI mode and through your webserver.

Jasper

> -----Original Message-----
> From: Robbert van Andel [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 03, 2005 8:37 PM
> To: [EMAIL PROTECTED]; 'David Tulloh'
> Cc: [email protected]
> Subject: RE: [PHP] PHP from the command line
>
>
> From the web, all I get is that the connection failed.  Nothing more
useful
> than that.  PHP_INFO tells me that it sees the MS SQL ini file and the MS
> SQL configuration settings are displayed further down the list.
>
> The username and password work in the script because I am able to connect
> using the exact same script from the command line.
>
> -----Original Message-----
> From: bruce [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 03, 2005 7:28 PM
> To: 'David Tulloh'; 'Robbert van Andel'
> Cc: [email protected]
> Subject: RE: [PHP] PHP from the command line
>
> what's the error that you're getting from the web php app...
>
> also, what do you get from the php_info() for the web app? this tells you
a
> great deal of information regarding your php/web setup (if you didn't
> already know!)
>
> get us the information and we can help track down your issue...
>
> also, is there a user/passwd setup to access the mssql db?
>
> -bruce
>
>
> -----Original Message-----
> From: David Tulloh [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 03, 2005 6:22 PM
> To: Robbert van Andel
> Cc: [email protected]
> Subject: Re: [PHP] PHP from the command line
>
>
> Many linux distributions use a different php config file for the apache
> and cli versions.
> Using two different configurations might explain the problems you are
> seeing.
>
> David
>
> Robbert van Andel wrote:
>
> >I run a linux webserver with Apache and PHP5.  Does anyone out there know
> >why a php script would work from the command line but fail when running
it
> >through a web browser?  In particular, I'm trying to get a connection to
an
> >MSSQL server but PHP fails to connect when I run the script with a web
> >browser.  My regular scripts (i.e. ones without any mssql functions) work
> >fine from the browser. When I run the script from the command line, the
> >connection succeeds.  Any idea if this is a PHP error or an apache error.
> If
> >this is an apache error, does anyone know what I need to search for to
find
> >an answer?
> >
> >
> >
> >Thanks,
> >
> >Robbert van Andel
> >
> >
> >
> >
> >
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Jasper Bryant-Greene
General Manager
Album Limited

e: [EMAIL PROTECTED]
w: http://www.album.co.nz/
b: http://jbg.name/
p: 0800 4 ALBUM (0800 425 286) or +64 21 232 3303
a: PO Box 579, Christchurch 8015, New Zealand

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
   Hi list,

  after upgrading to PHP 4.4.1, I'm having the following problem: Apache is 
running in prefork mode. index.php includes func.php, which defines some 
functions and connects to MySQL. For a while (1-2 requests) everything runs 
ok, except mysql sockets keep stacking up. And then - wham, suddenly, I'm 
getting errors:
Cannot redeclare mquery() (previously declared in /home/test/func.php:9) 
in /home/test/func.php on line 9

  If I wait a few seconds, it "works" for a couple of requests again. And then 
the error is back.

  What on EARTH is happening? My wild guess is, somehow the memory gets 
shared, and the previous script is still loaded into a thread when the new 
one is called, but how can this be happening?

  I would greatly appreciate any advice...

--- End Message ---
--- Begin Message ---
On Thursday 03 November 2005 19:12, twistednetadmin wrote:
My advise is not to use $_FILES['img']['type'] or use it with some switch 
statement.
Different browsers send different mime types for same image format. For 
example on mozila you have image/png on IE you have image/x-png (or vise 
versa)
Also the are different mimes for JPEG
image/jpg
image/jpeg
..........
image/gif
image/x-gif


You better see what is the type of the image when the error occurs.


> The errormessage is from this part of the script.
>
> echo "Result:<br>\n";
> echo "Now that didn't seem to work... <br>\n
> Did you try a wrong format or size? <br>\n
> File that failed--> (".$_FILES['guildimage']['name '].")<br>";
>
> So it seems that the file is wrong type or size, but as it works with the
> same picture from my own computer that is odd.
>
> The timeout part I have to check before I answer to, but I have 4mb
> connection and the last user it failed for has a 2mb connection. 300kb
> shouldn't make the script time out? Or could it? Where do I check the
> timeout settings btw? PHP.ini?
> Or can I run phpinfo() on it?

--- End Message ---
--- Begin Message ---
On Thu, 2005-10-13 at 09:25 -0400, John Nichel wrote:
> jonathan wrote:
> > do you then have to do the reverse operation to get it back for  
> > rendering. Since it was erroring on me during DOM creation, I feel  like 
> > I'm going around it to put it into a format it likes but then on  
> > display via XSL transformation, I will have to convert it back. Or am  I 
> > missing something?
> 
> I'm only on the sending end; I don't know if the people I send the 
> documents too have to convert it back.  Don't quote me on this, but if 
> you're going to display the information in a web browser, *I think* it 
> will display the decimal value properly.

Don't worry about being quoted on that -- it most definitely will. Using
decimal values in HTML entities is very common, especially for writing
non-ASCII and non-usual-HTML-entities characters (such as CJK Kanji,
mathematical operators or cyrillic glyphs) without worrying about the
transfer charset. Personally though, I usually convert into proper UTF-8
instead of using entities. It takes a *lot* less space, providing that
the web server is properly configured not to say that the document is
ISO-8859-1 or something.

Personally, I use a seven-liner perl script to convert the official HTML
entitity DTDs into a PHP include file:

print("<?php\n\$htmlentities = array(\n");
while(<>) {
    if(/<!ENTITY\s+(\w+)\s+CDATA\s+\"&\#(\d+);\"/) {
        print "\t\"$1\" => $2,\n";
    }
}
print("\t);\n?>\n");

The result is as follows:
<?php
$htmlentities = array(
        "nbsp" => 160,
        "iexcl" => 161,
        "cent" => 162,
        "pound" => 163,
        "curren" => 164,
        "yen" => 165,
        "brvbar" => 166,
        "sect" => 167,
        "uml" => 168,
        "copy" => 169,
        "ordf" => 170,
        "laquo" => 171,
        "not" => 172,
        "shy" => 173,
        "reg" => 174,
        "macr" => 175,
        "deg" => 176,
        "plusmn" => 177,
        "sup2" => 178,
        "sup3" => 179,
        "acute" => 180,
        "micro" => 181,
        "para" => 182,
        "middot" => 183,
        "cedil" => 184,
        "sup1" => 185,
        "ordm" => 186,
        "raquo" => 187,
        "frac14" => 188,
        "frac12" => 189,
        "frac34" => 190,
        "iquest" => 191,
        "Agrave" => 192,
        "Aacute" => 193,
        "Acirc" => 194,
        "Atilde" => 195,
        "Auml" => 196,
        "Aring" => 197,
        "AElig" => 198,
        "Ccedil" => 199,
        "Egrave" => 200,
        "Eacute" => 201,
        "Ecirc" => 202,
        "Euml" => 203,
        "Igrave" => 204,
        "Iacute" => 205,
        "Icirc" => 206,
        "Iuml" => 207,
        "ETH" => 208,
        "Ntilde" => 209,
        "Ograve" => 210,
        "Oacute" => 211,
        "Ocirc" => 212,
        "Otilde" => 213,
        "Ouml" => 214,
        "times" => 215,
        "Oslash" => 216,
        "Ugrave" => 217,
        "Uacute" => 218,
        "Ucirc" => 219,
        "Uuml" => 220,
        "Yacute" => 221,
        "THORN" => 222,
        "szlig" => 223,
        "agrave" => 224,
        "aacute" => 225,
        "acirc" => 226,
        "atilde" => 227,
        "auml" => 228,
        "aring" => 229,
        "aelig" => 230,
        "ccedil" => 231,
        "egrave" => 232,
        "eacute" => 233,
        "ecirc" => 234,
        "euml" => 235,
        "igrave" => 236,
        "iacute" => 237,
        "icirc" => 238,
        "iuml" => 239,
        "eth" => 240,
        "ntilde" => 241,
        "ograve" => 242,
        "oacute" => 243,
        "ocirc" => 244,
        "otilde" => 245,
        "ouml" => 246,
        "divide" => 247,
        "oslash" => 248,
        "ugrave" => 249,
        "uacute" => 250,
        "ucirc" => 251,
        "uuml" => 252,
        "yacute" => 253,
        "thorn" => 254,
        "yuml" => 255,
        "fnof" => 402,
        "Alpha" => 913,
        "Beta" => 914,
        "Gamma" => 915,
        "Delta" => 916,
        "Epsilon" => 917,
        "Zeta" => 918,
        "Eta" => 919,
        "Theta" => 920,
        "Iota" => 921,
        "Kappa" => 922,
        "Lambda" => 923,
        "Mu" => 924,
        "Nu" => 925,
        "Xi" => 926,
        "Omicron" => 927,
        "Pi" => 928,
        "Rho" => 929,
        "Sigma" => 931,
        "Tau" => 932,
        "Upsilon" => 933,
        "Phi" => 934,
        "Chi" => 935,
        "Psi" => 936,
        "Omega" => 937,
        "alpha" => 945,
        "beta" => 946,
        "gamma" => 947,
        "delta" => 948,
        "epsilon" => 949,
        "zeta" => 950,
        "eta" => 951,
        "theta" => 952,
        "iota" => 953,
        "kappa" => 954,
        "lambda" => 955,
        "mu" => 956,
        "nu" => 957,
        "xi" => 958,
        "omicron" => 959,
        "pi" => 960,
        "rho" => 961,
        "sigmaf" => 962,
        "sigma" => 963,
        "tau" => 964,
        "upsilon" => 965,
        "phi" => 966,
        "chi" => 967,
        "psi" => 968,
        "omega" => 969,
        "thetasym" => 977,
        "upsih" => 978,
        "piv" => 982,
        "bull" => 8226,
        "hellip" => 8230,
        "prime" => 8242,
        "Prime" => 8243,
        "oline" => 8254,
        "frasl" => 8260,
        "weierp" => 8472,
        "image" => 8465,
        "real" => 8476,
        "trade" => 8482,
        "alefsym" => 8501,
        "larr" => 8592,
        "uarr" => 8593,
        "rarr" => 8594,
        "darr" => 8595,
        "harr" => 8596,
        "crarr" => 8629,
        "lArr" => 8656,
        "uArr" => 8657,
        "rArr" => 8658,
        "dArr" => 8659,
        "hArr" => 8660,
        "forall" => 8704,
        "part" => 8706,
        "exist" => 8707,
        "empty" => 8709,
        "nabla" => 8711,
        "isin" => 8712,
        "notin" => 8713,
        "ni" => 8715,
        "prod" => 8719,
        "sum" => 8721,
        "minus" => 8722,
        "lowast" => 8727,
        "radic" => 8730,
        "prop" => 8733,
        "infin" => 8734,
        "ang" => 8736,
        "and" => 8743,
        "or" => 8744,
        "cap" => 8745,
        "cup" => 8746,
        "int" => 8747,
        "there4" => 8756,
        "sim" => 8764,
        "cong" => 8773,
        "asymp" => 8776,
        "ne" => 8800,
        "equiv" => 8801,
        "le" => 8804,
        "ge" => 8805,
        "sub" => 8834,
        "sup" => 8835,
        "nsub" => 8836,
        "sube" => 8838,
        "supe" => 8839,
        "oplus" => 8853,
        "otimes" => 8855,
        "perp" => 8869,
        "sdot" => 8901,
        "lceil" => 8968,
        "rceil" => 8969,
        "lfloor" => 8970,
        "rfloor" => 8971,
        "lang" => 9001,
        "rang" => 9002,
        "loz" => 9674,
        "spades" => 9824,
        "clubs" => 9827,
        "hearts" => 9829,
        "diams" => 9830,
        "quot" => 34,
        "amp" => 38,
        "lt" => 60,
        "gt" => 62,
        "OElig" => 338,
        "oelig" => 339,
        "Scaron" => 352,
        "scaron" => 353,
        "Yuml" => 376,
        "circ" => 710,
        "tilde" => 732,
        "ensp" => 8194,
        "emsp" => 8195,
        "thinsp" => 8201,
        "zwnj" => 8204,
        "zwj" => 8205,
        "lrm" => 8206,
        "rlm" => 8207,
        "ndash" => 8211,
        "mdash" => 8212,
        "lsquo" => 8216,
        "rsquo" => 8217,
        "sbquo" => 8218,
        "ldquo" => 8220,
        "rdquo" => 8221,
        "bdquo" => 8222,
        "dagger" => 8224,
        "Dagger" => 8225,
        "permil" => 8240,
        "lsaquo" => 8249,
        "rsaquo" => 8250,
        "euro" => 8364,
        );
?>

Hope it helps.
Fredrik Tolf

--- End Message ---
--- Begin Message ---
On 03 November 2005 15:26, Brent Baisley wrote:

> You only need one "if". The parenthesis will evaluation order.
> 
> if( ( !empty( $var1 )  || ( !empty( $var2 ) && !empty( $var3 ) ) ||
> $var1 == "something"  ) 

However, the $var1=="something" test is redundant in this, since if that is 
true the !empty($var1) test will also be true and the rest of the test will not 
be evaluated.

Cheers!

Mike

---------------------------------------------------------------------
Mike Ford,  Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS,  LS6 3QS,  United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730      Fax:  +44 113 283 3211 


To view the terms under which this email is distributed, please go to 
http://disclaimer.leedsmet.ac.uk/email.htm

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

I have a php page which contains three combo boxes.
The first one will have the value 

from the mysql database table on page load itself.

Then depending upon the value selected in the first
combobox the second combo box 

should be populated with the respective values from
another mysql database table, and 

once again depending upon the value selected in second
combobox the third combobox 

should be populated with the respective values from
one more different database table.

I have read through mailing list and also searched in
google and found that it can be 

done with javascript onblur function but nothing is
working. Here is the code:
------------------------------------------------------------------
<?php
include_once("inc\connection.inc");

//with this function first combobox will be populated
on pageload
function
display_db_combo($tablename,$columnname,$connection) 
{
        $query_string="select $columnname from $tablename";

        $result=mysql_query($query_string);
        
        while($row=mysql_fetch_array($result)) {
        
                        print("<option>$row[0]</option>");
                
        }

}
?>

<HTML>
<HEAD>
<TITLE>Untitled Page</TITLE>
<META NAME="Generator" CONTENT="Created by BlueVoda">
</HEAD>
<BODY bgcolor="#FFFFFF" text="#000000">
<DIV style="position:absolute; left:175px; top:70px;
width:592px; height:483px; 

z-index:24"  align="left" valign="top">
<FORM name="form_cust" method="POST"
action="thisform.php" 

enctype="multipart/form-data">

<DIV style="position:absolute; left:198px; top:65px;
width:6px; height:15px; z-index:0" 

 align="left" valign="top">
<FONT style="FONT-SIZE:9pt" color="#00008B"
face="Arial"><B>:</B></FONT>
</DIV>
<DIV style="position:absolute; left:198px; top:108px;
width:6px; height:15px; 

z-index:1"  align="left" valign="top">
<FONT style="FONT-SIZE:9pt" color="#00008B"
face="Arial"><B>:</B></FONT>
</DIV>
<DIV style="position:absolute; left:198px; top:167px;
width:6px; height:15px; 

z-index:2"  align="left" valign="top">
<FONT style="FONT-SIZE:9pt" color="#00008B"
face="Arial"><B>:</B></FONT>
</DIV>
<DIV style="position:absolute; left:65px; top:60px;
width:97px; height:22px; z-index:3" 

 align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#00008B"
face="Courier New"><B>Service</B></FONT>
</DIV>

<select name="D1" size="1"
style="position:absolute;left:230px;top:68px;z-index:7"
>
<?php
display_db_combo("service_master","service_name",$conn);?>
</select>

<DIV style="position:absolute; left:65px; top:106px;
width:83px; height:22px; 

z-index:4"  align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#00008B"
face="Courier New"><B>Product</B></FONT>
</DIV>
<select name="D2" size="1"
style="position:absolute;left:230px;top:108px;z-index:8">
</select>

<DIV style="position:absolute; left:65px; top:152px;
width:103px; height:44px; 

z-index:5"  align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#00008B"
face="Courier New"><B>Nature of 

Problem</B></FONT>
</DIV>
<select name="D3"
style="position:absolute;left:230px;top:170px;z-index:9"
size="1" 

value="">
</select>

<DIV style="position:absolute; left:177px; top:1px;
width:270px; height:22px; 

z-index:9"  align="center" valign="top">
<FONT style="FONT-SIZE:12pt" color="#00008B"
face="Courier New"><B><U>Complaint 

Registration</B></U></FONT>
</DIV>
<INPUT type="reset" name="Edit_Reset" value="Reset" 

style="position:absolute;left:376px;top:429px;z-index:10">
<INPUT type="submit" name="comp_send" value="Send" 

style="position:absolute;left:148px;top:429px;z-index:11">
<INPUT type="text" 

style="position:absolute;left:230px;top:240px;width:161px;z-index:12"
size="23" 

name="T3" value="">
<DIV style="position:absolute; left:257px; top:330px;
width:60px; height:18px; 

z-index:13"  align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#00008B"
face="Courier New"><B>Upper</B></FONT>
</DIV>
<DIV style="position:absolute; left:257px; top:359px;
width:72px; height:18px; 

z-index:14"  align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#00008B"
face="Courier New"><B>Middle</B></FONT>
</DIV>
<DIV style="position:absolute; left:257px; top:386px;
width:60px; height:18px; 

z-index:15"  align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#00008B"
face="Courier New"><B>Lower</B></FONT>
</DIV>
<DIV style="position:absolute; left:65px; top:240px;
width:123px; height:66px; 

z-index:16"  align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#00008B"
face="Courier New"><B>Problem 

Description</B></FONT>
</DIV>
<DIV style="position:absolute; left:198px; top:240px;
width:6px; height:15px; 

z-index:17"  align="left" valign="top">
<FONT style="FONT-SIZE:9pt" color="#00008B"
face="Arial"><B>:</B></FONT>
</DIV>
<DIV style="position:absolute; left:65px; top:310px;
width:123px; height:44px; 

z-index:18"  align="left" valign="top">
<FONT style="FONT-SIZE:12pt" color="#00008B"
face="Courier New"><B>Severity of 

Problem</B></FONT>
</DIV>
<DIV style="position:absolute; left:198px; top:329px;
width:6px; height:15px; 

z-index:19"  align="left" valign="top">
<FONT style="FONT-SIZE:9pt" color="#00008B"
face="Arial"><B>:</B></FONT>
</DIV>
<INPUT type="radio" name="" value="" 

style="position:absolute;left:221px;top:330px;z-index:20">
<INPUT type="radio" name="" value="" 

style="position:absolute;left:221px;top:357px;z-index:21">
<INPUT type="radio" name="" value="" 

style="position:absolute;left:221px;top:381px;z-index:22">
<INPUT type="submit" name="comp_preview"
value="Preview" 

style="position:absolute;left:253px;top:429px;z-index:23">

</FORM>

</DIV>
</BODY>
</HTML>
------------------------------------------------------------------

In the above code there are three combo box namely D1,
D2 and D3.

D1 will be populated on pageload. Now D2 should be
populated on event like 'onblur' to D1 and similarly
D3 should be populated on event like 'onblur' to D2.

Pl. give me the exact code or proper guideline how
should I accomplish this on the same page.

Appreciate your replies.

Thanks and regards.

BJV


                
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

--- End Message ---

Reply via email to