[PHP] JavaScript and Submit

2001-03-27 Thread elias
Actually, when I want to submit a form programmatically i do myform.submit() but what if i got like 3 submit buttons and each one with a name? ie: submit1 button, submit2 button, and submit3 button. if the users clicks on of them, i can check in the action file like: if (isset($submit1)) { ... } e

[PHP] how can I set up session

2001-03-27 Thread Jacky
Very stupid question, but I have one variable, say $name = "foo"; and I want that to assign on to session, reditect that to one cgi page and then go to one html page, and I want to have that session value here at this html page, see what I mean? I am using php3. How do I set session up at the f

Re: [PHP] Sessions to password protect directory?

2001-03-27 Thread Kyutums
Will this be able to protect the images in the directory? For example, if someone tries to access an image in the directory, will the "auth.php" be executed? Thanks for everything. - Kyutums "PHPBeginner.com" wrote: > All you need is to add this into .htaccess > > php_value auto_prepend auth.p

[PHP] Post but not Post

2001-03-27 Thread elias
Hello. we all know that we can send variables to another PHP file via tag and with post method. now i wonder if i can send variables from a script to another like POST method but not using form tags. like my question is how can i transfer data from form to form like the POST of the tag, but w/o

Re: [PHP] New PHP-GTK Site

2001-03-27 Thread elias
What is PHP-GTK? Can you just write me a short list of what it can do? "Joe Stump" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've noticed there isn't really a jumping off point for the PHP-GTK beginners > and users. I spent the last few hours throwing a s

RE: [PHP] Spacing between $row["City"],$row["State"]

2001-03-27 Thread Matt Williams
> Is there a way to get spacing between > $row["City"],$row["State"] in the html output? > I've tried echo "$row["City"], nbsp; $row["State"]"; > and a bunch of other things and get Parse error: parse > error, expecting `STRING' or `NUM_STRING' or `'$'' . Try echo $row["City"]." ".$row["State"

RE: [PHP] Blah I'm Stupid

2001-03-27 Thread Tim Ward
if (isset($url) && isset($text)) { $fp = fopen("file.txt", "w"); $anothervar = fputs($fp, "$text", "r+"); $anothervar = fclose($fp); } echo ""; echo ""; echo ""; echo ""; echo ""; Tim Ward Senior Systems Engineer Please refer to the following disclaimer i

[PHP] ab post file

2001-03-27 Thread Paul Juliano
Hello, I have a php page that accepsts posted data. I'd like to benchmark it using ab (apache benchmark). In the ab man page, it has a -p POSTFILE option. Does anyone here know what format should this post file contain? Thanks. __ www.edsamail.com -- PHP Gene

[PHP] HOWTO: arrays with forms

2001-03-27 Thread Philip Olson
-- HOWTO : Information on using arrays with forms (part 1 of n): -- A few array/form questions have popped up recently so here begins a HOWT

RE: [PHP] How to send attachment with email with php?

2001-03-27 Thread Jack Dempsey
this has been on the list many many times...check the e-mail functions at php.net and check the archives at http://marc.theaimsgroup.com -jack -Original Message- From: Carfield Yim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 27, 2001 11:54 PM To: [EMAIL PROTECTED] Subject: [PHP] How

Re: [PHP] How to send attachment with email with php?

2001-03-27 Thread Yasuo Ohgaki
Nothing special. You can compose and send with mail(). Read related RFC or grab code does that from elsewhere on net. -- Yasuo Ohgaki "Carfield Yim" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How to send attachment with email with php? > > -- > PHP Gener

Re: [PHP] How to send attachment with email with php?

2001-03-27 Thread Michael Hall
Use a mime_mail class. Have a look at the mail() function in the annotated PHP manual. There are a few mime_mail classes mentioned there with links. Mick On Wed, 28 Mar 2001, Carfield Yim wrote: > How to send attachment with email with php? > > -- > PHP General Mailing List (http://www.php.

php-general Digest 28 Mar 2001 07:16:28 -0000 Issue 593

2001-03-27 Thread php-general-digest-help
php-general Digest 28 Mar 2001 07:16:28 - Issue 593 Topics (messages 45762 through 45842): Re: Question on manually instantiating a file download 45762 by: Nuno Silva Re: Environment extract 45763 by: Mark Maggelet 45764 by: Philip Olson Re: Simple If-else statemen

[PHP] browscap.ini

2001-03-27 Thread Joseph Blythe
Hey all, I know you do not want to hear this question but after reading the list archives and doing extensive searches with google I have a really large internet headache, so here we go: Where do I get a browscap.ini file that is current and will work in Linux? The one suggested in the manual

[PHP] Re: [PHP-GTK] New PHP-GTK Site

2001-03-27 Thread Richard Watson
On Wednesday 28 March 2001 04:32, Joe Stump wrote: > I've noticed there isn't really a jumping off point for the PHP-GTK > beginners and users. Thanks for doing that. I'm PHP developer and I've been following this list for a while and I've been looking around for a good place to start on PHP-

Re: [PHP] Number/Letter Passwords

2001-03-27 Thread Yasuo Ohgaki
""Matt Stone"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi,Hi, > I have this code below which is supposed to be generating a password like > QCCQCN2-IUZ with 10 characters - All but three in the first section (7) and > three in the last part - but does no

Re: [PHP] array in sessions

2001-03-27 Thread Yasuo Ohgaki
"Christian Dechery" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How do I store (and update) an array within a session... > > Like I'd have > > session_start(); > $time["page1"]="20"; > > //here, should I do this? > session_register("time["page1"]"); > > //o

Re: [PHP] Curious

2001-03-27 Thread Stuart J. Browne
> >I am curious to know why you need to use the /n, and what it actually does, > >because I had a page that used them, and i removed them all and it still > >works fine. > > As far as the HTML output, it wont affect how it shows up on the screen, > but if you look at the HTML code, you will notice

[PHP] Caller's Line number?

2001-03-27 Thread elias
Hello, can i make a function that displays the __LINE__ of it's caller? ie: function show_caller_s_line() { echo "my caller's line is:" . __LINE__; } 1: blahblahblah 2: show_caller_s_line() 3: blahblah output should be: my caller's line is: 3 is that possible? thanks. -elias -- PH

[PHP] Betr.: [PHP] where to get info on developing web e-mail

2001-03-27 Thread M. Verheijen
Dear Khai, If you're planning to your webmailapplication in PHP visit www.phpposta.com. Right now it's in a developing stage but you can download the code and have a look at it. Ofcourse it's GPL, if you make some additions, changes in the code please let me know! Best regards, Maarten Verheij

[PHP] Passing Special Characters in Query String

2001-03-27 Thread Thomas Edison Jr.
I'm facing a problem with Special Characters ($, %, &, \, /, ;, :, ", ') etc.. We are sending a varibale in a query string like this : with $title containing multiple words & these special characters, it is not passed. I get an error. Without urlencode, multiple words are not passed with

Re: [PHP] Curious

2001-03-27 Thread Philip Olson
> I am curious to know why you need to use the /n, and what it actually does, > because I had a page that used them, and i removed them all and it still > works fine. Have a look here (the main manual is down this second) : http://uk.php.net/manual/en/language.types.string.php An example use

php-i18n Digest 28 Mar 2001 06:20:46 -0000 Issue 60

2001-03-27 Thread php-i18n-digest-help
php-i18n Digest 28 Mar 2001 06:20:46 - Issue 60 Topics (messages 146 through 146): Jstring does'nt seemed to be working,,, 146 by: Tatsuro Nakagawa Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL

[PHP-I18N] Jstring does'nt seemed to be working,,,

2001-03-27 Thread Tatsuro Nakagawa
Hi. I've installed a module named... php-4.0RC2_jstring-1.0.tar.gz and an instalation seemed prety good, with no errros. BUT, it doesn't work! An error like this shows on my browser: -- ERROR MES -- Warning: Unable to load dynamic library './jstring.so' - ./jstring.so: cannot open shared ob

[PHP] where to get info on developing web e-mail

2001-03-27 Thread Szeto
Hello, * i wondering where to get ifo on developing web e-mail * what standard should i use to deveping to software -- -- Any suggestions would be appreciated. Thank You Khai Mun, Ng -- PHP General Mailing List (http://www.php.net/

[PHP] guide on IMAP installation

2001-03-27 Thread Szeto
Hello, * i am new to linux environment, where can i get IMAP installation guide * where to get a proper IMAP software -- -- Any suggestions would be appreciated. Thank You Khai Mun, Ng -- PHP General Mailing List (http://www.php.ne

Re: [PHP] Curious

2001-03-27 Thread Chris Aitken
At 06:04 PM 28/03/2001, you wrote: >Hi, > >I am curious to know why you need to use the /n, and what it actually does, >because I had a page that used them, and i removed them all and it still >works fine. As far as the HTML output, it wont affect how it shows up on the screen, but if you look a

[PHP] Curious

2001-03-27 Thread YoBro
Hi, I am curious to know why you need to use the /n, and what it actually does, because I had a page that used them, and i removed them all and it still works fine. Also, is it seen as good or bad practive to use \" only when required or all the time. i.e echo ""; //Doesn't need to use \" echo "

Re: [PHP] Opening Remote Files

2001-03-27 Thread Yasuo Ohgaki
""Nick Norton"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Does anyone know of a method to read a remote password protected file > without actually downloading it locally and then reading? I suppose you must download file before reading. There are so many

Re: [PHP] sessions without cookies?

2001-03-27 Thread Yasuo Ohgaki
You can use URL mode for PHP4 session if you want session w/o cookie. How about read this link? http://www.zend.com/zend/tut/session.php -- Yasuo Ohgaki "duirfire" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, can someone point me toward a tutorial tha

Re: [PHP] "DF" output

2001-03-27 Thread Joe Brown
heh, dunno, maybe the $PATH environment var doesn't include /sbin or /usr/sbin. Test w 'ls' see if you can get a directory listing, at least? "Steven Shepherd" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Brad, > > Thanks for the response. Either method t

Re: [PHP] Im getting better :-) was Blah I'm Stupid

2001-03-27 Thread David Robley
On Wed, 28 Mar 2001 14:47, chris herring wrote: > ok here's the script i have, and i keep getting errors > > $fp = fopen("file.txt", "w"); > $fp = fputs("file.txt", "$text", "r+"); > $fp = fclose("file.txt"); > > echo ""; > echo " value=\"http://\">"; echo " size=\"20\">"; > echo " Link\">"; > >

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
ok here's the script i have, and i keep getting errors $text", "r+"); $fp = fclose("file.txt"); echo ""; echo ""; echo ""; echo ""; echo ""; ?> what's wrong with it. it says it's with the fputs and fclose things. - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: "chris

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread David Robley
On Wed, 28 Mar 2001 14:31, chris herring wrote: > - Original Message - > From: "David Robley" <[EMAIL PROTECTED]> > To: "chris herring" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Tuesday, March 27, 2001 10:19 PM > Subject: Re: [PHP] Blah I'm Stupid > > > On Wed, 28 Mar 2001 13:44,

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
how would you go about writing that data do a text file then? - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: "chris herring" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 10:19 PM Subject: Re: [PHP] Blah I'm Stupid > On Wed, 28 Mar 2001 13:44,

[PHP] How to send attachment with email with php?

2001-03-27 Thread Carfield Yim
How to send attachment with email with php? -- 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-mail: [EMAIL PROTECTED]

Re: [PHP] Blah I'm Stupid

2001-03-27 Thread David Robley
On Wed, 28 Mar 2001 13:44, chris herring wrote: > > I got a question here. How would you go about calling variables from a > form. I'm sure this is super-easy, but I'm a newbie. Any help would be > greatly appreciated. Just prefix the form object names with $ Say you have a text box set up like

RE: [PHP] Blah I'm Stupid

2001-03-27 Thread Peter Houchin
The input type name is the variable so say you have your variable = $foo Peter -Original Message- From: chris herring [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: [PHP] Blah I'm Stupid I got a question here. How wou

[PHP] Blah I'm Stupid

2001-03-27 Thread chris herring
I got a question here. How would you go about calling variables from a form. I'm sure this is super-easy, but I'm a newbie. Any help would be greatly appreciated.

[PHP] Re: [PHP-GTK] New PHP-GTK Site

2001-03-27 Thread Joe Stump
So tired I forgot to put in the URL: http://gtk.php-coder.net --Joe On Tue, Mar 27, 2001 at 10:32:26PM -0500, Joe Stump wrote: > I've noticed there isn't really a jumping off point for the PHP-GTK beginners > and users. I spent the last few hours throwing a site together that has the > basics t

[PHP] New PHP-GTK Site

2001-03-27 Thread Joe Stump
I've noticed there isn't really a jumping off point for the PHP-GTK beginners and users. I spent the last few hours throwing a site together that has the basics to fill this void. It has: 1.) An application archive 2.) News 3.) Discussion 4.) Helpful Links I've put up one of my initial apps an

RE: [PHP] No output

2001-03-27 Thread Jason Murray
> you can't stream output like that...netscape will wait until your > HTML output is done, but if you're infinitely looping, it won't be, and > you'll never get your tags.i've seen a number of > posts trying to do chats and flush() the output, but bottom line, if you > don't send it a com

Re: [PHP] No output

2001-03-27 Thread Jack Dempsey
you can't stream output like that...netscape will wait until your HTML output is done, but if you're infinitely looping, it won't be, and you'll never get your tags.i've seen a number of posts trying to do chats and flush() the output, but bottom line, if you don't send it a complete html

[PHP] Problems getting php to restart samba

2001-03-27 Thread Tim Churchward
I've an interesting problem that after using php to restart SAMBA the server no longer parses php to that particular browser. This is really really weird!! The situation is that I've built a php tool to restart server services such as atalk and samba. Starting/Restarting/Stopping atalk works bea

Re: [PHP] setting Check box - THANKS!

2001-03-27 Thread S. Efurd
Thanks, that did it. Steve - Original Message - From: "David Robley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 27, 2001 7:58 PM Subject: Re: [PHP] setting Check box > On Wed, 28 Mar 2001 10:18, S. Efurd wrote: > > This worked for me as well, and helped me with a

[PHP-CVS] cvs: php4 /pear/HTML Page.php

2001-03-27 Thread Adam Daniel
adaniel Tue Mar 27 19:17:00 2001 EDT Modified files: /php4/pear/HTML Page.php Log: bug fix in toHtml Index: php4/pear/HTML/Page.php diff -u php4/pear/HTML/Page.php:1.1 php4/pear/HTML/Page.php:1.2 --- php4/pear/HTML/Page.php:1.1 Fri Mar 23 20:36:38 2001 +++

[PHP] No output

2001-03-27 Thread Sean B.
I'm attempting to write a chat which streams HTML. There's a problem with the main function that's responsible for 'streaming'. It loops endlessly and if anytihng new appears in the database, it parses it into HTML and outputs it via the echo command. The chatboxDisplay method is what is respon

Re: [PHP] sort multidimensional array?

2001-03-27 Thread phpman
I'm still confused. I'm looking to sort the list[$r] part of the array based on what value $list[$r]["priority"] is. What would the function's arguments be? ""Stuart J. Browne"" <[EMAIL PROTECTED]> wrote in message 99rajk$i0v$[EMAIL PROTECTED]">news:99rajk$i0v$[EMAIL PROTECTED]... > > while ($row

Re: [PHP] Connect local->remote

2001-03-27 Thread David Robley
On Tue, 27 Mar 2001 18:48, Jochen Kaechelin wrote: > how can I connect to a remote-database from > my local dos-window? > > I use the following without success: > > mysql -u XXX -h mysql-XXX -p -D > > > Jochen Kaechelin Should you not have a full hostname as the argument for -h ? --

Re: [PHP] setting Check box

2001-03-27 Thread David Robley
On Wed, 28 Mar 2001 10:18, S. Efurd wrote: > This worked for me as well, and helped me with a problem I was having! > > How would you show what option was selected in a drop down box. I have > a form the user fills out, this goes to a confirmation page to ensure > the data enetered is correct. I h

RE: [PHP] setting Check box

2001-03-27 Thread Peter Houchin
am not sure if it would work or not but maybe if you tried $foo= if ($areacode == '$bar') { echo 'SELECTED '; } >foo bar -Original Message- From: S. Efurd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 11:20 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] setting Chec

Re: [PHP] GD problem

2001-03-27 Thread David Robley
On Tue, 27 Mar 2001 18:48, Daniel B I wrote: > It.s me, again :) > There is trick to find out if php will be compiled well > (I mean with jpeg support): > > when issuing the ./configure command in php, > after putting all the options, put something like this: > ./configure ... > cf.log > > (this i

[PHP] array in sessions

2001-03-27 Thread Christian Dechery
How do I store (and update) an array within a session... Like I'd have cuz I'll have more pages... $time["page20"]="300"; is this going to automatically load into the session vars or I have to do something first? . Christian Dechery (lemming) . http://www

Re: [PHP] setting Check box

2001-03-27 Thread S. Efurd
I thought about doing it this way, but repeating this 50 times seems a bit ineffecient, perhaps i am looking for a shortcut that does not exist? I had hoped I was missing something obivious. Thanks Steve - Original Message - From: "Peter Houchin" <[EMAIL PROTECTED]> To: "S. Efurd" <[EMAI

RE: [PHP] setting Check box

2001-03-27 Thread Peter Houchin
use >foo bar Peter Ps thanks again David & Jason M & Phillip for your help :> -Original Message- From: S. Efurd [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 10:48 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] setting Check box This worked for me as well, and he

Re: [PHP] Array in Form Elements

2001-03-27 Thread Jack Dempsey
i used something like this in a series of checkbox's to grab all the values in an arrayi'm not sure if it can be used in this way though, but give it a go... -jack Jason Lotito wrote: > > Okay, here is the question, I have a form that will continue to grow in the > number of elements that

[PHP-CVS] cvs: php4 /pear/DB ibase.php oci8.php

2001-03-27 Thread Thomas V.V.Cox
cox Tue Mar 27 16:54:05 2001 EDT Modified files: /php4/pear/DB ibase.php oci8.php Log: oci8.php * added not capable for fetchInto when $rownum !== null (feature not supported yet) * fix fetchInto to return null on no more data * Removed extra che

Re: [PHP] setting Check box

2001-03-27 Thread S. Efurd
This worked for me as well, and helped me with a problem I was having! How would you show what option was selected in a drop down box. I have a form the user fills out, this goes to a confirmation page to ensure the data enetered is correct. I have a drop down box for states, and I cant seem to m

[PHP] Re: Dynamic constant names -SOLVED

2001-03-27 Thread Art Wells
My apologies for assuming too much of the variable names. Thank you for correcting me. Your response has caused me good confusion though. If I remove the ${...} notation I get quite a different output (specifically, there's no output). Are you sure the parser ignores it? This is the code I sug

[PHP] Number/Letter Passwords

2001-03-27 Thread Matt Stone
Hi,Hi, I have this code below which is supposed to be generating a password like QCCQCN2-IUZ with 10 characters - All but three in the first section (7) and three in the last part - but does not work in all cases. Sometimes it prints LPSA3WD-IM or G22G2G9-FC. Is there a catch in the code that will

Re: [PHP] sort multidimensional array?

2001-03-27 Thread Stuart J. Browne
> while ($row = mysql_fetch_array($results)) { > $tmp = get_item_reorder_priority($row["item_sku"]); > $list[$r]["priority"] = $tmp[0]; > $list[$r]["sku"] = $row["item_sku"]; > $r++; >} > >$list = array_multisort($list["priority"], SORT_NUMERIC, SORT_DESC); > > and it retur

[PHP] Dynamic constant names -SOLVED

2001-03-27 Thread Geoff Caplan
Art, Thanks for the suggestion, but I think there is a flaw in your solution. The original issue was how to get at the value of a constant where the $constant_name is dynamically created as a variable. In your solution you have defined constant_name as a constant! So when you assign it, it does

[PHP] pdflib

2001-03-27 Thread Steffen Wieschalla
Hi! Is there any possibility to import an existing pdf file in PHP 4.0.4pl1 (pdflib 3.0.3) to modify it? Thanks in advance! Ciao Steffen --- +---+ | Steffen Wieschalla| |

[PHP] Array in Form Elements

2001-03-27 Thread Jason Lotito
Okay, here is the question, I have a form that will continue to grow in the number of elements that it contains. The values are passed into a function, and then written out to a file. Currently, I have 38 seperate values that are being passed into this function, making the arguments for the func

Re: [PHP] data entry validation

2001-03-27 Thread Miles Thompson
Chris, Go to www.thickbook.com. Julie Meloni has a tutorial there which gives you exactly what you want. It's the one which has to do with custom error messages, which , believe or not, are on the subject of data validation. Miles At 06:31 PM 3/27/01 -0500, Chris Worth wrote: >I'm working wi

[PHP] data entry validation

2001-03-27 Thread Chris Worth
I'm working with some forms that need the data validated. Dates, times etc. my question is, how do I "reset" the form back to the original screen with variables intact so they can make the changes? is there a code snippet some place i can work with? thanks, chris -- PHP General Mailing

Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread Philip Olson
Try this example : Regards, Philip On Wed, 28 Mar 2001, FredrikAT wrote: > Hi, again! > > Didn't work... > > This is the scene: (file.php?a=input) > > > (file.php?a=reg) > Trying to echo type... > ${$myfile[$count] . '_type'} // NOT WORKIN' > ${$myfile$count}_type // NOT WORKIN' > > A

Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread FredrikAT
Hi, again! Didn't work... This is the scene: (file.php?a=input) (file.php?a=reg) Trying to echo type... ${$myfile[$count] . '_type'} // NOT WORKIN' ${$myfile$count}_type // NOT WORKIN' Any suggestions? Fredrik A. Takle Bergen, Norway ""FredrikAT"" <[EMAIL PROTECTED]> skrev i melding 99qqq

[PHP] sessions without cookies?

2001-03-27 Thread duirfire
Hi, can someone point me toward a tutorial that shows how to register info (e.g. username, login status, and user preferences) and do this in a session without using cookies... is this even possible? thanks! duirfire -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

Re: [PHP] password

2001-03-27 Thread Henrik Hansen
"Marisol Díaz E." <[EMAIL PROTECTED]> wrote: > 1. (*) text/plain > > Hi > > I need the code, for protecting the dir by password. take a look at htaccess files -- Henrik Hansen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Andrew Hill
Just check the value of the submit variable. If it's populated, then the form has been clicked. Best regards, Andrew --- Andrew Hill - OpenLink Software Director Technology Evangelism eBusiness Infrastructure Technology http://www.openlinksw.com On 3/27/01 4:

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 15:50:44 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: >But then how would you process it in the same file? If I'm calling >it from >myfile and my link is to myfile then how does it know that it's >already been >clicked? well you can make the url

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Michael Champagne
But then how would you process it in the same file? If I'm calling it from myfile and my link is to myfile then how does it know that it's already been clicked? Thanks, Mike > On Tue, 27 Mar 2001 14:04:58 -0600 (Central Standard Time), Michael > Champagne ([EMAIL PROTECTED]) wrote: > >Is there

Re: [PHP] Simple If-else statement - Fixed

2001-03-27 Thread Johannes Janson
Hi, for the haeder just make sure that there is NO output whatsoever before the header-call. even if line 1 of your script is empty before the schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks for all the help. I finally got it to work. I ended up using a bunch > of if

Re: [PHP] Simple If-else statement - Fixed

2001-03-27 Thread Louis Brooks
Thanks for all the help. I finally got it to work. I ended up using a bunch of if ($lname=="") { statements instead of if (($lname=="") || ($fname=="")) { and that seems to be working. I still can't get the header() statement to work. So I just cheated and put in some text telling the user to

Re: [PHP] POP mail delete

2001-03-27 Thread Johannes Janson
Hi, i'm not that much into mail functions but my manual tells me that impa_delete selects a message to be deleted. imp_expunge delets all selected messages. look into the correct syntax Johannes "Miguel Carvalho" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECT

[PHP] sort multidimensional array?

2001-03-27 Thread phpman
Hello, i have this code: while ($row = mysql_fetch_array($results)) { $tmp = get_item_reorder_priority($row["item_sku"]); $list[$r]["priority"] = $tmp[0]; $list[$r]["sku"] = $row["item_sku"]; $r++; } $list = array_multisort($list["priority"], SORT_NUMERIC, SORT_DESC); a

[PHP] Opening Remote Files

2001-03-27 Thread Nick Norton
Does anyone know of a method to read a remote password protected file without actually downloading it locally and then reading? - Nick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the l

Re: [PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 14:04:58 -0600 (Central Standard Time), Michael Champagne ([EMAIL PROTECTED]) wrote: >Is there a way to have an ordinary href link call some javascript >and say "are >you sure blah blah blah?" and then once you hit Ok it calls the same >php file >which then does all the databas

Re: [PHP] Simple If-else statement

2001-03-27 Thread Johannes Janson
Hi Louis, you cuold try it with if (empty($fname)) { redirect... just check again that your form is ok. Johannes "Louis Brooks" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks for everyone's response. I am still not able to get the > > if(($fname

Re: [PHP] Simple If-else statement

2001-03-27 Thread Sterling
H- Really, that's strange. Try printing out your variables and seeing what is actually being passed. print "FNAME:$fname:\n"; With the : : colons surrounding your variable you can see what if anything is actually in $fname. Also it might have been a typo on your part but be sure to check f

[PHP-CVS] cvs: php4 / acinclude.m4 configure.in /ext/aspell config.m4 /ext/bz2 config.m4 /ext/ccvs config.m4 /ext/cpdf config.m4 /ext/crack config.m4 /ext/curl config.m4 /ext/cybercash config.m4 /ext/cybermut config.m4 /ext/dba config.m4 /ext/domxml config.m4 /ext/fbsql config.m4 /ext/fdf config.m4 /ext/fribidi config.m4 /ext/gd config.m4 /ext/gettext config.m4 /ext/gmp config.m4 /ext/icap config.m4 /ext/iconv config.m4 /ext/imap config.m4 /ext/informix config.m4 /ext/ingres_ii config.m4 /ext/interbase config.m4 /ext/ircg config.m4 /ext/java config.m4 /ext/ldap config.m4 /ext/mcal config.m4 /ext/mcrypt config.m4 /ext/mhash config.m4 /ext/midgard config.m4 config.m4.session /ext/ming config.m4 /ext/mnogosearch config.m4 /ext/msql config.m4 /ext/muscat config.m4 /ext/mysql config.m4 /ext/oci8 config.m4 /ext/odbc config.m4 /ext/oracle config.m4 /ext/ovrimos config.m4 /ext/pcre config.m4 /ext/pdf config.m4 /ext/pfpro config.m4 /ext/pgsql config.m4 /ext/pspell config.m4 /ext/qtdom config.m4 /ext/readline config.m4 /ext/recode config.m4 /ext/sablot config.m4 /ext/session config.m4 /ext/snmp config.m4 /ext/swf config.m4 /ext/sybase config.m4 /ext/sybase_ct config.m4 /ext/vpopmail config.m4 /ext/xml config.m4 /ext/zlib config.m4 /ext/zziplib config.m4 /sapi/aolserver config.m4 /sapi/apache config.m4 /sapi/apache2filter config.m4 /sapi/caudium config.m4 /sapi/fastcgi config.m4 /sapi/isapi config.m4 /sapi/nsapi config.m4 /sapi/phttpd config.m4 /sapi/pi3web config.m4 /sapi/roxen config.m4 /sapi/thttpd config.m4

2001-03-27 Thread Jani Taskinen
sniper Tue Mar 27 12:34:51 2001 EDT Modified files: /php4 acinclude.m4 configure.in /php4/ext/aspellconfig.m4 /php4/ext/bz2 config.m4 /php4/ext/ccvs config.m4 /php4/ext/cpdf config.m4 /php4/ext/crack config.m4

[PHP] Dynamic constant names - SOLVED

2001-03-27 Thread Geoff Caplan
Hi folks I mailed this to the list some time ago, but it seems to have got "lost" so here is is again... I had 2 suggestions from the list: 1) indirection - $constant_value = $$constant_name ; I had already tried this, but couldn't get it to work. Unless I am missing something it just gives an

Re: [PHP] Spacing between $row["City"],$row["State"]

2001-03-27 Thread Philip Olson
Hi Mike, Try this little test : 'Seattle', 'state' => 'Washington'); // Can do in PHP4 : print "{$row['city']} {$row['state']}"; // Can do anytime : print $row['city'] . ' ' . $row['state']; ?> Not sure when "{$array['index']}" came about exactly but iirc it's not

Re: [PHP] "DF" output

2001-03-27 Thread Steven Shepherd
Brad, Thanks for the response. Either method they both work via command line. Neither of them work in the browser. On Tue, 27 Mar 2001, Brad S. Jackson wrote: > > Try $top = `top n 1 b | head -8 | sed 's/[\$|^M]//g'`; > > In my experience, you can't use | in exec calls, you have to use the

Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread Matt McClanahan
On Tue, Mar 27, 2001 at 09:56:01PM +0200, FredrikAT wrote: > Why can't I do $myfile[$count]_type?! > What schould I do instead? ${$myfile[$count] . '_type'} There are some examples in the user comments in this manual page: http://www.php.net/manual/en/language.variables.variable.php Matt --

[PHP] Is it possible to have href link refer to same PHP file?

2001-03-27 Thread Michael Champagne
Is there a way to have an ordinary href link call some javascript and say "are you sure blah blah blah?" and then once you hit Ok it calls the same php file which then does all the database stuff? I know I can do this just by creating another PHP file and having the link call that, but it seems l

Re: [PHP] Simple If-else statement

2001-03-27 Thread Louis Brooks
Thanks for everyone's response. I am still not able to get the if(($fname="")) { statement to work even with the suggestions everyone made so I am beginning to wonder if it is a problem with the server. (It is php3 on an Apache server. ) Any other suggestions would be greatly appreciated. Tha

[PHP] Spacing between $row["City"],$row["State"]

2001-03-27 Thread Mike Mike
Hello, Is there a way to get spacing between $row["City"],$row["State"] in the html output? I've tried echo "$row["City"], nbsp; $row["State"]"; and a bunch of other things and get Parse error: parse error, expecting `STRING' or `NUM_STRING' or `'$'' . The way I want the output is as follows: Du

Re: [PHP] Newbie - MySQL Question - Finding Unique Names in Column

2001-03-27 Thread Data Driven Design
I think you mean distict, as in $query = "SELECT DISTINCT band_name FROM table WHERE ..."; Data Driven Design P.O. Box 1084 Holly Hill, FL 32125-1084 http://www.datadrivendesign.com http://www.rossidesigns.net - Original Message - From: Rami Krayem <[EMAIL PROTECTED]> To: <[EMAIL PROTEC

[PHP] $myfile[$count]_type?!

2001-03-27 Thread FredrikAT
Why can't I do $myfile[$count]_type?! What schould I do instead? - Fredrik A. Takle [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

RE: [PHP] Newbie - MySQL Question - Finding Unique Names in Column

2001-03-27 Thread Jason Lotito
> -Original Message- > From: Rami Krayem [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, March 27, 2001 11:49 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Newbie - MySQL Question - Finding Unique Names in Column > > > I have a listing of photos in a table as follows (not actual > column names

[PHP] Re: Re[PHP] Dynamic constant names -SOLVED

2001-03-27 Thread Art Wells
I'm sorry to jump in mid-stream here (I've been offline for a while), but was $constant_value=${constant_name}; suggested? eval's spook me, so I would prefer this solution over the working suggestion you received. This works for me on 4.0.4: $test_name="ta_dah"; define("constant_name","test_nam

[PHP] Newbie - MySQL Question - Finding Unique Names in Column

2001-03-27 Thread Rami Krayem
I have a listing of photos in a table as follows (not actual column names): Image Name, Image Width, Image Height, Band Name, Venue, City, State, Date I would like to have a list of the different bands with photos in the archive. There may be 120 photos of any one band, but I would like to sel

Re: [PHP] Cookie problem

2001-03-27 Thread Martin Skjöldebrand
Thanks everyone for all the responses. I think I'll look into sessions in the future. Meanwhile I'll have to see what others come up with. Thanks, Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

Re: [PHP] Simple If-else statement

2001-03-27 Thread Sterling
H- Another solution might be to use javascript to check the fields before the page is even submitted to make sure they put "something" in the first and last name fields. Unfortunately I'm not a javascript person but I've seen it done so much I'm sure you could find examples on the web or via a

Re: [PHP] Environment extract

2001-03-27 Thread Philip Olson
Ahh, that's the cause. Here's how to duplicate the error :-) error_reporting(E_NOTICE); foo(); function foo() { echo $HTTP_USER_AGENT; } As Mark mentioned, mind your scope. Regarding the error, I just posted some information on this perhaps it'll be of some use : http://mar

Re: [PHP] Environment extract

2001-03-27 Thread Mark Maggelet
On Tue, 27 Mar 2001 17:31:25 +0100, Costas ([EMAIL PROTECTED]) wrote: >when i try printing > >print $HTTP_USER_AGENT; > >I get the error message Undefined variable: HTTP_USER_AGENT > >have i missed a declaration of some sort or something else? > >thanks Are you doing this from inside a function

Re: [PHP] Question on manually instantiating a file download

2001-03-27 Thread Nuno Silva
hello, you could "start from the end" :) show the nice page saying "THANKS!!" or something and this page will call the download script itself with "meta refresh=..." in the ...can't remember the meta refresh syntax right now :) hope it works, Nuno Vikram Vaswani wrote: > Hello all, > > I

php-general Digest 27 Mar 2001 19:05:15 -0000 Issue 592

2001-03-27 Thread php-general-digest-help
php-general Digest 27 Mar 2001 19:05:15 - Issue 592 Topics (messages 45701 through 45761): File upload and database optimization questions 45701 by: Vikram Vaswani 45702 by: Jason Murray 45708 by: Jason Lotito submit form witout clilck submit button 45703 by

  1   2   >