close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Parse error: syntax error, unexpected '['

Thread began 7/28/2011 12:16 pm by iggymak198560 | Last modified 7/28/2011 3:29 pm by iggymak198560 | 2417 views | 6 replies |

iggymak198560

Parse error: syntax error, unexpected '['

Hi,
I'm getting this browser error on trying to load the page with a Form Builder 2 form...

Parse error: syntax error, unexpected '[', expecting T_STRING or T_VARIABLE or '$' in /home/sites/www.ifmproductions.com/web/Questionnaire/index.php on line 5

Here is the page's code, lines 1 through 9:

1. <?php require_once("../webassist/email/mail_php.php"); ?>
2. <?php require_once("../webassist/email/mailformatting_php.php"); ?>
3. <?php
4. if (!isset($_SESSION))session_start();
5. if ((isset(["WebsiteDevelopment_submit"]))) {
6. //WA Universal Email object="mail"
7. set_time_limit(0);
8. $EmailRef = "waue_index_5";
9. $BurstSize = 200;

This is using the web designer/development form template with only some color changes, width change and the button changed from submit to send it...

Can you tell from this what's happening and what I should change?

Thank you...

Iggy

Sign in to reply to this post

Jason ByrnesWebAssist

the problem is this line of code:
if ((isset(["WebsiteDevelopment_submit"]))) {


but i cant tell you what it should be changed to without the entire page code to see the context.

please compress the page to a zip archive and attach the zip file.

Sign in to reply to this post

iggymak198560

Ah yes here you go

Hi, sorry I should have done that for you. Things are strange here.

Anyway, attaching the page...

It's likely something simple but I'm just to stressed out with things.

Thanks for your quick reply.

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

Jason ByrnesWebAssist

thanks, line 5 should be:

php:
if ((isset($_POST["WebsiteDevelopment_submit"]))) {
Sign in to reply to this post

iggymak198560

That worked :) [but...]

As I knew it would... (you guys might want to look at why it wrote it like that!).

I thank you. Thanks as well for making it, as I was actually just about to try and make up something like it...

There's an issue now with the validator prompts being displayed for all of the fields. Something must be triggering them all. Something missing? I don't remember what triggered others in the past but it was a simple thing.

This is a bit off topic, but for you guy's sake, like some other posters if Form Builder threads here, I too had tried it a few times. While none had the parsing issue you just fixed, they all displayed the validator prompts and some didn't take kindly to editing... some (Sharp and one other) made the fields go way outside the 'box.'

Sorry to have to hassle you but I'm runnin up and down looking after an old lady... :-O

You can see it here Questionnaire/

Peace.

Sign in to reply to this post

Jason ByrnesWebAssist

the validation errors are showing on load because the SpryAssets/ folder has not been uploaded to the server.


make sure to upload the SpryAssets/ folder to the server.

Sign in to reply to this post

iggymak198560

Ah ha!

Thanks... you rock!

I don't remember that folder... must be new...

We be rollin.'

Peace to you and yours.

Iggy

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