close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Sending form results to person who fills out the form

Thread began 4/14/2011 8:14 am by neil294545 | Last modified 4/15/2011 12:09 pm by Jason Byrnes | 1998 views | 4 replies |

neil294545

Sending form results to person who fills out the form

I want to send the form results to both myself, and the person who fills out the form.

I have replaced the code;

$RecipientEmail = "".($WAGLOBAL_Contact_Email_To) ."";include("WA_Universal_Email/WAUE_contact_1.php");

with;

$RecipientEmail = "".($WAGLOBAL_Contact_Email_To) ."";include("WA_Universal_Email/WAUE_contact_1.php");

$RecipientEmail = "". (isset($_POST['UserEmail'])?$_POST['UserEmail']:"") ."";include("WA_Universal_Email/WAUE_contact_1.php");

The email comes through fine to my email which is located on the WA_Globals.php file but the email that comes through to the person who fills out the form submits a blank email.

Please Advise.

Thank you.

Sign in to reply to this post

Jason ByrnesWebAssist

use this instead:

php:
$RecipientEmail = "".($WAGLOBAL_Contact_Email_To) .", ".(isset($_POST['UserEmail'])?$_POST['UserEmail']:"") ."";include("WA_Universal_Email/WAUE_contact_1.php");
Sign in to reply to this post

neil294545

Thank you

Jason,

Thank you very much. Your speedy response is very much appreciated.

Have a great day.

Sign in to reply to this post

neil294545

Sending form results to person who fills out the form

Jason,

Is there a way to have another form field that the user can fill out an email and the form results also send to that email?

Sign in to reply to this post

Jason ByrnesWebAssist

yes, add another text box to the form, place your cursor where the text box should go, the Go to insert -> Forms -> Text Field.

name it something like "freindsEmail"

then edit this code:

php:
$RecipientEmail = "".($WAGLOBAL_Contact_Email_To) .", ".(isset($_POST['UserEmail'])?$_POST['UserEmail']:"") ."";include("WA_Universal_Email/WAUE_contact_1.php");




to use the new texxt box as well:

php:
$RecipientEmail = "".($WAGLOBAL_Contact_Email_To) .", ".(isset($_POST['UserEmail'])?$_POST['UserEmail']:"".", "..(isset($_POST['freindsEmail'])?$_POST['freindsEmail']:"") ."";include("WA_Universal_Email/WAUE_contact_1.php");
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...