close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Help with Contact Form

Thread began 8/21/2010 5:08 am by madelectrical386948 | Last modified 8/27/2010 10:51 am by madelectrical386948 | 2963 views | 12 replies |

madelectrical386948

Help with Contact Form

I need some help with my contact form. I created the page with WA form and applied the Universal E-mail.

I will send the contact.php attached.

I can receive the email, but the form information is not present. Just the items that were added from the Universal E-mail.

What I'm I missing within my form that will put the info into the email?

I started a thread within the U E-mail, but I guess that is in the wrong place. If you could delete that Jason, that would be helpful.

thx

Mike

Attached Files
contact.us page.txt
Sign in to reply to this post

madelectrical386948

I still cannot get the form info in the email.

I just have a name,email and comments on the form.

It doesn't seem to have a post command within the code.

This is very basic, but I must be doing something wrong. New to PHP and code, so I am not sure what I am missing.

Please let me know.

Mike

Sign in to reply to this post

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;
?>

Sign in to reply to this post

Jason ByrnesWebAssist

In the server behaviors list, double click the Universal Email server behavior.

On the first page, check the option to "Create a File For my Email Message" and select one of the templates from the list.

Sign in to reply to this post

madelectrical386948

Your right Jason,

I can't believe I missed that. I believe I picked the default and nothing came up.

It works now and thanks.

Mike

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

Sign in to reply to this post

madelectrical386948

Hi Jason,

Need more help. I have spent hours on this and I am glad I still have my sense of humor.

I don't know how many times I have made this contact page.

I figured out how to make the individual elements for my contact page. I am having problems with the radio groups.

I would like to ask the customer the Best time to reach them. When you create the element, it allows you to pick the radio group and I selected wide. I have selected validation, but what must I select for the empty value and invalid value? When I try to process the form and send it to my email, it can never validate.

What I'm I doing wrong?

Mike
Below is the radio button group

<div class="fullColumnGroup">
<label for="fieldset_group_Best_time_to_reach_you" class="sublabel" >Best time to reach you?:<span class="requiredIndicator">&nbsp;*</span></label>
<div class="errorGroup">
<div class="fieldPair">
<div class="fieldGroup"> <span id="fieldset_group_Best_time_to_reach_you_Spry"> <span class="radioFieldGroup_Wide" onblur="hideServerError('fieldset_group_Best_time_to_reach_you_ServerError');"> <span class="radioGroup_Wide"> </span> </span> <span class="radioRequiredMsg">Please select time.</span>
<input type="radio" name="radio" id="timeMorning" value="timeMorning" />
<label for="timeMorning">Morning</label>
<input type="radio" name="radio" id="timeAfternoon" value="timeAfternoon" />
<label for="timeAfternoon">Afternoon
<input type="radio" name="radio" id="timeEvening" value="timeEvening" />
Evening</label>
</span>
<?php
if (ValidatedField('contact','contact')) {
if ((strpos((",".ValidatedField("contact","contact").","), "," . "4" . ",") !== false || "4" == "")) {
if (!((strpos((",".ValidatedField("contact","contact").","), "," . "4" . ",") !== false || "4" == ""))) {
?>
<span class="serverInvalidState" id="fieldset_group_Best_time_to_reach_you_ServerError">Please select time.</span>
<?php //WAFV_Conditional contact.php contact(4:4)
}
}
}
?>
</div>
</div>
</div>
</div>

Sign in to reply to this post

madelectrical386948

Hi WA

Not sure if this is a bug, but I believe since I have started over and over again, I have the item which is causing the page to call it self again without going to the thank you page.

It's a simple text field that I want to use for the city. How do I know this?

I started with the simple contact that comes with WA and it sends. So that is a validated name,email, comments and the security. It works perfectly.

I added one element at a time to see what was really giving me the problem. I changed the name to 2 fields (first name) and (last name) and a phone field. WORKS.

I added a text field multiple ways without any validation. Does not work. Does not send.

So why is a simple text field causing my problems? Any help would be great.

Also, when I try to validate it, just like the name, it still faults out.

thx

Mike

Sign in to reply to this post

madelectrical386948

When can I get some help Jason,

I have done this so many time and different ways to see why it doesn't work.

I have created the field sets as first name,last name,city,email and phone number. All under one set. Still does not process.

I can go back to the original set that still works and it over right it. It works. So I know I can go between different sets and they should work.

I have deleted all the files that are linked at the site and put everything back in.

Please let me know what I need to send to figure this out. It is driving me crazy.

Mike

Sign in to reply to this post

Jason ByrnesWebAssist

please send a copy of your form page so I can look at the code.

Sign in to reply to this post
loading

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