close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Help with Contact Form

Thread began 8/21/2010 8:08 am by madelectrical386948 | Last modified 8/27/2010 1:51 pm by madelectrical386948 | 1514 views | 12 replies

madelectrical386948

It seems I should have some type of post for each form field and it doesn't on the contact.us php page.
Should I edit the waue_contact_us_1.php file and add the post info for the form?

I tried one form field (the name) and this is the message I got from the internet.

Parse error: syntax error, unexpected '<' in /home/content/c/r/a/cragdire/html/webassist/email/waue_contact_us_1.php on line 39

Note: I have removed the post line from the file below. This is what I added.
<?php echo((isset($_POST["Contact_me_group_Name"]))?$_POST["Contact_me_group_Name"]:"") ?>

Here is the code for the waue_contact_us_1.php.

<?php
$MailAttachments = "";
$MailBCC = "";
$MailCC = "";
$MailTo = "";
$MailBodyFormat = "";
$MailBody = "";
$MailImportance = "";
$MailFrom = "robert.smith@rl-smith-concrete.com";
$MailSubject = "Test";
$_SERVER["QUERY_STRING"] = "";

//Global Variables

$WA_MailObject = WAUE_Definition("smtpout.secureserver.net","25","","","","");

if ($RecipientEmail) {
$WA_MailObject = WAUE_AddRecipient($WA_MailObject,$RecipientEmail);
}
else {
//To Entries
}

//Additional Headers

//Attachment Entries

//BCC Entries

//CC Entries

//Body Format
$WA_MailObject = WAUE_BodyFormat($WA_MailObject,0);

//Set Importance
$WA_MailObject = WAUE_SetImportance($WA_MailObject,"3");

//Start Mail Body
//End Mail Body

$WA_MailObject = WAUE_SendMail($WA_MailObject,$MailAttachments,$MailBCC,$MailCC,$MailTo,$MailImportance,$MailFrom,$MailSubject,$MailBody,"waue_contact_us_1");

if (isset($_SESSION["waue_contact_us_1_Status"])) {
$MailLogBindings = new WAUE_Log_Bindings();
//Start Log Bindings
//Success Or Failure
$MailLogBindings->SuccessOrFailure->ToDo = "none";
$MailLogBindings->SuccessOrFailure->Connection = "";
$MailLogBindings->SuccessOrFailure->TableName = "";
$MailLogBindings->SuccessOrFailure->EmailColumn = "";
$MailLogBindings->SuccessOrFailure->ColumnList = array();
$MailLogBindings->SuccessOrFailure->TypeList = array();
$MailLogBindings->SuccessOrFailure->ValueList = array();
//Success Only
$MailLogBindings->Success->ToDo = "none";
$MailLogBindings->Success->Connection = "";
$MailLogBindings->Success->TableName = "";
$MailLogBindings->Success->EmailColumn = "";
$MailLogBindings->Success->ColumnList = array();
$MailLogBindings->Success->TypeList = array();
$MailLogBindings->Success->ValueList = array();
//Failure Only
$MailLogBindings->Failure->ToDo = "none";
$MailLogBindings->Failure->Connection = "";
$MailLogBindings->Failure->TableName = "";
$MailLogBindings->Failure->EmailColumn = "";
$MailLogBindings->Failure->ColumnList = array();
$MailLogBindings->Failure->TypeList = array();
$MailLogBindings->Failure->ValueList = array();
//End Log Bindings
$MailLogBindings->SuccessOrFailure->MailRef = "waue_contact_us_1";
$MailLogBindings->Success->MailRef = "waue_contact_us_1";
$MailLogBindings->Failure->MailRef = "waue_contact_us_1";
$MailLogBindings->processLog(($_SESSION["waue_contact_us_1_Status"] == "Failure"));
}
$WA_MailObject = null;
?>

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