RE: [PHP] ^M at the end of each line when I use php to write file

2002-10-31 Thread Brandon Orther
Hello, For anyone else that had a problem with ^M use this function: str_replace("\r", "", $result); Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com ---

[PHP] Validating E-mail Accounts

2002-10-31 Thread Robert Miller
Is it possible, or (even better) do you have a sample script that can take a user-submitted e-mail address, contact the host, and verify that the account exists? Thanks, Rob

[PHP] strange echo() effect

2002-10-31 Thread Mat Harris
I have a small piece of code which does the following: 1) call a function to print an html header, 2) query a database to list the users in the db, 3) print an html footer. problem is it print out the footer before the table, even though it is called after. looking at the html source of the page

[PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread DonPro
Hi, I have a form where the user enters some information. For a particular section of the form, I'd like the user to be able to save what he/she entered so that the next time they feel out the form, they can recall without the need to retype. This is not for the entire form but only for a few in

[PHP] Re: strange echo() effect

2002-10-31 Thread BAROILLER Pierre-Emmanuel
You've forgotten the "" in your echo... html_header() and html_footer() put html in the right place in your page but, like you haven't close your tag, the footer dans be everywhere in your page (depends on the web browser you're using).. Regards, P.E. Baroiller I have a small piece of code which

Re: [PHP] Validating E-mail Accounts

2002-10-31 Thread 1LT John W. Holmes
Scripts that do this, if they work, usually take quite a while to process. It's better to just send the user an email and have them respond back by clicking on a link. ---John Holmes... - Original Message - From: "Robert Miller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday,

RE: [PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread Jay Blanchard
[snip] I created a button called "Memorize" but how do I have the page save the values to my MySQL database when the user clicks on the button. I understand that I can only use JavaScript to trap the "OnClick()" function and not PHP but I cannot use JavaScript to write to a MySQL table. I do not

[PHP] Re: Validating E-mail Accounts

2002-10-31 Thread DonPro
Most mail servers have the verify command disabled these days, so it makes almost impossible to validate. Blame spammers for ruining everything. But here's a class that will attempt to do what you wish: http://www.phpclasses.org/browse.html/package/13.html - Original Message - From: "Robe

Re: [PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread Sascha Cunz
Hi, > Hi, > > I have a form where the user enters some information. For a particular > section of the form, I'd like the user to be able to save what he/she > entered so that the next time they feel out the form, they can recall > without the need to retype. This is not for the entire form but o

[PHP] Help with using phpmailer

2002-10-31 Thread Pushpinder Singh Garcha
Hi All I am new in the php development world. I have made a simple mail application using the phph mail() function. I needed to use an attachment facility ith the mailing program...so I have tried to use this solution called phpmailer() from http://sourceforge.net/projects/phpmailer I am not ab

RE: [PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread Jay Blanchard
[snip] But how do I submit to a PHP script without moving off of the form? The user will be entering lots of information while only a particular section pertains to the Memorize button. If the user clicks on the button, wont it move off of the page thereby causing the user to lose all their form

Re: [PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread Don
- Original Message - From: Jay Blanchard To: 'DonPro' ; 'php list' Sent: Thursday, October 31, 2002 3:43 PM Subject: RE: [PHP] Saving form input fields to MySQL br clicking on a button [snip] I created a button called "Memorize" but how do I have the page save the values to my MySQL datab

[PHP] using mysql_field_type to disginguish between a blob and a text field.

2002-10-31 Thread John Meyer
I've recently found out that mysql returns blob for both blobs and text fields. Now, how do I distinguish between the two? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread PHP List
Why not use the Memorize button to set a hidden field? Or just use a check box. Since you are going to be submitting the data anyway, save the fields at that time depending on whether or not the check box/hidden filed is set? > Hi, > > I have a form where the user enters some information. For a

[PHP] SQL>Insert and recover the ID

2002-10-31 Thread Christian Ista
Hello, In a table, I have some fields and the primary key is an autoincrement field. I insert an row and I'd like to recover the ID used for the last record I inserted. For the moment, I do a select max(Id) just after the insert but there is, my be a best way to do it. Thanks for your help Chri

Re: [PHP] Saving form input fields to MySQL br clicking on a button

2002-10-31 Thread DonPro
These two ideas, I really like. Saves me lots of coding Thanks, Don - Original Message - From: PHP List To: php ; DonPro Sent: Thursday, October 31, 2002 4:09 PM Subject: Re: [PHP] Saving form input fields to MySQL br clicking on a button Why not use the Memorize button t

Re: [PHP] Re: strange echo() effect

2002-10-31 Thread Mat Harris
DOH! think i'll keep myself to myself from now on On Thu, Oct 31, 2002 at 09:32:41PM +0100, BAROILLER Pierre-Emmanuel wrote: > You've forgotten the "" in your echo... > html_header() and html_footer() put html in the right place in your page > but, like you haven't close your tag, > the foo

Re: [PHP] SQL>Insert and recover the ID

2002-10-31 Thread Chase Urich
Check out mysql_insert_id() > For the moment, I do a select max(Id) just after the insert but there > is, my be a best way to do it. -- Linux: Because rebooting is for adding hardware. Fingerprint = CE24 057D 1E88 A253 3196 89DB 9FF0 9EF0 2F70 8BE8 BE8 signature.asc Description: This is a digi

Re: [PHP] Is there an ISP that supports GD Library 2.0?

2002-10-31 Thread R . Z .
Signature Hosting from Verio did last time I phpinfo them(today that is) here is the dump: gd GD Support enabled GD Version 2.0 or higher FreeType Supportenabled FreeType Linkagewith freetype T1Lib Support enabled JPG Support enabled PNG Support enabled WBMP Su

[PHP] help needed with phpmailer

2002-10-31 Thread Pushpinder Singh Garcha
Hi All I am new in the php development world. I have made a simple mail application using the phph mail() function. I needed to use an attachment facility ith the mailing program...so I have tried to use this solution called phpmailer() from http://sourceforge.net/projects/phpmailer I am not ab

[PHP] Good form class?

2002-10-31 Thread Leif K-Brooks
I'm looking for a good class to manage forms. It doesn't need to do anything with the form itself, I'm looking for something that does form validation on the processing side. I've looked on phpclasses, but everything I found was either insecure (passing data about the form through hidden form

Re: [PHP] Dear all

2002-10-31 Thread R . Z .
http://www.php.net/mailing-lists.php there is an option to subscribe/unsubscribe > >Please how can I unsubscribe from this mailing list ... >Thanks > > >Regards >Saif Yousif > > > No God >except AllahMohammed is profit of Alla

Re: [PHP] Good form class?

2002-10-31 Thread Chris Boget
> I'm looking for a good class to manage forms. It doesn't need to do > anything with the form itself, I'm looking for something that does form > validation on the processing side. I've looked on phpclasses, but > everything I found was either insecure (passing data about the form > through h

Re: [PHP] SQL>Insert and recover the ID

2002-10-31 Thread 1LT John W. Holmes
> In a table, I have some fields and the primary key is an autoincrement > field. I insert an row and I'd like to recover the ID used for the last > record I inserted. > > For the moment, I do a select max(Id) just after the insert but there > is, my be a best way to do it. Stop. Read this: www

RE: [PHP] SQL>Insert and recover the ID

2002-10-31 Thread John Meyer
use mysql_insert_id(). Much more reliable when and if you use the system with more than one person inserting at the same time. -Original Message- From: Christian Ista [mailto:mailing-list@;istasofts.com] Sent: Thursday, October 31, 2002 2:12 PM To: [EMAIL PROTECTED] Subject: [PHP] SQL>Ins

RE: [PHP] SQL>Insert and recover the ID

2002-10-31 Thread Christian Ista
> use mysql_insert_id(). Much more reliable when and if you use the system > with more than one person inserting at the same time. Sure it's for that I ask Thanks for your help. Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] rename()

2002-10-31 Thread Edward Peloke
I am trying to allow the user to upload pictures. What is the best way to rename them? If I use the rename function, I have to upload the pictures to the same place as the script and then move it. ALso, if I am not sure of the extension, how can I simply rename it? Can I do multiple files at on

[PHP] How printing the name and value of a variable ?

2002-10-31 Thread franck raynal
Hello, I'd like to print the name of a variable, in order to get something like this : THE VARIABLE tigidizougou EQUALS 12 ! from the original code below : $tigidizougou = 12; echo "THE VARIABLE ".(please help me right here)." EQUALS ".$tigidizougou; Any idea ? Thanks you.

[PHP] PHP - Internal linking in a page

2002-10-31 Thread Paul Ottar Tornes
Hi! I started to learn PHP yesterday, and I have just entered a little problem. In my index.php file. I have this line: wich controles the main page locaton, just like frames. It makes the files appear in the middle of the site. Now over to the problem: I am making a newsscript with PHP and

[PHP] problem with postgres integration

2002-10-31 Thread suman
Hi all i'm having a strange problem while compiling php 4.2.3 i compiled php with these options Configure Command './configure' '--with-mysql=/usr/local/mysql/' '--with-apxs=/usr/local/apache/bin/apxs' '--with-openssl=/usr/local/ssl/' '--with-pear' '--with-gd' '--with-pqsql=/usr/local/pgsql/' '-

Re: [PHP] PHP - Internal linking in a page

2002-10-31 Thread PHP List
Your get statement is wrong: http://maloyportalen.no/~critical/maloy/index.php?page=main2.php?id=7 use http://maloyportalen.no/~critical/maloy/index.php?page=main2.php&id=7 You only get 1 question mark, any after will be treated as part of the variable page. Hi! I started to learn PHP yesterda

[PHP] explode didn't work well

2002-10-31 Thread ppf
Hi all: I had tried to split the string into an array of string using explode but the result isn't displaying anything I tried the example from document its its not showing anything, pls point out where i went wrong ** $pizaa="piece1 piece2 piece3 piece4 piece5 piece6"; $piece

Re: [PHP] explode didn't work well

2002-10-31 Thread Rasmus Lerdorf
Because you can't spell pizza, I bet. On Thu, 31 Oct 2002, ppf wrote: > > Hi all: > I had tried to split the string into an array of > string using explode but the result isn't displaying > anything > I tried the example from document its its not showing > anything, pls point out where i went wro

Re: [PHP] help needed with phpmailer

2002-10-31 Thread Jonathan Sharp
SEE: http://phpmailer.sourceforge.net/extending.html (click Home Page then examples) -js Pushpinder Singh Garcha wrote: > Hi All > > I am new in the php development world. I have made a simple mail > application using the phph mail() function. > I needed to use an attachment facility ith the m

Re: [PHP] explode didn't work well

2002-10-31 Thread Keith Vance
echo ($pieces[2]); instead of echo ($pieces [2]); Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try U.M.A. at http://uma.sourceforge.net/ On Thu, 31 Oct 2002, ppf wrote: > > Hi all: > I had tried to split the string into an array of > string using explode but the re

Re: [PHP] explode didn't work well

2002-10-31 Thread Keith Vance
And that too. Keith Vance Vance Consulting LLC www.vanceconsulting.net (206) 355-2399 Try U.M.A. at http://uma.sourceforge.net/ On Thu, 31 Oct 2002, Rasmus Lerdorf wrote: > Because you can't spell pizza, I bet. > > On Thu, 31 Oct 2002, ppf wrote: > > > > > Hi all: > > I had tried to split the

[PHP] str_replace

2002-10-31 Thread rick
How could this be written better? Is there a way to do it all in 1 line? $file = str_replace(" ", "", "$file"); $file = str_replace("'", "", "$file"); $file = str_replace("\\", "", "$file"); $file = str_replace("/", "", "$file"); $file = str_replace(":", "", "$file"); $file = str_replace("+", "",

RE: [PHP] str_replace

2002-10-31 Thread Thoenen, Peter Mr. EPS
try $file = preg_replace("/[[:punct:][:space:]]/",'',$file); PEter > -Original Message- > From: rick [mailto:rick@;somers.net] > Sent: Friday, November 01, 2002 00:22 > To: [EMAIL PROTECTED] > Subject: [PHP] str_replace > > > How could this be written better? Is there a way to do it all

Re: [PHP] Form Question

2002-10-31 Thread John Nichel
Try this