Google Answers Logo
View Question
Q: A question for "robertskelton-ga" ( Answered 5 out of 5 stars,   0 Comments )
Subject: A question for "robertskelton-ga"
Category: Computers > Internet
Asked by: co45se2de-ga
List Price: $50.00
Posted: 17 Nov 2003 16:43 PST
Expires: 17 Dec 2003 16:43 PST
Question ID: 276870
I think it's already closed by myself the curent question. I'll ask a
new question for answer. Will be great if again you'll
"robertskelton-ga" answer my request.
Thanks in advance. 
Sincerely, John
Subject: Re: A question for "robertskelton-ga"
Answered By: robertskelton-ga on 17 Nov 2003 20:24 PST
Rated:5 out of 5 stars
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: 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:

Open the HTML page that resides at GeoCities.

Remove the <form> tag:
<form method=post action="">

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" 

and this line directly before the </body> tag at the end of the document:


Save the file and upload it to your site.

Change the link
On this page:

and all the others in that directory, the link that says "Add
Orphanage link!" is pointing to GeoCities. Change each of those links

Remove these two lines:

<input type="hidden" name="login" value="theorphanages">
<input type="hidden" name="next_url"

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:

Copy the code below and paste it directly after the <BODY> tag. 


mail("", "$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


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,
co45se2de-ga rated this answer:5 out of 5 stars and gave an additional tip of: $20.00
Great and quick answer. Thank you "robertskelton-ga", you're the best.

There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  

Google Home - Answers FAQ - Terms of Service - Privacy Policy