Form not working
Could some one help me find the issue with this form? It doesn't do anything once you hit submit:
Could some one help me find the issue with this form? It doesn't do anything once you hit submit:
Try changing the universal email trigger to use the Submit button pressed instead of current page submit.
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
open the server behaviors panel.
double click the Universal Email server behavior.
change the trigger setting from Current page submit to Button Submit pressed.
not surte why it is not showing, do you have data bridge installed?
change line 27:
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:
if (isset($_POST["Submit"]) || isset($_POST["Submit_x"])) {
also change the code for the submit button:
<input type="submit" value="Submit" class="inputButton"/>
to:
<input type="submit" value="Submit" name="Submit" id="Submit" class="inputButton"/>
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.
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.
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.
with the bad naming conventions, those form elements will not be included in the email.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
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.