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'];

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.