close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

forms inquiry

Thread began 11/13/2012 8:59 pm by khon_lao435659 | Last modified 11/19/2012 8:16 am by Jason Byrnes | 1634 views | 5 replies |

khon_lao435659

forms inquiry

with the form on the checkout page. something came up. A customer made an order and entered a PO box address to send to. i found out my post does not post to PO boxes.

is there a way that by chance if a user inputs the words "PO Box" into either of the address fields on checkout and submits, i would get an error saying "we only accept residential address's only"??

Sign in to reply to this post

Jason ByrnesWebAssist

USe server validation on the checkout form.

for the address fields Use the Restrict Content validation type. for details on adding server validation to the checkout form see the "Add server validation to your web forms" tutorial on the Videos tab of the Data Bridge support page:
data-bridge/

Sign in to reply to this post

khon_lao435659

Originally Said By: Jason Byrnes
  USe server validation on the checkout form.

for the address fields Use the Restrict Content validation type. for details on adding server validation to the checkout form see the "Add server validation to your web forms" tutorial on the Videos tab of the Data Bridge support page:
data-bridge/  



i managed to find the retrict content validation, how do i add the "po box" to make it work.

Sign in to reply to this post

Jason ByrnesWebAssist

In the Don't Allow box, type "PO Box" select begins with and click the plus button to add it to the list of content that is not allowed.

repeat for each possible iteration of PO Box, for example "P.O. Box" etc...

Sign in to reply to this post

khon_lao435659

i did as you said and it inserted a code but there is an error in the insert, here the error is in line 9.

1 <?php
2 if ($_SERVER["REQUEST_METHOD"] == "POST") {
3 $WAFV_Redirect = "checkout.php";
4 $_SESSION['WAVT_checkout_743_Errors'] = "";
5 if ($WAFV_Redirect == "") {
6 $WAFV_Redirect = $_SERVER["PHP_SELF"];
7 }
8 $WAFV_Errors = "";
9 $WAFV_Errors .= WAValidateRT(no po box . ""," po box| po box, p.o. box| p.o. box, Po Box| Po Box, PO BOX| PO BOX, P.O. BOX| P.O. BOX, po BOX| po BOX",true,1);
10
11 if ($WAFV_Errors != "") {
12 PostResult($WAFV_Redirect,$WAFV_Errors,"checkout_743");
13 }
14 }
15 ?>

Sign in to reply to this post

Jason ByrnesWebAssist

what is the error message?


can you send a copy of the entire page so i can see the code in context?

Sign in to reply to this post

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