/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Where do I put server side .php form files?

I’m a NewB adding .php Email form files (downloaded from hscripts.com/scripts/php/) to my website on a server (ivaluehost.com) which is suppose to support PHP.

If the answer to my Title question is “it doesn’t matter” then there’s no need to read any farther than this – just please tell me that and I’ll begin troubleshooting elsewhere.

The mail form php files were downloaded with this file structure:

>

HFM_1_1

>>

HFM

>>>

color.php
>>>mail.php
>>>mailer.php

note: one of these php files contains some JAVA (if that matters).

My current website on [url]http://www.ivaluehost.com[/url] is setup like this:

>

Public.htm

>>

index.htm (home page)
>>contact.html (w/button that points to formEmailPage.html page)
>>formEmailPage.html
>> _private
>> _
vti_bin
>> _vti_cnf
>> _
vti_log
>> _vti_pvt
>> _
vti_txt
>> cgi-bin

I see nothing within any of the three downloaded .php email form files that points to anything so will the server be able to find them no matter what directory they are executed in or what that directorys name is?

Thanks!

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@kiwibritDec 08.2006 — Welcome to the forum.

Assuming your form uses something like:
<form name="contact_form" action="feedback.php" method="post">
then feedback.php should be in your route directory. But there is no reason why you could not put it in a directory, say "myfeedback". Your html would then have to read:
<form name="contact_form" action="myfeedback/feedback.php" method="post">
Copy linkTweet thisAlerts:
@GrissauthorDec 08.2006 — Thank a million Kiwibrit! The first example is exactly how the file reads. I'll drop them into the root and give it a click. Thanks again!

oops! that opened another question. Do I point my button at the php file that contains the script that you mentioned above? That sounds logical so I'll try that next.

btw.. I used to live at the Sculthorpe RAF base near Kings Lynn, Norfolk, Fakenham, East Runton (North East 'hip') between 1956 and 1959 - back when the fog was really thick and the pennys were bigger than our silver dollars.
Copy linkTweet thisAlerts:
@GrissauthorDec 08.2006 — PROBLEM SOLVED exactly as you stated! Thanks again kiwibrit!
×

Success!

Help @Griss spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...