Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to set up PHP Email files

Guest
Nov 18, 2012 Nov 18, 2012

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.

TOPICS
Server side applications
653
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 19, 2012 Nov 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 19, 2012 Nov 19, 2012
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines