OK I ended up putting it in the root directory at a different website and then i realized all my directories were missing the home/domainname/ part so i added that in and bam, all said and done.
im quite proud of myself now lol
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
HI, I'm new to this form but its working when theres no special functions other then email. I have an HTML template set up, CSV, and email.
FYI the form is not in the root directory, it is a subdirectory as thats where the whole site is. Not sure if thats what's screwing it up.
I'm a PHP beginner... pulling hair out...
I'm getting 4 errors.
here's the CSV error:
The following error occurred in FormMail :
Failed to open CSV file "/SPBR/csvdir/formdata.csv": failed to open
stream: No such file or directory
here's the email error:
The following error occurred in FormMail :
mail_failed
**********
Error=Failed to send email
scratchpad error
The following error occurred in FormMail :
Unable to create check file "/SPBR/FMScratchpad/fmcd6cb1.txt": failed
to open stream: No such file or directory
template error:
Failed to open template
"http://www.homepartybiz.com/SPBR/FMTemplates/mytemplate.html?USER_AGENT=Mozilla%2F4.0+%28compatible%3B+MSIE+6.0%3B+Windows+NT+5.1%3B+SV1%3B+.NET+CLR+1.1.4322%29&PHPSESSID=28de960c51afd0b3c8f1da8b609b29b3"
: failed to open stream: no suitable wrapper could be found
the PHP is:
PHP Code:$CSVDIR = "/SPBR/csvdir";
PHP Code:$TEMPLATEDIR = ""; // directory for template files; empty string
// if you don't have any templates
/* Help: http://www.tectite.com/fmdoc/templateurl.php */
$TEMPLATEURL = "http://www.homepartybiz.com/SPBR/FMTemplates";
PHP Code:$SCRATCH_PAD = "/SPBR/FMScratchpad";
The form's html is:
THANKS in advance!!HTML Code:<form method="post" action="http://www.homepartybiz.com/SPBR/contactform.php" name="adoptionappnew"> <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER"> <input type="hidden" name="recipients" value="rae88EGspbr.org,chelle88EGspbr.org" /> <input type="hidden" name="required" value="email:Your email address,realname:Your name" /> <input type="hidden" name="subject" value="SPBR Adoption Application" /> <input type="hidden" name="good_url" value="http://www.homepartbiz.com/SPBR/Thanks.html" /> <input type="hidden" name="csvfile" value="formdata.csv" /> <input type="hidden" name="csvcolumns" value="Name,SpouseName,Email,Street_Address,City,St,ZIP,HomePhone,WorkPhone,CellPhone,Age,SpouseAge,Occupation,SpouseOccupation,NumRoommates,AgesRoommates,NumKids,AgesKids,LivesParents,NumParents,SmokingYes,SmokingNo,SmokingOutside,DriveTimePupPickUp,WllingToPayShipping,Rural,Semi-Rural,Suburban,Semi-Urban,Urban,Wooded,WaterfrontOcean,WaterfrontNonOcean,OpenAcreage,NbhoodFrontage,BordersPark,TypeOfHome,LandlodRestrNotRenter,NoLandlordRestr,UnknownLandlordRest,LandlordHasRestriction,Restrictions,LandlordInfo,NoYard,SmlYard,MedYard,LrgYard,Acreage,Fenced,NotFenced,PartialFence,FenceNotAppl,FenceDescr,BSLYes,BSLNo,BSLUnknown,BSLDetail,DogChoice1,DogChoice2,DogChoice3,DogChoice4,PreferMale,PreferFemale,NoGengerPref,PreferYoungPuppy,PreferOlderPuppy,PreferYoungAdult,PreferAdult,PreferSenior,NoAgePreference,OtherPreferences,PreferFixed,PreferNotFixed,FixedDoesntMatter,AddtlRequests,LivingIndoors,LivingUnfinBmentGarageBasement,LivingFinBmentGarage,LivingOutdoors,LivingOutdoorsWDogHouse,LivingOther,LivingOtherExplain,GuardogYesResidence,GuardDogYesBiz,NotGuardDog,HoursAloneDaily,AloneLoose,AloneLooseOutdoors,AloneCratedIndoors,AloneKenneledIndoors,AloneKenneledOutdoors,AloneTieOut,AloneChain Outdoors,AloneOther,AloneOtherExplain,LeashWalks,SupAccessFenced,UnsupAccessFenced,SupAccessUnfenced,UnsupAccessUnfenced,TieOutAccess,DogPark,OtherExercise,OtherExerExplain,SleepWhere,OvernightAbsences,HaveSpayedFem,HaveUnspayFemale,HaveNeuMale,HaveUnNeuMale,NoOtherDogs,AgesBreeds,PastStillHave,PastDiedOld,GaveAwaySold,HitbyCar,Stolen,Lost,RehomeDetail,CatsYes,CatsNo,CatsNotYet,RodentsExplain,MainCaregiver,ReasonRescue,TravelFrntPassBelted,TravelFrntPassNoBelt,TravelBackBelted,TravelBackUnBeltedTravelPUpTethered,TravelPUpUnTethered,TravelCratedInterior,TravelCratedTruckBed,DisciplineMethod,ReactionRuinValuable,OptionObedTraining,HasObedTrained,HasNotObedTrained,HouseholdMemObedTrained,WillingGoTraining,NotWillingToGoTraining,WillingtoHousetrain,NotWillingHouseTrain,PreferHouseTrained,HouseTrainMethod,HeartwormFamiliar,ReHomeBehaviors,RehomCircumstances,HowWouldGetRid,WhenConsiderEuth,WhatDrewtoPits,BreedExper,Ref1,Relationship1,Number1,Ref2,Relationship2,Number2,Ref3,Relationship3,Number3,Ref4,Relationship4,Number4,AddtlInfo,LiabilityYes,LiabilityNo,IllegalAgreeYes,IllegalAgreeNo,HousePetYes,HousePetNo,ContractWillingYes,ContractWillingNo,ReturnToRescueYes,ReturnToRescueNo,DigitalSignature,Date" /> <input type="hidden" name="mail_options" value="HTMLTemplate=mytemplate.html" /> <input type="hidden" name="mail_options" value="HTMLTemplate=mytemplate.html,TemplateMissing=NoAnswer" />
OK I ended up putting it in the root directory at a different website and then i realized all my directories were missing the home/domainname/ part so i added that in and bam, all said and done.
im quite proud of myself now lol
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks