Jump to content

php email sendng form not working


NorozMayar

Recommended Posts

This is because the variable $mailtoname and $mailtoemail are blank.
 

When you want to get the values of form values, you have to use $_POST. In your form this is also states as "method=post".
To get values from a form, you have to send it to the receiving page, in this case it is "sendemailWithCC_BCC.php".

On the receiving page use the $_POST variable to get the values from the form.To do this you use $_POST['name of form input']

In your case you use $mailtoname = $_POST['mailtoname'];
To see if it works just use echo $_POST['mailtoname'];

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.