close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Contact form not submitted - get ?invalid=true

Thread began 8/22/2010 7:58 pm by cldsk369146 | Last modified 8/31/2010 10:05 am by Jason Byrnes | 930 views | 9 replies |

cldsk369146

Contact form not submitted - get ?invalid=true

Hello, I am trying to get a contact form working. I have successfully used form builder and universal email for several contact forms, but this one is giving me a problem.

It is currently found on contact.php

It has a couple unique features that the other forms I made didn't which might be the problem:
It has a file uploader (should be a not required field)
It has a progress bar
It has multiple e-mails that it would send to based on the Department/Concern drop down menu (a couple of the department/concerns have the value as two e-mail addresses separated by a semi-colon).


Currently, when the form is submitted it returns the following value: contact.php?invalid=true it does not go to my success page submitted.html as I put in the wizard, and it shows the form still filled out, with nothing submitted to the email addresses. I can't seem to figure this out. Your help is truly appreciated!

I uploaded the files that I hope are needed to help solve this problem.

Attached Files
crespi drama contact.zip
crespidrama CSSFormBuilder.zip
Sign in to reply to this post

Jason ByrnesWebAssist

the invalid=true querystring variable maens that alidation has failed.

try changing:

php:
$WAFV_Errors .= WAValidateRQ((isset($_POST["fieldset_group_File_Picture_Upload"])?$_POST["fieldset_group_File_Picture_Upload"]["name"]:"") . "",false,6);



to:

php:
$WAFV_Errors .= WAValidateRQ((isset($_FILES["fieldset_group_File_Picture_Upload"])?$_FILES["fieldset_group_File_Picture_Upload"]["name"]:"") . "",false,6);
Sign in to reply to this post

cldsk369146

I did that, but still getting the same error. No required field seems to be missing, so not sure why it isn't working.

Sign in to reply to this post

Jason ByrnesWebAssist

ok, in the contact page, change:

php:
if ($WAFV_Errors != "")  {

    PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
  }




to:

php:
if ($WAFV_Errors != "")  {

    die($WAFV_Errors);
    PostResult($WAFV_Redirect,$WAFV_Errors,"contact");
  }




this will write a comma separated list of validation errors to the screen to help me determine what is failing.

Sign in to reply to this post

cldsk369146

Many thanks for the response. I did this, and the following came up after submitting a form:
,6

Sign in to reply to this post

Jason ByrnesWebAssist

OK, 6 is the file field, are you selecting a file to upload?



maybe try changing the code I gave you previously:

php:
$WAFV_Errors .= WAValidateRQ((isset($_FILES["fieldset_group_File_Picture_Upload"])?$_FILES["fieldset_group_File_Picture_Upload"]["name"]:"") . "",false,6);




to:

php:
$WAFV_Errors .= WAValidateRQ((isset($_FILES["fieldset_group_File_Picture_Upload"]["name"])?$_FILES["fieldset_group_File_Picture_Upload"]["name"]:"") . "",false,6);
Sign in to reply to this post

cldsk369146

Many thanks for the suggestions, here is where I am at right now:
I entered the new code you gave me above, when I try to submit the form without the file upload I get the ",6" error. When I select a file to upload, it gives the progress bar, and submits. I get the email sent to me, but without the file attachment.

I do want the form to have the file upload as an option, not a requirement. It is set as that in form builder, but seems to not be correct somewhere in the code? Also, when someone ataches the file, I would like the file to be attached to the e-mail it is sent to.

Hopefully this helps, thank you for your help with this issue!

Sign in to reply to this post

Jason ByrnesWebAssist

this line:
$WAFV_Errors .= WAValidateRQ((isset($_FILES["fieldset_group_File_Picture_Upload"]["name"])?$_FILES["fieldset_group_File_Picture_Upload"]["name"]:"") . "",false,6);

is requiring that a file be uploaded.


if you do not want to force the file upload, then delete that line.

for the attachment:
Where you are using file upload to store the file on the server, you cannot use the From Upload Option.

On the attachment tab, select the Entered Value option.


Click the lightning bolt and select he Server Directory from the Uplaoded Files (File Field) binding group.

this will add code similar to:

php:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"]; ?>



copy that code, then click the lightning bolt again. This time, elect the Server File Name binding. This will create code similar to:

php:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>



you need to paste the server directory code in fromt of that so you get:

php:
<?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverDirectory"]; ?><?php echo $WA_DFP_UploadStatus["WA_UploadResult1"]["serverFileName"]; ?>
Sign in to reply to this post

cldsk369146

Many thanks, I was finally able to get it working! I appreciate your help!

Sign in to reply to this post

Jason ByrnesWebAssist

great, glad to hear it is working.

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