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, syntax error

Thread began 2/05/2010 1:40 pm by martistott342331 | Last modified 2/15/2010 8:51 pm by Dani Chankhour | 1284 views | 9 replies |

martistott342331

contact form, syntax error

I have just purchased and tried to utilize the contact form on a remote testing server. I get the following error: Parse error: syntax error, unexpected $end in /home/saffr1/public_html/BMAA/contact.php on line 198. Line 198 is the end of the page. I had removed the security question and the capcha capability.

Attached Files
contact form question.zip
Sign in to reply to this post

Dani Chankhour

Please remove the ?> tag from line 32 on your page. Then add ?> at line 38.

Sign in to reply to this post

martistott342331

thanks, but more problems...

Thanks for your prompt response. I figured it was something like that, but I don't know php code well enough to track that type of problem down.

I made the recommended changes to the code. However, a new problem has revealed itself. When I try to send the form from my remote testing server, the page just seems to flicker for a second. The information remains in the form fields and nothing seems to happen.

Sign in to reply to this post

Dani Chankhour

You need to remove the server side validation for the security question and captcha, please comment out or remove lines 17 and 18.

Sign in to reply to this post

martistott342331

validation error messages when form page loads

Thanks for all your help. With your recommended changes, I was able to get the form working on my remote testing server. However, when I uploaded the files to the web site server, some of the text field required messages are displaying when the contact page loads. The form does work.

I'm assuming that somehow I didn't transfer the files properly. I have attached the documents. Also, you can visit the form page at:

contact.php

Sign in to reply to this post

Dani Chankhour

It looks like you have not uploaded these two files to your server:

<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />

<link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css" />


Make sure to upload your SpryAssets folder to your server. That should solve this issue.

Note:

Please don't attach the contact form pages in a forum thread.

Sign in to reply to this post

martistott342331

Thanks. The files apparently didn't upload properly.

For future reference, exactly what files do you need to determine the nature of a problem in an attachment? I'm interested in general guidelines.

Sign in to reply to this post

Dani Chankhour

As long as you upload all the folders that came with the Solution Pack zip, you should be good to go.

Sign in to reply to this post

martistott342331

I'm a little confused. You said not to attach contact form pages in a forum thread.

Sign in to reply to this post

Dani Chankhour

I'm sorry, i thought you were saying what files and folders you needed to you upload to your server for the solution pack.

As a start you could just post a link, which is a good start, and if we can't determine the issue from the link, then we usually ask for the files in a support ticket (private).

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