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

I can't seem to find the error in my code to get the form to work can you help me?

Thread began 8/16/2013 3:04 pm by tdhkfinkel424121 | Last modified 8/30/2013 9:10 am by Jason Byrnes | 1269 views | 21 replies |

tdhkfinkel424121

I can't seem to find the error in my code to get the form to work can you help me?

Hi
My form is returning the filled out version of the form instead of going to the thankyou page and emailing the results...
I've tried going over it several times and even put in 2 error finding codes-one of which keeps coming back with: ,36,79

I've gone to lines 36 & 79 and committed them out but it still comes back with the same error.

Help?

Sign in to reply to this post

Jason ByrnesWebAssist

,36,79

does not refer to line numbers in this instance.

it refers to the validations. the validation code on this page starts at line 13 and goes to line 105.

each validation has a number at the end that is used to refer to it.

line 70 is the line for validation 36:
$WAFV_Errors .= WAValidateDT(((isset($_POST["Insurance_EXP"]))?$_POST["Insurance_EXP"]:"") . "",true,"\b(1[0-2]|0[1-9])-([12]\d|3[0-1]|0[1-9])-\d{4}\b","","",false,".*","","",true,36);

and line 91 is the line for validation 79:
$WAFV_Errors .= WAValidateDT(((isset($_POST["Date"]))?$_POST["Date"]:"") . "",true,"\b(1[0-2]|0[1-9])-([12]\d|3[0-1]|0[1-9])-\d{4}\b","","",false,".*","","",true,79);


those are the 2 validations that are failing.

Sign in to reply to this post

tdhkfinkel424121

Thanks

Hi Jason,

Thanks...
It worked. I guess I misunderstood what the errors where.
Any easy one to fix...

Sign in to reply to this post

tdhkfinkel424121

Hi Again-New Issue-HELP!!!!!!

Hi Jason,

I thought I had this working but I still can't get it to submit and I can't tell where I've messed up.
There's something with the Hull info... I keep getting an error message when I submit no matter what I do. And if I take out the requirement & spry the form wont do anything.
Help I need this done today!

Sign in to reply to this post

Jason ByrnesWebAssist

all i can realy tell is that validation is failing.

to tell which validation is failing, we need to put the die statement back in:

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

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




that will give us the comma separated list to tell which validation it is that is failing.

Sign in to reply to this post

tdhkfinkel424121

Here's what I got

Hi Jason
this is what I got...

Attached Files
wavt_scripts_php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

tdhkfinkel424121

Hi Again..

I was re-thinking the problem and it all started after I tried to make the check box required with a spry.
So I'm going back to what I had-when I thanked you this morning and see if I can figure it out...
I'll let you know what happens
Thanks

Sign in to reply to this post

tdhkfinkel424121

Ok Having trouble with getting error message to come up on check box

Hi Jason,

My double backing worked! and so does the form.-Yeah!
But the error message on the check box doesn't come up when it's not checked...something's off with the spry maybe?
I don't know
See what you think
Thanks

Sign in to reply to this post

Jason ByrnesWebAssist

i think there are to many closing span tags.

change:

<span class="checkboxRequiredMsg">Please make a selection.</span></span> </span> </span> </span>I have read



to:

<span class="checkboxRequiredMsg">Please make a selection.</span></span> </span> </span>I have read
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...