Re: [PHP] cookies and clocks

2001-04-25 Thread DanO
look at it this way: you are dealing with an INTERVAL of time, thus the only reason you really need javascript is in the construction of a date object. you can either import that object into php as a string, or you can actually go the extra mile and set the cookie in javascript. HTH, DanO

Re: [PHP] HTML and PHP?

2001-04-13 Thread DanO
try this: jldsfajlf;dsajfl;dkfl;dsa EOP; ?> AFAIK it is the easiest way to do multi-line printing! DanO ""Jason Caldwell"" <[EMAIL PROTECTED]> wrote in message 9b868e$2ca$[EMAIL PROTECTED]">news:9b868e$2ca$[EMAIL PROTECTED]... > Is there a utility

RE: [PHP] while loop and modulus?

2001-02-27 Thread DanO
by default, HTML browsers, according to spec, will handle the rendering of any and all empty cells at the end of a row. even netscape ;) so, this is technically not a bug. my question is how it works when you have 7 photos in a row, or 4? DanO -Original Message- From: James, Yz

RE: [PHP] CORBA?

2001-02-16 Thread DanO
how is this type of comment on a mailing list productive? DanO -Original Message- From: Gerald Gutierrez [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 3:26 PM To: Jonathan Sharp; [EMAIL PROTECTED] Subject: Re: [PHP] CORBA? At 02:49 PM 2/16/2001 -0800, Jonathan Sharp

RE: [PHP] using tar to untar a file into a certain dir... In php of course

2001-02-16 Thread DanO
good point. i should think before i post. here is another go: i can't test this as i am on a windows box at the moment, but i think you can get the gist of it. change the working directory of php and then extract from another file. DanO -Original Message- From: Brandon O

RE: [PHP] Specific PHP/JSP questions

2001-02-16 Thread DanO
see: http://www.php.net/manual/en/function.header.php it works just like JSP. DanO -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 2:01 PM To: Gerald Gutierrez; [EMAIL PROTECTED] Subject: Re: [PHP] Specific PHP/JSP questions

RE: [PHP] using tar to untar a file into a certain dir... In php of course

2001-02-16 Thread DanO
have you tried: mv mytar.tar /my/path/to/dir/; tar -xpf /my/path/to/dir/mytar.tar this should work, but there may be a more direct unix-y way to do it. DanO -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 1:49 PM To

RE: [PHP] How to make text BOLD

2001-02-16 Thread DanO
a tip: you'll have to apply the style to both and to make it work in microscape. DanO -Original Message- From: Brian V Bonini [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 8:23 AM To: Nguyen, David M Cc: PHP Lists Subject: RE: [PHP] How to make text BOLD How

RE: [PHP] How to make text BOLD

2001-02-16 Thread DanO
the problem is obvious: you are trying to send HTML in a plain text email. see : http://www.php.net/manual/en/function.mail.php i would actually recommend that you DO NOT send HTML email and leave it in plain text. DanO -Original Message- From: Nguyen, David M [mailto:[EMAIL

RE: [PHP] javascript in PHP statement

2001-02-15 Thread DanO
ables themselves and construct and run the query in a new request using php. you use the same page with control structures on it. DanO -Original Message- From: Michael Hall [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 15, 2001 12:06 PM To: Matt Davis Cc: [EMAIL PROTECTED] Subjec

RE: [PHP] Dynamic Drop-down list

2001-02-08 Thread DanO
sorry for the spam, sometime's i'm stupid ;) yes nathan is indeed correct that SELECTED should only be used once in an index, on the item you want to show up first. more clearly, if multiple instances occur, any new instance of SELECTED will supersede any previous insta

RE: [PHP] Dynamic Drop-down list

2001-02-08 Thread DanO
wrong. you can put it on any element in the list. cut'n'paste and try for yourself: selected DanO -Original Message- From: Nathan Cook [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 5:10 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Dy

RE: [PHP] Dynamic Drop-down list

2001-02-08 Thread DanO
the 'SELECTED' attribute will select an item in a dropdown list. by default, with no SELECTED attribute, the first item will be shown and selected. make sense? DanO -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 08, 2001 5:00 PM

RE: [PHP] Error with Cookies and SSI

2001-02-06 Thread DanO
fear not the javascript. it is your friend. DanO -Original Message- From: Ben Wiechman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 12:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Error with Cookies and SSI I am having a problem getting a php script to read a cookie that s

RE: [PHP] Post without submit?

2001-01-25 Thread DanO
yes, with javascript: function sendIt(form) { form.submit(); return true; } function startIt() { setTimeout('sendIt(document.formName)',3000); } timeout is in milliseconds. you could alternately pass document.formName directly to sendIt. HTH, DanO > -Original Messag

RE: [PHP] Profanity Filter

2001-01-19 Thread DanO
why use a DB? just create an array of dirty words then loop your input thru it with a regex. DanO -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, January 19, 2001 11:09 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Profanity

RE: [PHP] decimal point movement...

2001-01-18 Thread DanO
cuz i didn't know it existed ;) my point is that math should be used instead of a regex as it is more efficient. DanO -Original Message- From: jeremy brand [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 2:06 PM To: DanO Cc: Php-General@Lists. Php. Net Subject: RE:

RE: [PHP] decimal point movement...

2001-01-18 Thread DanO
why go thru the costly overhead of a regex when you can use math? ex: you divide the number by 100 to push the decimal back, and, if there is no remainder (by modulus division), you append .00 to the variable. DanO -Original Message- From: Robert Collins [mailto:[EMAIL PROTECTED

RE: [PHP] question (as if anything else would be in an email to the list...)

2001-01-18 Thread DanO
just write a js function like: --cut here-- <!-- function changeValue(newValue) { document.formname.inputNameToChange.value = newValue; //here is alert to show you the thingy alert(document.formname.inputNameToChange.value); } //--> label1 label2 --end cutting-- DanO (javascr

[PHP] on style (was mixing PHP and HTML code)

2001-01-12 Thread DanO
in if (condition) statements. we all benefit from writing legible code, plain and simple. DanO -Original Message- From: Mark Maggelet [mailto:[EMAIL PROTECTED]] Sent: Friday, January 12, 2001 11:40 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] mixing HTML and PHP code

RE: [PHP] mixing HTML and PHP code

2001-01-11 Thread DanO
it's valid to use single-quotes, double-quotes, or NO quotes. specs, anyone? --- The value of the attribute may be either: A string literal, delimited by single quotes or double quotes and not containing any occurrences of the delimiting character. (7) http://www.w3.org/MarkUp/html-

RE: [PHP] Dynamic 'left menu's' on site: Like a windows explorersystem???

2001-01-11 Thread DanO
ally), it AIN'T php. DanO -Original Message- From: Jason Murray [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:57 PM To: 'DanO'; Php-General@Lists. Php. Net Subject: RE: [PHP] Dynamic 'left menu's' on site: Like a windows explorersystem??? &g

RE: [PHP] Dynamic 'left menu's' on site: Like a windows explorersystem???

2001-01-11 Thread DanO
-side application of code. DanO -Original Message- From: Alex Black [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 11, 2001 3:31 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Dynamic 'left menu's' on site: Like a windows explorersystem??? you have two choices: yes, p

RE: [PHP] Function -> Sending URL's

2001-01-11 Thread DanO
ok, that makes sense now: Link Description"; return $urlstring_new; } $script = "asdfasdf.php3"; $varname = "TESTNAME"; echo passDataQuery($script,$varname); ?> you could alternately perform the dataQuery statements with passDataQuery. DanO -Ori

RE: [PHP] Function -> Sending URL's

2001-01-11 Thread DanO
sorry, but i didn't fully understand what you are trying to do. you can also pass 2 variables to the function: Click Here"; } $script = 'asdfasdf.php3'; $company = 'TEST'; testPassVar($script,$company); ?> -Original Message- From: DanO [mailto:

RE: [PHP] Function -> Sending URL's

2001-01-11 Thread DanO
you are assigning the variable within the function, then calling the function with the variable. this is a variable scoping issue. try this: Click"; } $company = "TEST"; $url = 'asdfasdf.php3?name='.$company; testPassVar($url); ?> -Original Message- From: Abe [mailto:[EMAIL PROTECT

RE: [PHP] pause

2001-01-10 Thread DanO
don't forget javascript! you could validate the form before posting to php. DanO -Original Message- From: jeremy brand [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2001 1:18 PM To: Robert Ludvik Cc: [EMAIL PROTECTED] Subject: Re: [PHP] pause You could use custom