email form seems to be missing some files..

2 views
Skip to first unread message

sergio_101

unread,
Jul 21, 2008, 11:39:38 AM7/21/08
to Web Form Factory
hi, guys!

i just set up an email form, and there seems to be a problem with the
code that it generates..

include_once("wff_misc.php");

--> this was fixed.. if you add "../objects/" to the front of the
file, it will reference the correct file.

include_once("../objects/class.phpmailer.php");

--> this is where i have a problem. this file isn't included in the
zip file that is generated..

is there anyone who can send me a copy of this file so i can get this
thing uploaded and tested?

thanks!

Joel

unread,
Jul 21, 2008, 2:17:59 PM7/21/08
to Web Form Factory
Sorry to hear it's missing some files:

you can probably download phpmailer directly here:
http://sourceforge.net/project/showfiles.php?group_id=26031

I will try to take a look why those files are not included in the
package in the first place. Should be fixed within 24hrs.

regards

sergio

unread,
Jul 21, 2008, 4:03:31 PM7/21/08
to Web-Form...@googlegroups.com

On Jul 21, 2008, at 2:17 PM, Joel wrote:

> you can probably download phpmailer directly here:
> http://sourceforge.net/project/showfiles.php?group_id=26031

i got it.. i thought that might be the same library, but i didn't want
to mess with it and find out i guessed wrong....

thanks!


___
sergio t. ruiz
network analyst
red red design
419.281.8483

Tim

unread,
Jul 22, 2008, 5:24:43 PM7/22/08
to Web Form Factory
Yep - This exact scenario happened to me as well. Plus - it doesn't
seem to work well when using a more complex html page (using
dreamweaver templates, etc). So I created the most basic form,
similar to the tutorial - and used email instead of database (I
thought that would make it easier,...) and it still doesn't work.
Like you said - you have to manually change where it looks for that
wff_misc.php file (it puts it in the objects folder, but then doesn't
look for it there??) so once you do that - it then looks for that
phpmailer.php (which is another email program. I have it, but I was
hoping this website avoided the need to get that email
program.......) Oh well, hopefully this will get fixed.

Tim

unread,
Jul 22, 2008, 5:28:31 PM7/22/08
to Web Form Factory
Even after putting that phpmailer file on the webserver, it still
doesn't work...

Now it says: Parse error: parse error, unexpected T_STRING, expecting
T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/[webserver]/html/
test/form/objects/class.phpmailer.php on line 45

sergio

unread,
Jul 23, 2008, 9:00:11 AM7/23/08
to Web-Form...@googlegroups.com

On Jul 22, 2008, at 5:24 PM, Tim wrote:

> seem to work well when using a more complex html page (using
> dreamweaver templates, etc). So I created the most basic form,


yeah.. i tried to use it in a dynamic site, but without really
spending a bunch of time on it..

but i ended up having to have the site generate a blank page..
building the form on that page..

then make a form out of that..

one suggestion i would have would be to let the user submit a file like:

<form>
form contents...
</form>

without requiring a fully formed page....

that way, you can include your form using a php include in the middle
of a dynamically generated page..

sergio

unread,
Jul 23, 2008, 9:07:35 AM7/23/08
to Web-Form...@googlegroups.com

On Jul 22, 2008, at 5:28 PM, Tim wrote:

> Now it says: Parse error: parse error, unexpected T_STRING, expecting
> T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/[webserver]/
> html/
> test/form/objects/class.phpmailer.php on line 45

hmmm...

did you inlude ONLY the class.phpmailer.php file? is there any chance
it got edited before you uploaded it?

i just checked my file.. and line 45 is a blank line following this:

/**
* Email priority (1 = High, 3 = Normal, 5 = low).
* @var int
*/
var $Priority = 3;


it's just a bunch of variable declarations for the 250 or so lines....

if you want, i can send you my copy of the file..

Reply all
Reply to author
Forward
0 new messages