Here you can post ny ideas, complains, suggestions, comments for Zend PHP lessons........
Last edited:
sriflipflop said:where lessons
jst begin the thread neee.......... u need da script?chinthaka.lk said:any 1 have PHP Mail list ???????????????????
working 1


elakiri0777 said:e mokakda banzz??
ok bro here you gochinthaka.lk said:Thanks machan



After That You Must Make This Page To Process Your Mail When You Press Submit Button In Your Mail Page/Form<html>
<head><title>My Mail Server</title></head>
<body>
<form action="mail.php" method="POST">
<b>Email</b><br>
<input type="text" name="email" size=60>
<p><b>Subject</b><br>
<input type="text" name="subject" size=60>
<p><b>Message</b><br>
<textarea cols=60 rows=20 name="message"></textarea>
<p><input type="submit" value=" Send ">
</form>
</body>
</html>


<html>
<head><title>My Mail Server</title></head>
<body>
<?php
/* All form fields are automatically passed to the PHP script through the array $HTTP_POST_VARS. */
$email = $HTTP_POST_VARS['email'];
$subject = $HTTP_POST_VARS['subject'];
$message = $HTTP_POST_VARS['message'];
/* PHP form validation: the script checks that the Email field contains a valid email address and the Subject field isn't empty. preg_match performs a regular expression match. It's a very powerful PHP function to validate form fields and other strings - see PHP manual for details. */
if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) {
echo "<h4>Invalid email address</h4>";
echo "<a href='javascript:history.back(1);'>Back</a>";
} elseif ($subject == "") {
echo "<h4>No subject</h4>";
echo "<a href='javascript:history.back(1);'>Back</a>";
}
/* Sends the mail and outputs the "Thank you" string if the mail is successfully sent, or the error string otherwise. */
elseif (mail($email,$subject,$message)) {
echo "<h4>Thank you for sending email using My Mail Server</h4>";
} else {
echo "<h4>Sorry! Can't send email to $email</h4>";
}
?>
</body>
</html>
dhanushka7171 said:Ayyo therenne naha bun...sorry
u can ask anything abt wht u cant understand we'll help u

tckrockz said:ela ela mchn...mama me tike gedara uth eka ne...meka hari igena gana puluwan
help 1k onna nam kiyana
![]()
me net eke mal kada kada inne nethuwa ohoma ekka wath igena ganing

ela machan go through the lessons ... we'll put the lesson no 2 asap:d kinda bc these days...nuwa1 said:niyamai machan. elakiri. matath igenaganna ona.
Djpata said:ow umba kanawai budiyanawai nikan gedartta welame net eke mal kada kada inne nethuwa ohoma ekka wath igena ganing
![]()
eka thama danta dapu steps ta kiyawa 
tckrockz said:![]()
![]()
![]()
eka thama danta dapu steps ta kiyawa
![]()
