PHP စစ်ဆေး အီးလီယာ
- 上一页 PHP E-mail
- 下一页 PHP Error
အရှိန်းချို့ ပါဝင်သော PHP e-mail အဘာသာကြောင်း တွင် အရေးပါသော အချက်အလက် ရှိပါသည်。
PHP E-mail Injection
ပထမပေါင်းက အရှိန်းချို့ ပါဝင်သော PHP ကို ကြည့်ပါတယ်:
<html> <body> <?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email']; $subject = $_REQUEST['subject']; $message = $_REQUEST['message']; mail("someone@example.com", "Subject: $subject", $message, "From: $email" ); echo "Thank you for using our mail form"; } else //if "email" is not filled out, display the form { echo ""; } ?>