I've also posted this in the forums here: http://drupal.org/node/425684

I think this might be an issue with common.inc, although I'm not entirely sure.

I'm implementing a new form using PHP's mail function. The PHP I'm using works great elsewhere (for different forms). However this particular form doesn't work.

I get this error:

Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/user/domains/domain.com/public_html/includes/common.inc(1645) : eval()'d code on line 21

I can edit the page with some different PHP from a different form and it works fine. However after looking through all of my PHP I see nothing wrong with anything at all... It's the exact same as my other forms, just with more fields.

So I'm thinking this is an issue with common.inc?

CommentFileSizeAuthor
#2 common.txt126.04 KBzac-2

Comments

dipen chaudhary’s picture

Can you put up the code?

zac-2’s picture

StatusFileSize
new126.04 KB

For common.inc? I've attached it.

zac-2’s picture

Actually I found the problem. It was in my PHP.

But I don't realize what's wrong with this??? Does $23 mean something???

$23 = $_POST['23'];

gpk’s picture

Category: task » support
Status: Active » Fixed

>Does $23 mean something???
No. The problem is that it means nothing to PHP. See http://php.net/manual/en/language.variables.basics.php.

Also, I'd suggest trying to avoid hacking Drupal core files whenever possible since it makes upgrading tiresome.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.