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?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | common.txt | 126.04 KB | zac-2 |
Comments
Comment #1
dipen chaudhary commentedCan you put up the code?
Comment #2
zac-2 commentedFor common.inc? I've attached it.
Comment #3
zac-2 commentedActually 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'];
Comment #4
gpk commented>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.