Forum Moderators: coopster

Message Too Old, No Replies

PHP 5 Form Mail from problem

Question about Jack's formmail script for php 5

         

sjcdreamcatcher

5:55 pm on Nov 17, 2006 (gmt 0)

10+ Year Member



Hi there, I'm new to this forum and to php aswell, but I'm trying.

I've gone through 'Jack's form mail script for php 5 and implemented it into a web page I'm working on.

My server supports php 5, but I get an error which I don't understand, which is:

Fatal error: Call to undefined function: () in /home/z37711/public_html/formmail.php on line 184

Would anyone know off the top of your head what this means?

The script's pretty long, so please don't freak out, I'm new to this forum. Your help is appreciated.

Thanks S.

[edited by: dreamcatcher at 6:05 pm (utc) on Nov. 17, 2006] -- Generalized urls.

[edited by: coopster at 5:33 pm (utc) on Nov. 20, 2006]
[edit reason] removed code dump [/edit]

barns101

6:32 pm on Nov 17, 2006 (gmt 0)

10+ Year Member



I couldn't see any functions around line 184 when I pasted that script into my text editor. Could you tell us what's on line 184?

scriptmasterdel

9:23 pm on Nov 17, 2006 (gmt 0)

10+ Year Member



The only potential problem i can see around that line is the

$ricount($sort)

Should this be

count($sort)

?

And then again this appears again 6 lines later?

I don't seen any assignment to that var, let me know ;-)

Del

coopster

5:38 pm on Nov 20, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, sjcdreamcatcher.

An undefined function is exactly that, the PHP parser is trying to run a function that does not exist in the current script invocation memory space. If you can show us what line of code is on that line number we can assist further.

On a side note, a search over these forums on that particular script shows lots of issues and troubles. One might want to search for a better form processor or develop your own.