Need help finding an error

Hey everyone. I’m somewhat of a newbie to PHP, but I’m the only one at my work who has any experience with it, so I get stuck with all of our PHP related tasks. Anyway, I’m coding a form for one of our clients and I can’t seem to find the error in my code. Dreamweaver tells me there’s a syntax error on line 130, which is this line:

I can’t seem to locate the error though. If anyone could help me out on this, I’d greatly appreciate it.

I tried pasting my code in this post, but I received this error: “The message exceeds the maximum allowed length (20000 characters).” so I uploaded my php file to mediafire.com.

Here’s my file: http://www.mediafire.com/?gagzvuoqlhijm7b

Thanks!

the way you have this sentence, it is written for html,

[php][/php]

you need to let the server know where the php starts and ends like so:

[php][/php]

let me know if this works out for ya :wink:

Thanks for the response plintu.

Unfortunately, that didn’t seem to work. I’m still getting a syntax error. I think something in the actual html of the form is affecting that one line of code.

I’ve used this before on a few other forms and its worked for me.
[php][/php]

Thanks for the help though! :slight_smile:

$PHP_SELF is deprecated and relies on register globals, after php 4.1 $_SERVER[‘PHP_SELF’] is the correct way to use it.

You might have to put it in quotations with curl brackets {}
[php]action=’{$_SERVER[‘PHP_SELF’]}’ [/php]

or

[php]action=’".$_SERVER[‘PHP_SELF’]."’ [/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service