Parse Error: Unexpected $

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
The Merg
Forum Newbie
Posts: 15
Joined: Tue Nov 06, 2007 5:38 pm
Location: Virginia

Post by The Merg »

I am using v1.2.5.

I made the changes you suggested to scformproc.php for the $foo variable to no avail. I'm guessing it has to be in my actual page if the original page loads up with no problem. This is getting really frustrating. Ugggghhhhhh!!!!

- Merg
phpBuddy
Forum Commoner
Posts: 37
Joined: Mon Nov 05, 2007 3:42 am

Post by phpBuddy »

The Merg wrote:I am using v1.2.5.

I made the changes you suggested to scformproc.php for the $foo variable to no avail. I'm guessing it has to be in my actual page if the original page loads up with no problem. This is getting really frustrating. Ugggghhhhhh!!!!

- Merg
I installed SCForm 1.2.5 at my webserver.
I set CAPTCHA verification = true.

Then I filled in the scform.php
Result:

Code: Select all

Thanks for your comments!

We remembered where you were.
Click the link below to be taken back.

Take Me Back
This is strange: I did not change $$foo (which I still think is a problem).
Instead I installed it without any changes to the original files.

Maybe you should try to make a new fresh install??
User avatar
The Merg
Forum Newbie
Posts: 15
Joined: Tue Nov 06, 2007 5:38 pm
Location: Virginia

Post by The Merg »

Yeah, I just went ahead and recopied the PHP code from scform.php into a brand new template. Of course, when I ran the new page, it worked fine. Now I just have to modify the layout a little bit. Hopefully, that won't screw anything up. The working page is at http://www.themerg.net/contact2.php.

If you submit the form, it'll bomb as it is still using an old thank-you page that also had the parse error. I'll have to try to recreate that one too.

Thanks for the help.

- Merg

BTW, should I leave that $$foo variable alone?
User avatar
Zoxive
Forum Regular
Posts: 974
Joined: Fri Apr 01, 2005 4:37 pm
Location: Bay City, Michigan

Post by Zoxive »

The Merg wrote: BTW, should I leave that $$foo variable alone?
Those are variable variables.

http://www.php.net/language.variables.variable
Post Reply