dsubq24666 2014-05-06 06:08
浏览 75
已采纳

如何将占位符文本添加到$ email中

I have a page called check.php which contains all the validation for a registration form but i would like to basically add the placeholder (I use ) text called @example.com into the database

Following is what I currently have

$email = $_POST['email'];

Below is what I wanted to do

$email = $_POST['email@example.com'];

  • 写回答

2条回答 默认 最新

  • douweilaton2762 2014-05-06 06:11
    关注

    Try $email = $_POST['email'].'@example.com';

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?