Skip to main content
November 19, 2012
Question

How to set up PHP Email files

  • November 19, 2012
  • 1 reply
  • 684 views

I already have the code, but I don't know if it's set up properly. How do I link the pages or set it up so that the script sends the form info to the email I have listed? Do I link the .php file in the same manner as I would a CSS page, or do I leave them separate? In all, I want the form sent to an email, and then I want the user to be redirected to another page.

This topic has been closed for replies.

1 reply

Participating Frequently
November 19, 2012

>Do I link the .php file in the same manner as I would a CSS page

No. The form tags action attribute should contan the path to your PHP script.

>In all, I want the form sent to an email, and then

>I want the user to be redirected to another page.

That is all controlled by the script you are using. Many scripts look for a hidden form field to tell it where to redirect the user after processing. If you post your script we can give you more details.

November 19, 2012

I ended up getting it working. The largest issue I was having was remembering to set my formaction. Thank you for the help.