Send email with PHP from html form on submit with the same script

前端 未结 8 1896
情深已故
情深已故 2020-11-22 01:22

I want to send an email with PHP when a user has finished filling in an HTML form and then emailing information from the form. I want to do it from the same script that disp

8条回答
  •  误落风尘
    2020-11-22 01:26

    I think one error in the original code might have been that it had:

    $message = echo getRequestURI();
    

    instead of:

    $message = getRequestURI();
    

    (The code has since been edited though.)

提交回复
热议问题