Hi again,
Thankyou for asking for me!
First of all, I checked the nameserver for your website, and it
appears that your site is being hosted by M6.NET. Their site says that
their hosting accounts offer PHP. If you are with them, and this is
the type of hosting you have, then using PHP is a lot quicker and
easier than using CGI. PHP was designed to work in conjunction with
web pages, and there is a command for sending email. In CGI you need
an entire program.
If you can't use PHP, let me know and I'll explain all the CGI stuff for you.
This is how to change the form at:
http://www.geocities.com/theorphanages/form_add_orphanage_link.html
...to one that you can run yourself. You can keep the same HTML as you
are using at Geocities. These are the changes you need to make:
<form>
------
Open the HTML page that resides at GeoCities.
Remove the <form> tag:
<form method=post action="http://geocities.yahoo.com/forms">
and the </form> tag that follows a few lines later.
Replace them by adding this line directly after the <body> tag near
the top of the document:
<form method=post enctype="multipart/form-data"
name="LinkRequestForm"action="formmail_orphanage.php">
and this line directly before the </body> tag at the end of the document:
</form>
Save the file and upload it to your myorphanage.org site.
Change the link
---------------
On this page:
http://www.myorphanage.org/africa.html
and all the others in that directory, the link that says "Add
Orphanage link!" is pointing to GeoCities. Change each of those links
to:
http://www.myorphanage.com/form_add_orphanage_link.html
Remove
-------
Remove these two lines:
<input type="hidden" name="login" value="theorphanages">
<input type="hidden" name="next_url"
value="http://www.myorphanage.org/form_thanks_add_orphanage_link.html">
If necessary, remove any Geocities code that appears below </html> at
the end of the document.
Create the Form Mail file
-------------------------
Open this page in an HTML editor:
http://www.myorphanage.org/form_thanks_add_orphanage_link.html
Copy the code below and paste it directly after the <BODY> tag.
<?PHP
mail("Form@MyOrphanage.org", "$subject", "
Name: $Staff_Full_Name_\n
Country: $Staff_Country_\n
Email: $Staff_EMail_\n\n
Working For: $Staff_Working_in_Orphanage_answer_\n
Orphanage Job: $Staff_Working_In_Orphanage_Select_Job_\n
Country: $Orphanage_Country_\n Orphanage
Email: $Orphanage_EMail_\n Orphanage
WebSite: $Orphanage_Web_Site_Address_\n",
"From: $Staff_EMail_\r\nReply-to:$Staff_EMail_");
?>
Save the file as formmail_orphanage.php and upload it to the same
location as where form_thanks_add_orphanage_link.html was.
Your other forms
----------------
Make sure you name each formmail.php file differently (you'll need a
different one for each form), and change each <form> tag so that it
points to the correct PHP file.
Change the variables in each formmail to reflect those that already
exist in each form. The components of this line:
Working For: $Staff_Working_in_Orphanage_answer_\n
are:
Working For: (put anything you like here, it just makes the email
easier to understand)
$Staff_Working_in_Orphanage_answer_ (is the name of the field in the
form, with a dollar sign stuck in front of it so that PHP knows it is
a string)
/n (puts a line break in the email to make it easier to read - /n/n
would be two line breaks)
I copied pages from your site, made the above changes, placed them on
my server, and they are working fine. Fingers-crossed that it works
for you first time, but if it doesn't, just ask for a clarification,
let me know the URL of the files, and I'll sort it out for you.
Best wishes,
robertskelton-ga |