close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Form not submitting

Thread began 10/21/2010 11:18 am by dave378160 | Last modified 10/22/2010 9:21 am by Jason Byrnes | 1011 views | 9 replies |

dave378160

Form not submitting

I have this form I built here. contact.php I didn't build the site, just built the form. It's hosted on the same server my site is so I know that isn't an issue. I had them update the version of PHP to PHP5+. When the form is filled out and submitted the URL changes to this contact.php?invalid=true I can't figure out if it's Universal E-mail or CSS Form Builder.

Can someone look at it?

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the page in a zip archive so I can examine the code.

Sign in to reply to this post

dave378160

Like this?

Attached Files
contact.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

ok, to find which validation is failing, find this code:

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

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



and change it to:

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

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




I'm thinking it might be a session management issue, upload the session test file from this thread then post back:
showpost.php?p=23826&postcount=2

Sign in to reply to this post

dave378160

When I click the first Set Session test it shows this in the URL.

sessionTest.php?test=test

When I click the second Test Session is shows this in the URL.

sessionTest.php

I also implemented the script change and now when I hit submit is goes to a white blank page, doesn't change the URL, the page just goes blank.

Sign in to reply to this post

Jason ByrnesWebAssist

change this line:

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




to:

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

dave378160

Okay that worked. What I wonder is why did it set itself up that way? Do I need to update something I'm using?

Also, the file upload section says it's "required" with the asterisk and I never checked that box. It just did it by itself.

If I don't attach a file it blanks out. Strange.

Sign in to reply to this post

Jason ByrnesWebAssist

It's a bug in the extension it should be fixed in a future release.



if you do not want the file upload to be required, delete the line:
$WAFV_Errors .= WAValidateRQ((isset($_FILES["Contact_Form_group_Sample_FIle_Upload_MB_Max_size"])?$_FILES["Contact_Form_group_Sample_FIle_Upload_MB_Max_size"]["name"]:"") . "",false,5);

Sign in to reply to this post

dave378160

Thanks again Jason, that worked. I also just deleted the Asterisk as well. Thanks for the help. I truly do appreciate it. With support like this I'll be sure to stay a loyal customer.

Sign in to reply to this post

Jason ByrnesWebAssist

You're welcome.

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