Error message when opened in the browser - parse error?

I'm having this problem when I use the image upload server behavior in my PHP file.  Does anyone have an explanation of this error when I open it in a browser?

There is also a red exclamation mark next to the server behavior.  Is there a place in Dreamweaver that tells me where the error occurs (in Flash)?

Parse error: syntax error, unexpected $end in... .line 308

Thanks for your help!

Balance braces woudn't fix. It's actually a rather obscure PHP function that triggers an error, even if the code is technically correct. Before dealing with that, you download twice form on your page, once in the wrong place and at the right place.

You must remove the form located on lines 2-25.

What causes the parse error is how the loop in the dynamic form was built. Change the code at the bottom of the form that is in the body of the page like this:

  /*start dynamic form*/
  for($x=0;$x<$inputfiles;$x++){
    echo "
    
"; } /*end dynamic form*/ ?>

The problem was that the loop is contained in the HTML code. Normally, it's not a problem, but the PHP parser has been offended and decided to not play ball. Remove the HTML code and using echo to display it, solves the problem.

I can't comment on the question of whether the rest of the code is OK. You should check with the person who creates the code for you. But the error has been resolved.

Tags: Dreamweaver

Similar Questions

Maybe you are looking for

  • Should I reinstall Vista Home Premium?

    My problem started when I downloaded a few new files for a game, I run on my Vista Home Premium.  The game is Left 4 Dead 2, I've been looking for a good map editor for game cards included with the game, and in my research on the web, I found a few n

  • Photosmart 7520 Wi - Fi 802.11n

    Hello I use my 7520 wireless without problems... as long as I left my Wi - Fi router work mode 802.11 g/n. Whenever I turn my router to 802.11n only the printer instantly disconnects (blue blink seeing Wi - Fi). Other wireless devices (desktop Window

  • BlackBerry Smartphones BlackBerry very slow to receive emails

    Lately, my blackberry has been very slow to receive emails. They will be in my Inbox in Outlook, but can take more than 2 hours to come to my blackberry. Example this morning, I received emails that came through Outlook from 09:07 by at 10:07 (7 emai

  • Windows Virtual PC and Windows XP Mode in Windows 7

    I just bought a new PC Pro WIN 7 with the ability to run WIN XP in a virtual machine.  It told me I have to go on a MS site and follow the instructions to validate that the installation was valid. Then I was told to download the 3 following programs

  • BlackBerry Smartphones Can I install a firmware of Rogers in a Mobilicity unlocked BlackBerry?

    Can I install a firmware of Rogers in a Mobilicity unlocked BlackBerry? I use the phone with my card SIM of Rogers.