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

rating

Form not working

Thread began 7/22/2013 6:47 pm by kathy.bankston359922 | Last modified 7/25/2013 11:19 am by kathy.bankston359922 | 1418 views | 14 replies |

kathy.bankston359922

Form not working

Could some one help me find the issue with this form? It doesn't do anything once you hit submit:

Sign in to reply to this post

Jason ByrnesWebAssist

Try changing the universal email trigger to use the Submit button pressed instead of current page submit.

Sign in to reply to this post

kathy.bankston359922

I've looked for what you said, but I have no clue what I'm looking for. Could you please be a bit more specific? I know nothing about PHP.
Thank you for your help,
Kathy

Sign in to reply to this post

Jason ByrnesWebAssist

open the server behaviors panel.

double click the Universal Email server behavior.

change the trigger setting from Current page submit to Button Submit pressed.

Sign in to reply to this post

kathy.bankston359922

See attached screen shot, there is nothing like that in the panel

Sign in to reply to this post

Jason ByrnesWebAssist

not surte why it is not showing, do you have data bridge installed?

change line 27:

php:
if ((($_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST)))     {




to:

php:
if (isset($_POST["Submit"]) || isset($_POST["Submit_x"])) {



also change the code for the submit button:

php:
<input type="submit" value="Submit" class="inputButton"/>



to:

php:
<input type="submit" value="Submit" name="Submit" id="Submit" class="inputButton"/>
Sign in to reply to this post

kathy.bankston359922

just did this and uploaded, it acts like it submits but just stays on the page. Clears the form and does nothing.
Revised php attached for your review.

Attached Files
contactus-feedback.php
Sign in to reply to this post

Jason ByrnesWebAssist

the server validation on the page is set to validate a form element named Comments which does not exist. the closest i can find is this text area:


<textarea name="Any final comments or suggestions?" id="Any final comments or suggestions?" cols="45" rows="5"></textarea>


the name for this text area is not valid, it contains spaces and punctuation.

the rules for naming a form element are:
1) you may use only Letters and Numbers
2) The only exception is the underscore _
3) The first character of the element name must be a letter.

change the form element name to Comments:
<textarea name="Comments" id="Comments" cols="45" rows="5"></textarea>


you have many other form elements on your page that are not properly named:
<select name="3) If applicable, was our credit department helpful in arranging any financing that you may have needed?"

these will need to be changed as well.

Sign in to reply to this post

kathy.bankston359922

this fixed it: the server validation on the page is set to validate a form element named Comments which does not exist. the closest i can find is this text area:<textarea name="Any final comments or suggestions?" id="Any final comments or suggestions?" cols="45" rows="5"></textarea>

I renamed this element previously.

So will having the other form elements with bad formats on the naming convention cause any problems. The form functions perfectly with the naming conventions as they are now.

Thank you for your help, I really appreciate your time.

Sign in to reply to this post

Jason ByrnesWebAssist

with the bad naming conventions, those form elements will not be included in the email.

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