Re: [PHP] Why does this happen?

2003-02-09 Thread Ernest E Vogelsinger
At 04:52 09.02.2003, CF High said: [snip] In this test form when I submit and insert into my db, only the last select field get entered; i.e. in this case the day value of 25. form name=form1 method=post action= Year select name=date onSelect=return

Re: [PHP] Data Structures

2003-02-09 Thread Ernest E Vogelsinger
At 04:43 09.02.2003, Laborda said: [snip] Does anyone know where can I find information about data structures implemented in PHP. I need to find something about Linked Lists, implemented in PHP.. If anyone has any info, I'd appreciate it. I've tried to

[PHP] Re: Class Interfaces

2003-02-09 Thread rush
Laborda [EMAIL PROTECTED] wrote in message 005201c2cfe9$47c704b0$ad629c40@galaxy">news:005201c2cfe9$47c704b0$ad629c40@galaxy... Hello, I have a question.. Does PHP have support for Class Interfaces declaration? What in Java would be: ? If not, how can I do this?.. Thanks a lot. Well,

php-general Digest 9 Feb 2003 15:07:01 -0000 Issue 1873

2003-02-09 Thread php-general-digest-help
php-general Digest 9 Feb 2003 15:07:01 - Issue 1873 Topics (messages 134933 through 134947): Class Interfaces 134933 by: Laborda 134940 by: Justin Garrett 134947 by: rush Re: How to uncompress PHP 134934 by: David T-G Data Structures 134935 by:

[PHP] Re: any windows php developers out here?

2003-02-09 Thread rush
It works reliably. I have used Abria Merlin form abria soft to install apache, php, mysql, and various utils on my machine. It is single install that installs without problems. The php version inside is a bit dated, but you can later on easily replace it once everything is connected and working

[PHP] Re: Alternating Row Colors in PHP........

2003-02-09 Thread rush
Cf High [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm coming from Cold Fusion to PHP; in CF I could alternate rows with the Here is an example how to do it with TemplateTamer: http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3538 same code

Re: Re: [PHP] incromenting $counter in a whloop

2003-02-09 Thread Sunfire
i got it tnx... while(whatever){ //record code here //and echo $counter $counter++} - Original Message - From: Beauford.2002 [EMAIL PROTECTED] To: Sunfire [EMAIL PROTECTED] Sent: Sunday, February 09, 2003 2:14 AM Subject: Spam: Re: [PHP] incromenting $counter in a whloop This is one

[PHP] MySQL Username and Passwords

2003-02-09 Thread Stephen Craton
It's me again, trying to get some more help. My boss is hosting sites now for games and I need some help with setting up phpMyAdmin privelages for certain MySQL users and such. Right now, my problem is setting up a new MySQL username and password. I add a new user in phpMyAdmin, I type in the

Re: [PHP] MySQL Username and Passwords

2003-02-09 Thread John Nichel
Did you reload MySQL after you added the new user? Stephen Craton wrote: It's me again, trying to get some more help. My boss is hosting sites now for games and I need some help with setting up phpMyAdmin privelages for certain MySQL users and such. Right now, my problem is setting up a new

Re: [PHP] MySQL Username and Passwords

2003-02-09 Thread Stephen Craton
I'm not sure how except through shell which isn't enabled. Even if I didn't reload it, why would the username work but the password not? - Original Message - From: John Nichel [EMAIL PROTECTED] To: Stephen Craton [EMAIL PROTECTED] Cc: PHP List [EMAIL PROTECTED] Sent: Sunday, February 09,

[PHP] Re: jumping between php and html or using echo for printing html-tags.

2003-02-09 Thread Askengren
I do not know why so many developers use the -character (double quote) instead of ' (single quote) in php/html-scripts. Much easier is: function admin_menu() { echo B Meny /BBR; echo A HREF=' . $_SERVER['PHP_SELF'] . ?action= . MANAGE_MEMBERS .'Medlemmar/ABR; . You do then not have to

Re: [PHP] Why does this happen?

2003-02-09 Thread CF High
Alright, alright, everyone, I could get away with this in Cold Fusion, but not in PHP. The simple example I gave is part of a more complex problem, however. Here's the deal: Let's say I have a form that requests the season schedule of a baseball team, and the team in question has twenty

Re: [PHP] Output yyyymmdd formatted date || 20030131 to FridayJanuary 31, 2003

2003-02-09 Thread CF High
Very nice John. I'm quickly learning the utility of MySql Date and Time objects. I used to have to write a ten line script to format the date; now, I can use this: SELECT DATE_FORMAT(mydate, '%a %M %d, %Y') and I'm done. Thanks a bunch for your help, John. I might even write an effiicient

[PHP] Beginners question

2003-02-09 Thread Martin Purdy
Hi everybody I am totally new to PHP, and I have a problem with the Print statement. When I send a newline using \n nothing happens. I cannot get any linebreaks into my code. The following line is copied from the PHP Manual, and is sopposed to give me the text split into 3 lines, but they come

Re: [PHP] Beginners question

2003-02-09 Thread Leif K-Brooks
My guess is that the new lines are there, but since you're (most likely) outputting HTML, you don't see them. Take at look at the br HTML tag. Martin Purdy wrote: Hi everybody I am totally new to PHP, and I have a problem with the Print statement. When I send a newline using \n nothing

[PHP] Files upload

2003-02-09 Thread Max 'AMiGo' Gashkov
Is there any difference between using move_uploaded_file(... or if(is_uploaded_file... ... copy( (security hazards etc.)? WBR, Max 'AMiGo' Gashkov [EMAIL PROTECTED] ]=[ http://diary.otaku.ru/amigo Distributed.net participant [408228][RC5-72] -- PHP General Mailing List

RE: [PHP] any windows php developers out here?

2003-02-09 Thread Victor
Kk, I got it to work in apache 2.X on redhat 8.0 all I had to do is start apache from the directory it resides in and then it work sfine, but I will try your notes also and get it working on windows too. Thanks, I'll see if I have more problems... -Original Message- From: John W. Holmes

Re: [PHP] Files upload

2003-02-09 Thread Andrew Brampton
I beleive move_uploaded_file is prefered since copy won't work in Safe Mode. Andrew - Original Message - From: Max 'AMiGo' Gashkov [EMAIL PROTECTED] To: PHP General list [EMAIL PROTECTED] Sent: Sunday, February 09, 2003 6:09 PM Subject: [PHP] Files upload Is there any difference

[PHP] Object In a class

2003-02-09 Thread Justin Mazzi
Can anyone tell me how to use an object within an object. Example class blah { var $test; var $test2; function test() { $this-do(); } } then you want to use that class in a new one. class blah2 { var $test; var $test2;

[PHP] encoding problems

2003-02-09 Thread adam muller
Hello everybody. I need some help. Please, look at www.vba.sk, you can see a little encoding problems. It is because the server/php is working in win1250 charset and mysql database in 8859-2. Is there any possibility, how to convert php to 8859-2 or mysql to win1250. thanx. -- PHP General

Re: [PHP] Beginners question

2003-02-09 Thread Martin Purdy
How do you use the output on a webpage then? Martin Leif K-Brooks [EMAIL PROTECTED] skrev i en meddelelse [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My guess is that the new lines are there, but since you're (most likely) outputting HTML, you don't see them. Take at look at the br HTML

Re: [PHP] Beginners question

2003-02-09 Thread Paul Roberts
use html br instead of \n or echo nl2br(This spans\nmultiple lines. The newlines will be\noutput as well.); Best Wishes Paul Roberts [EMAIL PROTECTED] - Original Message - From: Martin Purdy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 09,

Re: SV: [PHP] Beginners question

2003-02-09 Thread Leif K-Brooks
No, you can output the BR / directly. echo This spansbr /multiple lines. The newlines will bebr /output as well.; Martin Purdy wrote: Thanks for your prompt answer. I think that sounds very likely, but do I have to break out of PHP, and send a BR every time I need to send a linefeed? Martin

[PHP] PHP and Serach Engines...

2003-02-09 Thread Steven Kallstrom
Hello, How do search engines react to PHP pages? If every page of a site has a .php extension will search engines not react well to that? If it does, is there a possible way to handle tracking sessions with php, without being punished by the search engines? Steve -- PHP General

Re: [PHP] PHP and Serach Engines...

2003-02-09 Thread Chris Hayes
At 22:00 9-2-2003, you wrote: Hello, How do search engines react to PHP pages? If every page of a site has a .php extension will search engines not react well to that? If it does, is there a possible way to handle tracking sessions with php, without being punished by the search engines?

Re: [PHP] Object In a class

2003-02-09 Thread John Wells
Justin Mazzi said: Can anyone tell me how to use an object within an object. Example class blah { var $test; var $test2; function test() { $this-do(); } } then you want to use that class in a new one. class blah2 { var $test;

RE: [PHP] any windows php developers out here?

2003-02-09 Thread Victor
So I guess I al looking to finding out what I need to configure IIS to to get the ISAPI module to work, etc. 1. Unzip the php .zip file to C:\php\ 2. Copy c:\php\sapi\php4isapi.dll to c:\php\php4isapi.dll 3. Ensure the user IIS runs as, generally IUSR_computer_name, has read permissions to

[PHP] Static functions

2003-02-09 Thread Leo Spalteholz
Hi, I'm a bit of a newbie to PHP, I've done some stuff in Java/VB/C++ but I'm having a few problems finding info on this issue. Does PHP support something like static functions in Java? for example in Java I can write: public class someClass { public static void someMethod() {} } and

[PHP] Shopping Cart

2003-02-09 Thread Chris Cook
Hello everybody, I am interested in designing a site with a shopping cart. I have several years of programming experience in php and perl, but I have never made a shopping cart. I was looking into some of the already made shopping carts and was wondering what peoples' experiences have been

Re: [PHP] File upload problem

2003-02-09 Thread Gurhan Ozen
Hi, You need to specifye the MAX_FILE_SIZE value as a hidden argument to the form.. See: http://www.php.net/manual/en/features.file-upload.php Gurhan On Mon, 2003-06-30 at 15:05, John M wrote: Hello, I have the code below. It's a simple file upload. But it doesn't work. Before the line

Re: [PHP] Static functions

2003-02-09 Thread Chris Hayes
At 22:18 9-2-2003, you wrote: Hi, I'm a bit of a newbie to PHP, I've done some stuff in Java/VB/C++ but I'm having a few problems finding info on this issue. Does PHP support something like static functions in Java? afaik the answer is no, but please do not rely on my pitiful opinion. I only

[PHP] Re: Static functions

2003-02-09 Thread David Eisenhart
yes, you can call a static method on a class by specifying the class name, then 2 colons and finally the function name: classname :: functionname([arg,.]) (of course properties can not be accessed by such methods) David Eisenhart Leo Spalteholz [EMAIL PROTECTED] wrote in message [EMAIL

Re: [PHP] Why does this happen?

2003-02-09 Thread Noah
Hey Ernest. This looks like the solution I'll need to make my CF interface work in PHP. I'll check it out. Thanks! --Noah - Original Message - From: Ernest E Vogelsinger [EMAIL PROTECTED] To: CF High [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, February 09, 2003 6:39 AM

Re: [PHP] Re: Static functions

2003-02-09 Thread Chris Hayes
At 22:49 9-2-2003, you wrote: yes, you can call a static method on a class by specifying the class name, then 2 colons and finally the function name: classname :: functionname([arg,.]) (of course properties can not be accessed by such methods) ah ok, cool -- PHP General Mailing List

Re: [PHP] encoding problems

2003-02-09 Thread Gurhan Ozen
Hi Adam, I am not sure if my solution will work for you, because i don't know anything about your language, so i couldn't be sure of the results of the test:) You can get around that program by encoding the html page.. Add this lines between your head tags on the html pages: meta

[PHP] Printing

2003-02-09 Thread Chris Kay
If anyone has got PHP to print to a remote printer please Could you direct me to some examples or anything that would help me understand this a bit more . Thanks in advance - Chris Kay Techex Communications Website:

Re: [PHP] multiple file upload, yet again

2003-02-09 Thread Gurhan Ozen
Hi David, I know that there is an php application doing multiple file uploading at once which is open source.. The application is san franscisco indymedia's news publishing system. You might wanna download it at: http://tech.sfimc.net/download.php and scrutinize the source code.. I am very sure

[PHP] Re: Static functions

2003-02-09 Thread David Eisenhart
you may find the following link interesting http://www.tek271.com/articles/JavaOrPhp.html David Eisenhart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] appending file with new line first

2003-02-09 Thread Guru Geek
Hello, Yep, me again, with yet another php question. Maybe I'm too tired to see the easy solution... I open a file and write to it: $handle = fopen ($temp_file, 'a'); fwrite($handle, $original_info); fclose ($handle); Later I want to add to the above file: $handle = fopen

Re: [PHP] File upload problem

2003-02-09 Thread David Rice
Hi John: Well actually I believe that you don't have to set MAX_FILE_SIZE...(I don't) but you might want make sure that you are not trying to send a file larger than the post_max_size directives in php.ini and ensure that file_uploads is set to allow http uploads. On Sunday, February 9, 2003,

RE: [PHP] appending file with new line first

2003-02-09 Thread Chris Kay
fwrite($handle, $new_info\r); as quoted above would indicate $new_info\n as been a variable.. try $new_info .= \n; fwrite($handle, $new_info); this will add \n to the end of the string before you write it... hope this helps - Chris

[PHP] Returning to a Previous Page

2003-02-09 Thread Nelson Goforth
In my application I'd like the user to be able to return to a page that they have had to leave in order to register or log-in to the application. (It's a sort of shopping cart) The URL contains a couple of items of data in the query string. I figure there are two options (and let me know about

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread Chris Hayes
At 23:09 9-2-2003, you wrote: you may find the following link interesting http://www.tek271.com/articles/JavaOrPhp.html David Eisenhart I cannot suppress the feeling that someone out there has a slight prejudice in favour of Java! -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] MySQL Username and Passwords

2003-02-09 Thread Thomas Seifert
phpMyAdmin has an option to reload mysql too. It won't work until that is done. Where did you get the idea, that the username worked? It just tells, that access has been denied ... the same message would be sent if the user didn't exist at all! Thomas On Sun, 9 Feb 2003 12:40:12 -0500 [EMAIL

[PHP] Re: any windows php developers out here?

2003-02-09 Thread Lee W
Victor [EMAIL PROTECTED] wrote in message 01c2cfc7$b6ecd0d0$237b7018@JUMPY">news:01c2cfc7$b6ecd0d0$237b7018@JUMPY... Hello, I am wondering if any of you got a reliable php and MySQL installation (MySQL is easy) I am mostly wondering if there is a point in tying to use windows as a

[PHP] Re: html tags

2003-02-09 Thread Lee W
Erich C. Beyrent [EMAIL PROTECTED] wrote in message 008d01c2cfa3$fc752630$0a64a8c0@wolf">news:008d01c2cfa3$fc752630$0a64a8c0@wolf... Hi everyone, A quick question about html tags and PHP. I have a text area where users can submit text, and I need them to able to have links in the text if

Re: [PHP] MySQL Username and Passwords

2003-02-09 Thread Stephen Craton
You see, I ran a sample script. I typed in the username and passwords to connect. It fails if I have a password entered. If I leave it blank, it works... - Original Message - From: Thomas Seifert [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 09, 2003 5:24 PM Subject: Re:

Re: [PHP] Re: Static functions

2003-02-09 Thread Leo Spalteholz
ah! thank you very much. Thats exactly what I was looking for. Leo On February 9, 2003 01:49 pm, David Eisenhart wrote: yes, you can call a static method on a class by specifying the class name, then 2 colons and finally the function name: classname :: functionname([arg,.]) (of

[PHP] imap_open

2003-02-09 Thread Bartosz Matosiuk
hi i'm using imap_open for opennig mailbox on the server where the script is and everything is ok. I want also to open my mailbox on the other server but script is behaving in a strange way. I looks like it's unable to open that account but it is not giving me any error message. I not

[PHP] Drop in replacement for session_decode() ?

2003-02-09 Thread Uchendu Nwachukwu
I was wondering if anyone knew of a drop-in replacement function for session_decode(). I am having problems with the session_decode() function populating the $_SESSION array with bogus or corrupt entries. I'm using PHP 4.3.0. Thanks in advance. Uchendu Nwachukwu www.unnndunn.com -- PHP

Re: [PHP] Re: Static functions

2003-02-09 Thread Leo Spalteholz
very interesting link. While some of the cases where he takes java to be the winner are simply personal preference, I do agree with most of his conclusions. Best points are the one about declaring variables(3), declaring constants(6), using libraries(7), class member scope(17), and exception

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread Joshua Moore-Oliva
The only thing I do wish is that there was a way to force php into a typecast mode... and possibly a setting to reqiure a definition for a variable. Josh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread David Eisenhart
yeh, I'd agree with this; on your second issue of variable definitions I do find that being able set the error reporting level to show non critical errors (such as undefined variables) to be a reasonable, although non ideal, compromise; php's still a great language to work with most respects

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread David Eisenhart
Chris Hayes [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... At 23:09 9-2-2003, you wrote: you may find the following link interesting http://www.tek271.com/articles/JavaOrPhp.html David Eisenhart I cannot suppress the feeling that someone out there has a

Re: [PHP] Re: Static functions

2003-02-09 Thread David Eisenhart
pleasure Leo, happy php'ing !! Leo Spalteholz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ah! thank you very much. Thats exactly what I was looking for. Leo On February 9, 2003 01:49 pm, David Eisenhart wrote: yes, you can call a static method on a

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread Robert Cummings
Chris Hayes wrote: At 23:09 9-2-2003, you wrote: you may find the following link interesting http://www.tek271.com/articles/JavaOrPhp.html David Eisenhart I cannot suppress the feeling that someone out there has a slight prejudice in favour of Java! God yes, the guy seems to think that

Re: [PHP] multiple file upload, yet again

2003-02-09 Thread David T-G
Gurhan, et al -- ...and then Gurhan Ozen said... % % Hi David, Hi! % I know that there is an php application doing multiple file uploading at % once which is open source.. Cool! % The application is san franscisco indymedia's news publishing system. % You might wanna download it at:

Re: [PHP] File upload problem

2003-02-09 Thread Jason Wong
On Monday 10 February 2003 05:56, Gurhan Ozen wrote: You need to specifye the MAX_FILE_SIZE value as a hidden argument to the form.. See: http://www.php.net/manual/en/features.file-upload.php You don't. If you can show otherwise please post details to the list. -- Jason Wong - Gremlins

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread Joshua Moore-Oliva
How would I go about setting the error reporting level? Josh. On February 9, 2003 06:38 pm, David Eisenhart wrote: yeh, I'd agree with this; on your second issue of variable definitions I do find that being able set the error reporting level to show non critical errors (such as undefined

Re: [PHP] multiple file upload, yet again

2003-02-09 Thread Jason Wong
On Monday 10 February 2003 08:36, David T-G wrote: Hmmm... I haven't yet been able to download it, but I was pointed to a live page (tech.indymedia.org/publish.php3) only to find that it has multiple boxes for multiple files, which I can already do. Nothing that allows multiple files with

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread Jason Wong
On Monday 10 February 2003 08:45, Joshua Moore-Oliva wrote: How would I go about setting the error reporting level? google 'php error reporting level' -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

[PHP] Testing..

2003-02-09 Thread Troy May
Just a quick test. I just re-signed up for this list after a 3 week vacation and I haven't seen even one message yet. So, reply if you get it please so I know this is working. Thanks, Troy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Testing..

2003-02-09 Thread Paul Marinas
working :) On Sun, 9 Feb 2003, Troy May wrote: Just a quick test. I just re-signed up for this list after a 3 week vacation and I haven't seen even one message yet. So, reply if you get it please so I know this is working. Thanks, Troy -- PHP General Mailing List

[PHP] Mysql Select

2003-02-09 Thread andraskende
Hello, Can anyone help me with this simple query: I want to limit to 1 the same names returned from the query like: FROM: SELECT gallery.design FROM gallery buffet buffet buffet buffet barstools barstools barstools barstools barstools barstools barstools barstools tables

[PHP] Re: Mysql Select

2003-02-09 Thread andraskende
Hello, Can anyone help me with this simple query: I want to limit to 1 the same names returned from the query like: FROM: SELECT gallery.design FROM gallery buffet buffet buffet buffet barstools barstools barstools barstools barstools barstools barstools

Re: [PHP] Mysql Select

2003-02-09 Thread Nicola Delbono
SELECT DISTINCT(gallery.design) FROM gallery : I want to limit to 1 the same names returned from the query like: [CUT] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trouble with resizing image!!

2003-02-09 Thread Geckodeep
I am having trouble in resizing the image. What I am trying to do is letting people upload images of any dimension, and with the aid of my script after having uploaded, it renames the file, from this new file I'll get the size and resize it to predefined format 360x240 or 240x360 and this is the

[PHP] Controlling browser windows with php?

2003-02-09 Thread Geoff Lists
Hi, I'm relatively new to php and neither of the books I am using for reference mention anything about controlling a child window. What is the correct syntax to: open window( width, height, menu, scrollbars) and position it on the screen? Any help would be gratefully and humbly accepted I

php-general Digest 10 Feb 2003 06:30:22 -0000 Issue 1874

2003-02-09 Thread php-general-digest-help
php-general Digest 10 Feb 2003 06:30:22 - Issue 1874 Topics (messages 134948 through 135013): Re: any windows php developers out here? 134948 by: rush 134960 by: Victor 134972 by: Victor 134990 by: Lee W Re: Alternating Row Colors in PHP

RE: [PHP] Controlling browser windows with php?

2003-02-09 Thread Warren Vail
Since PHP executes server side and not in the browser, you may want to resort to something that runs in the browser, like Javascript, which PHP can output as part of the html it feeds to the browser. check out http://www.hotscripts.com/ for lots of handy examples of how Javascript opens an

Re: [PHP] Controlling browser windows with php?

2003-02-09 Thread Davy Obdam
Hi Geoff, You cant do this with php... you will have to use JavaScript for opening a new window. You could write the function in the html of your page.. or use echo script type=\text/javascript\ language=\javascript\!-- your code //--/script and call this function in your links, in your php

[PHP] text on image

2003-02-09 Thread Ilya Nemihin
I try to place text on image, but have color problems. code: $im = imagecreatefromjpeg( 'test.jpg' ); $white = ImageColorAllocate ($im, 255, 255, 255); ImageTTFText ($im, 20, 0, 0, 20, $white, './fonts/times.ttf', 'text text text' ); ImageJpeg( $im, 'test_out.jpg' ); i.e. I want to have 'white'

[PHP] Confirmation e-mail

2003-02-09 Thread Davy Obdam
Hello people., I am developing a website with a user login system, i would like to send an confirmation e-mail to the user when he/she registers for the site, asking for confirmation...for instance click on a link to activate thier account. My question is what would be the best approach to

[PHP] RE: [PHP-DB] Confirmation e-mail

2003-02-09 Thread Ruprecht Helms
Hi Davy Obdam, [...] My question is what would be the best approach to achieve this? How is this usualy done? Storing the password in encrypted form in a database. The confirmationmail you can write with the normal mailcommand using addslashes. The securest way if the password was randomly