I get the following line when trying to use the crypt() function in php
......................................

Fatal error: Call to undefined function: crypt() in c:\program files\apache
group\apache\htdocs\handleform1.php on line 16

........................................

However, when I replace crypt() with md5() - the following script works
fine.

Using:
Windpws 98 / Apache / php4
...................................................

the script:

<HTML>
<HEAD>
<TITLE>
HTML Form
</TITLE>
<BODY>
<?
$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("Your comments were:<BR> $Comments<BR>\n");
$CryptName=md5($Name);
print("<P>This is the crypt()version of your name: $CryptName\n");
?>
</BODY>
</HTML>





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

Reply via email to