I believe you need to have mcrypt installed.
-Greg

"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Using MS Win98 / PHP /Apache
>
> I'm getting a undefined function error - crypt()
>
> The following scripts were taken from Larry Ullman's book on PHP on page
> 60-61.
>
> Any advice would be helpful.
> Thank you.
>
> Tony Ritter
> ..................................................
>
> //ullmanform.html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD><TITLE>HTML Form</TITLE>
> <META http-equiv=Content-Type content="text/html; charset=windows-1252">
> <META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
> <BODY>
> <FORM action=ullmanpassword2.php method=post>First Name <INPUT
> name=FirstName><BR>Last Name <INPUT size=40 name=LastName><BR>
> E-mail Address <INPUT size=60 name=Email><BR>
> Comments <TEXTAREA name=Comments rows=5 cols=40>
> </TEXTAREA><BR>
> <INPUT type=submit value=Submit! name=SUBMIT>
> </FORM></BODY></HTML>
>
> ............
> // ullmanpassword2.php
> <HTML>
> <HEAD>
> <TITLE>
> Form Results/Using Strings</TITLE>
> </HEAD>
> <BODY>
> <?php /* This page receives and handles
> the data generated by "ullmanform.html". */
>
> $FirstName = trim($FirstName);
> $LastName = trim($LastName);
> $Email = trim($Email);
> $Comments = trim($Comments);
> $Name = $FirstName . " " . $LastName;
> print ("Your name is $Name.<BR>\n");
> print ("Your E-mail address is $Email.<BR>\n");
> print ("This is what you had to say:<BR>\n $Comments<BR>\n");
> $CryptName = crypt($Name);
> print ("<P>This is the crypt() version of your name: $CryptName\n");
> ?>
> </BODY>
> </HTML>
> ..............
>
>
> Fatal error: Call to undefined function: crypt()
> in c:\program files\apache group\apache\htdocs\ullmanpassword2.php
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to