[PHP] New way to make select boxes auto select

2002-07-25 Thread Nathan Cook
a value of "selected" $$interest = "selected"; print("- Select One -\n"); print("Teacher\n"); print("Lego Enthusiast\n"); print("Student\n"); print("Homeschool Parent\n"); print("Browsing\n"); print("Aftersc

Re: [PHP] New way to make select boxes auto select

2002-07-25 Thread Nathan Cook
> // buildSelect -- return a Select box named $selectName based on key value array $selectArray > ... > // $arr = array('MD'=>'selected','DC'=>'','VA'=>''); How are you able to quickly and painlessly determine which key gets the selected value, from form submission data, when building the initial

Re: [PHP] New way to make select boxes auto select

2002-07-25 Thread Nathan Cook
From: "Johnson, Kirk" <[EMAIL PROTECTED]> > Do you know what happens here if the error reporting is set to max? > Are a bunch of "unitialized variables" warnings issued? That would be my assumption. I suppose you could initialize the variables first to circumvent that. I was more or less looking

Re: [PHP] Re: New way to make select boxes auto select

2002-07-26 Thread Nathan Cook
lications. But I like that method very much! [ Nathan Cook | [EMAIL PROTECTED] ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] I need some help: PHP portal site/creating email accounts through form submission

2002-07-31 Thread Nathan Cook
most secure solution but there are some ways to secure it through data validation. Does that make sense? Hope so, Nathan Cook -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] CyberCash Libraries?

2001-01-15 Thread Nathan Cook
Nevermind, cybercash.com has an MCK (Merchant Kit) that has the libs in it. Thx, though. -nc --- .:: Nathan Cook- Network/Security Admin office: 208.343.3110 - Web Programmer email

[PHP] BC Math

2001-01-15 Thread Nathan Cook
BC Math, Arbitrary Precision Numbers? Can someone shed some light on these functions for me? Thanks. --- .:: Nathan Cook- Network/Security Admin office: 208.343.3110 - Web

Re: [PHP] string replace

2001-01-16 Thread Nathan Cook
you follow an 8.3 or 8.4 character filename structure you will be fine. .:: Nathan Cook - Original Message - From: "Tait Grove" <[EMAIL PROTECTED]> To: "PHP GENERAL" <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 1:01 PM Subject: [PHP] string replace Ho

Re: [PHP] How to keep unauthorized viewers out

2001-01-16 Thread Nathan Cook
I would put it in the subsequent include page. if($PHP_AUTH_USER) { includes(); } else { print("You are not authorized to view this page"); } --- .:: Nathan Cook- Network/Secu

Re: [PHP] Ultimate Editor

2001-01-18 Thread Nathan Cook
If I may make a session download phped.com or find another editor (notepad) and then use that in conjunction with ftp net drive (look for it on the web somewhere), it will allow you view the ftp servers drive, copy and paste and save directly to the server... works very nice. .:: Nathan Cook

Re: [PHP] Local Path of Script

2001-01-22 Thread Nathan Cook
I just do: $LocalScript = $DOCUMENT_ROOT . $PHP_SELF; .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.343.3110 ][ pager - 208.387.9983 ] - Original Message - From: "Karl J. Stubsjoen" <[EMAIL PROTECTED]> T

[PHP] easy question.

2001-01-24 Thread Nathan Cook
I have always wrote code this like: if(($fname) && ($lname) && ($email)) { echo "test"; } Is there an easier way to write the IF line? Thank You .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.34

Re: [PHP] payment

2001-03-09 Thread Nathan Cook
uot;CyberCash Internet Payment Processing Service to Continue without Interruption." Is this incorrect? When you say that it 'died', what are you referring to? .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. PCS Edventures.com Systems & Network Administrator :: Programm

Re: [PHP] Radio Button Returns (Pleasre Read)

2001-03-16 Thread Nathan Cook
This question baffles me. Just to clarify do you have at least two radio buttons on this page and are they both under the same name? It also could be if the HTML you mailed the list is the same you have in your generated page then you may want an '=' sign between the value"ind

[PHP] String Type Unknown

2001-04-30 Thread Nathan Cook
c6c20666163696c697461746f72732073686f756c64207363686564756c652074696d6520746f207 4616b652074686973206164646974696f6e616c20636f757273652e7870 And I don't know what type it is. It is it a binary string? Can I convert it to text and if so, how? Thank You, Nathan Cook [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] String Type Unknown

2001-05-02 Thread Nathan Cook
>From a field in an instantdb database (http://instantdb.enhydra.org) Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Anuradha Ratnaweera" <[EMAIL PROTECTED]> To: "Nathan Cook" <[EMAIL PROTECTED]> Cc: "Php List" <[EMAIL PROTECTE

Re: [PHP] String Type Unknown

2001-05-02 Thread Nathan Cook
Thank you, for your help it works great! Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Rudolf Visagie" <[EMAIL PROTECTED]> To: "Nathan Cook" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 4:47 AM Subject:

Re: [PHP] PC MAG article

2001-05-09 Thread Nathan Cook
my resume?) Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Mike" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2001 6:19 PM Subject: [PHP] PC MAG article > As a devoted php programmer I was surprised how bad PC MAG blasted php this >

Re: [PHP] PC MAG article

2001-05-09 Thread Nathan Cook
Did you notice how they mentioned nothing to the fact that PHP _does_ support ODBC? To think if they keep printing articles like that then macromedia just might advertise with them... Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Ryan Christensen" <[EMAIL P

Re: [PHP] running a stand-alone PHP program

2001-05-16 Thread Nathan Cook
by: # /usr/local/bin/php /path/to/script/scriptname Have Fun! Nathan Cook [EMAIL PROTECTED] - Original Message - From: "midget2000x" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 16, 2001 2:52 PM Subject: RE: [PHP] running a stand-alone PHP program >

Re: [PHP] Get page height?

2001-05-16 Thread Nathan Cook
header_redirect to give php that data. sorry I don't have a code snippet. JavaScript (AFAIK) can only tell the dimensions of the window/frame the page is being drawn in. Nathan Cook [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: [PHP] math - somethings wrong

2001-05-16 Thread Nathan Cook
to check math! ;-) print("Percentage: $percentage | Capped: $capped"); } else { $capped=$target_roids*($percentage/100); // Print the vars to check math! ;-) print("Percentage: $percentage | Capped: $capped"); } Good Luck! Nathan Cook [EMAIL PROTECTED] -- PHP General

Re: [PHP] preprocessing

2001-05-17 Thread Nathan Cook
1=test&var2=testing";); That way the user will never have to interact with page 'b'. Note: do not start any output before the header command. If that doesn't work then there should be some other way of assembling cgi-post headers with the header() function. Good Luck. Nathan Co

Re: [PHP] running a stand-alone PHP program

2001-05-17 Thread Nathan Cook
Not if you are currently running it as an apache module. If you are running it as a cgi, then it might. But it sounds as if you are running it as an apache module. Nathan Cook [EMAIL PROTECTED] - Original Message - From: "midget2000x" <[EMAIL PROTECTED]> To: "

Re: Re: [PHP] preprocessing

2001-05-17 Thread Nathan Cook
In that case you may be able to assemble the headers of a get using the header() function. I will look up a few more things for you and get back to you after lunch! :) Nathan Cook [EMAIL PROTECTED] - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: Re: [PHP] preprocessing

2001-05-17 Thread Nathan Cook
mp;$errstr); if (!$socket) { $Result["errno"] = $errno; $Result["errstr"] = $errstr; return $Result; } $idx = 0; fputs($socket, $ReqHeader); while (!feof($socket)) { $Result[$idx++] = fgets($socket, 128); } return $Result; } ?

Re: [PHP] running a stand-alone PHP program

2001-05-17 Thread Nathan Cook
Does your script happen to look like this? #!/usr/local/bin/php To: "Nathan Cook" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, May 17, 2001 3:15 PM Subject: Re: [PHP] running a stand-alone PHP program > Excellent. I got this working. From a comman

[PHP] Line Breaks in

2001-06-28 Thread Nathan Cook
breaks in the db). If you can shed any light on this subject, please share. Thank You, Nathan Cook [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e

Re: [PHP] Credit card number checker?

2001-07-16 Thread Nathan Cook
lidationSolution($Number) == TRUE) { echo "GOOD"; } else { echo "Bad card!"; } --- Good Luck! Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Dr. Evil" <[EMAIL PROTECTED]> To:

Re: [PHP] note to PHP developers

2001-07-17 Thread Nathan Cook
On a side note, qmail has a wrapper that pretends to be sendmail. You can overwrite the /bin/mail with it and it will behave and accept mail just like sendmail, but send it through qmail-smtp. Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Michael Geier, CDM Systems

Re: [PHP] Big difference?

2001-07-25 Thread Nathan Cook
Not if there are syntax errors like misplaced quotes (", '). Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Henrik Hansen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 25, 2001 3:54 PM Subject: Re: [PHP] Big difference?

Re: [PHP] Sorry To Repeat Repeat Repeat Repeat Re.......

2001-07-26 Thread Nathan Cook
Just check out px.sklar.com. Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, July 26, 2001 10:14 PM Subject: [PHP] Sorry To Repeat Repeat Repeat Repeat Re... Could you peo

Re: [PHP] Find and Replace

2001-07-30 Thread Nathan Cook
I just setup apache to parse *.inc files through php. Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Shrout, Ryan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 30, 2001 1:06 PM Subject: [PHP] Find and Replace > This isn't exa

Re: [PHP] Being a SERVER (you cant kill me, im.... DAMN!!)

2001-08-01 Thread Nathan Cook
http://www.devshed.com/Server_Side/PHP/SoothinglySeamless/print.html Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Kyle Smith" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 01, 2001 11:32 PM Subject: [PHP] Being a SERVER (you can

Re: [PHP] Getting MySQL Query Times.

2001-08-23 Thread Nathan Cook
idea of processing time. Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Gabe da Silveira" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 23, 2001 10:22 AM Subject: [PHP] Getting MySQL Query Times. > I was looking thru the mysql fun

Re: [PHP] php from the command line

2001-09-25 Thread Nathan Cook
n/php ... Then just run your executable file like you would any other. Nathan Cook [EMAIL PROTECTED] - Original Message - From: "Jimmy Bäckström" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 25, 2001 10:21 AM Subject: [PHP] php from the command line

Re: [PHP] php from the command line

2001-09-25 Thread Nathan Cook
> Simply put > > /usr/local/bin/php -q to the top of your script ... > i've written one a while ago an email roboter ... it works on command line But you realize you have to have command line php compiled first, right? Nathan Cook [EMAIL PROTECTED] -- PHP General M

Re: [PHP] Hello

2001-01-26 Thread Nathan Cook
Isn't it the journey what makes the goal sweeter?? .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.343.3110 ][ pager - 208.387.9983 ] - Original Message - From: "Dallas Kropka" <[EMAIL PROTECTED]> To: <[EM

Re: [PHP] sessions with frames

2001-02-01 Thread Nathan Cook
When you define the index.php and load the frames go ahead and start the session and then pass the variables to the frame like this: and then on main.php if you echo $var1 it will it will print "test" Good Luck! .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network

Re: [PHP] Dynamic Drop-down list

2001-02-08 Thread Nathan Cook
Moreover, you can put SELECTED only on the item you want to show up first. .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.343.3110 ][ pager - 208.387.9983 ] - Original Message - From: "DanO" <[EMAIL PROTECTED]> T

[PHP] Web Based Project Management Tools

2001-02-08 Thread Nathan Cook
Do any of you know of a comprehensive web-based project management tool written in php? Thank You! .:: Nathan Cook [ [EMAIL PROTECTED] ] ::. Systems & Network Administrator :: Programmer [ phone - 208.343.3110 ][ pager - 208.387.9983 ] -- PHP General Mailing List (http://www.php.net/