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

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Error sending form

Thread began 7/19/2009 4:56 am by Daryl | Last modified 7/30/2009 4:43 pm by Jason Byrnes | 1410 views | 4 replies |

DarylBeta Tester

Error sending form

I get the following error after sending my form


  Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 161

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 161

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 161

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 161

Parse error: syntax error, unexpected '[' in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 161  



The line in question is;

php:
$MailBody = $MailBody . "    var accepted = \"\[^\\s\\(\\)><@,;:\\\\\\\\"\\.\\[\\]\]+\";\r\n";



The lines surrounding it are;

php:
$MailBody = $MailBody . "  if ((!document.WAFV_Stop && !formElement.WAFV_Stop) && !(!required && value==\"\"))  {\r\n";

$MailBody = $MailBody . "    value = value.toLowerCase();\r\n";
$MailBody = $MailBody . "    var knownDomsPat = /^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/i;\r\n";
$MailBody = $MailBody . "    var emailPat = /^(.+)@(.+)$/i;\r\n";
$MailBody = $MailBody . "    var accepted = \"\[^\\s\\(\\)><@,;:\\\\\\\\"\\.\\[\\]\]+\";\r\n";
$MailBody = $MailBody . "    var quotedUser = \"(\\"[^\\"]*\\")\";\r\n";
$MailBody = $MailBody . "    var ipDomainPat = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/i;\r\n";
$MailBody = $MailBody . "    var section = \"(\" + accepted + \"|\" + quotedUser + \")\";\r\n";
$MailBody = $MailBody . "    var userPat = new RegExp(\"^\" + section + \"(\\.\" + section + \")*$\");\r\n";
Sign in to reply to this post

DarylBeta Tester

After I changed all the checkboxes for radio buttons it seems to have resolved...?

Sign in to reply to this post

DarylBeta Tester

The problem is back now;


Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 163

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 163

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 163

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 163

Parse error: syntax error, unexpected '[' in /home/angrytec/public_html/k9-sar.com/WA_Universal_Email/WAUE_Application_Form_1.php on line 163
Sign in to reply to this post

DarylBeta Tester

The problem was that when I copied the form over for the body of the email it copied the validation over too - this was what was causing the problems.

Sign in to reply to this post

Jason ByrnesWebAssist

It's best not to copy the forms code over.

Instead, on the body tab of Universal Email, clic krthe DW Edit button to use Dreamweaver to Look of your email.

Where you wish to display the form output, go to the bindings panel, expand the Form Collection and bind the appropriate form element.

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