FORUMS CLOSED DUE TO SPAM. YOU STILL CAN ADD POST!

php include??

Feed 2 posts, 2 voices

Avatar
5 posts

I’m trying to use a contact form but it doesn’t seem to leave the directory no matter what I do

Warning: include(../../../public/form.php) [function.include]: failed to open stream: No such file or directory in /home2/user/public_html/site/frog/app/frontend/classes/Page.php(370) : eval()‘d code on line 2

It always stays in classes/page.php.. is there somethin I can do? my phhp file is in public/php/form.php

 
Avatar
651 posts

try:

include(FROG_ROOT.'/public/php/form.php');

assuming you mean Frog’s public directory here…

Also.. there are at least two existing contact form plugins on this list

 
Avatar
5 posts

thx it worked! n ty 4 the list I didn’t know about it