Re: Cannot find page- cgiemail
- From: Jana <Jana@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 2 Apr 2009 16:57:01 -0700
ok, i saved it again. go figure, this time it saved as a php
i uploaded it to the site (just that file)
tested
same old message.
i am going to delete everything and reload
i cannot believe i am spending all of my time on this...
thanks, spike
"Spike" wrote:
If all else fails try this!.
This depends on your host server supporting PHP files
copy the following code and paste into notepad
modify the code to fit your needs
save it as: mailer.php
in publisher change the form properties action to read:
mailer.php
How to modify the code:
CHANGE "E MAIL ADDRESS" to your email address between the quotes
CHANGE "SUBJECT OF MESSAGE" to subject you want on the email between the
quotes
CHANGE "From: XXXXXXXX"; REPLACE XXXXXXXX with your web site name
$forward = 1; leave a 1 if you have a thank you page if not make it a
0 (zero)
$location = "thank_you.htm"; if you have a thank you page it should be
named thank_you.htm or modify the line to show your page
The "mailer.php" and the "thank_you.htm" MUST be in the same folder as the
form page. If not the links in the form properties and the mailer.php must
be modified.
Code Starts on Next Line with <?PHP
<?PHP
$to = "E MAIL ADDRESS";
$subject = "SUBJECT OF MESSAGE";
$headers = "From: XXXXXXXX";
$forward = 1;
$location = "thank_you.htm";
$date = date ("l, F jS, Y");
$time = date ("h:i A");
$msg = "Below is the result of your feedback form. It was submitted on $date
at $time.\n\n";
if ($_SERVER['REQUEST_METHOD'] == "POST") {
foreach ($_POST as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
else {
foreach ($_GET as $key => $value) {
$msg .= ucfirst ($key) ." : ". $value . "\n";
}
}
mail($to, $subject, $msg, $headers);
if ($forward == 1) {
header ("Location:$location");
}
else {
echo "Thank you for submitting our form. We will get back to you as soon
as possible.";
}
?>
END OF CODE: Code Ends with ?>
Spike
"janabanana" <janabanana@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7A32D085-A17A-4CBA-BD07-D786EAA0FF48@xxxxxxxxxxxxxxxx
When i publish from publisher, it creates an index.htm (my home page) and
an
index files folder which has all of the other files in it. i then upload
both
the index file and the index folder using filezilla. there is no file that
has an extension .cgi or .php. They are all htm, html, gif, png...i don't
even have a file that remotely resembles this cgi-bin.
i have even used my host's file builder to upload each file seperately
(not
using an FTP). i get the same results. Everything "looks" great, but it
doesn't work.
is publisher not creating the file when i click on the publish button?
What am i missing here?
btw-my host said that they cannot assist me with the development of html
or
help me troubleshoot (policy). Weird since i got the html code from them
to
begin with.
tonight when i get home, and am able to republish, i am going to try using
my own submit button (with an actual e-mail address attached to it) on top
of
the html code. do you think that would work?
do you think my webhost sucks?
--
jana
"Spike" wrote:
Jana
Using you filezilla you will be able to see the cgi-bin folder and its
contents. I assume that the mailer is in that folder. Look at the file
name and its extension. That is what needs to be in the path. If the
mailer is named "mymailer.cgi" and it is in the cgi-bin folder then the
path
would be "/cgi-bin/mymailer.cgi" without the quotes of course.
Spike
"janabanana" <janabanana@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:04B5E214-9793-4C36-A103-867B9EF79E4B@xxxxxxxxxxxxxxxx
not sure about your answer.
where do i find out what extension my mailer has?
where do i add this extension? to the end?
/cgi-bin/cgiemail.cgi(or.php)?
Thanks Spike
--
jana
"Spike" wrote:
The form mailer file has an extension .cgi or .php
Your routing does not
You have
"/cgi-bin/cgiemail"
You need to put the extension of the file on there
Spike
"Jana" <Jana@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:F33D4C90-423C-4DE6-97D4-95776C17CC09@xxxxxxxxxxxxxxxx
i have also read somewhere about using FTP uploading vs. HTTP
uploading.
I don't understand the difference - could this be the problem. (used
FTP).
FileZilla.
Everything looks good, it just doesn't work good.
"Jana" wrote:
background:
i created a wesite with Pub 2003.
i created a form page (blank), but i copied and pasted the HTML
code
for
the
form from my host (freeservers.com).
the page looks great! however i get this message when i click
submit:
[Sorry, we could not find the page you were looking for.
The page “http://www.creativebananas.com/cgi-bin/cgiemail”; can't be
located.]
the form code i used was:
<form action="/cgi-bin/cgiemail" method="post">
the submit button code is:
<tr><td colspan=2><input type="submit" value="SUBMIT"></td></tr>
my wesite is CreativeBananas.com and the form is located on the
START
YOUR
CREATION PAGE.
I have called my host, but they don't know. They said they would
check
into
it and fix it for me and then send me an e-mail when the problem
was
resolved.
Does this sound like they know "they" have a problem or do you
think i
have
typed some code wrong?
- References:
- Cannot find page- cgiemail
- From: Jana
- RE: Cannot find page- cgiemail
- From: Jana
- Re: Cannot find page- cgiemail
- From: Spike
- Re: Cannot find page- cgiemail
- From: janabanana
- Re: Cannot find page- cgiemail
- From: Spike
- Re: Cannot find page- cgiemail
- From: janabanana
- Re: Cannot find page- cgiemail
- From: Spike
- Cannot find page- cgiemail
- Prev by Date: Re: Cannot find page- cgiemail
- Next by Date: Re: Cannot find page- cgiemail
- Previous by thread: Re: Cannot find page- cgiemail
- Next by thread: Re: Cannot find page- cgiemail
- Index(es):
Loading