This may be a stupid question, but I am just a beginner. I have successfully created a contact form at http://elysium.aswebsitedesign.com/
and I have someone that wants to know exactly how the contact form works. He said that he can see that the submit button is loading the mail.cfg file, but he wants to know exactly how the form is sending the email. How does the form work exactly?
What is in the Freeway Form Setup dialog, in the Action field?
Walter
On Oct 4, 2011, at 8:44 AM, Nate wrote:
This may be a stupid question, but I am just a beginner. I have successfully created a contact form at http://elysium.aswebsitedesign.com/
and I have someone that wants to know exactly how the contact form works. He said that he can see that the submit button is loading the mail.cfg file, but he wants to know exactly how the form is sending the email. How does the form work exactly?
Hi Nate,
It looks like you are using the PHP Feedback Form Action on that page. The Action sets the form up to point to a newly created PHP file which (when on a PHP enabled server) will process the form data, split it all up into name and value chunks, and then spit this back out to FormMail on the server which will send the email for you. On most Linux servers it just works and you end up with the form data in an email arriving at the desired email address. Some other servers (IIS for example) and even hosts (GoDaddy) make work for the Action a little harder and these can prove to be a problem.
I hope this helps.
Regards,
Tim.
If you need to find that out, you can use a phpinfo() script to learn all the gritty details about your server. Make a plain text document (use TextWrangler – its free!) and put the following line of code in it:
<?php phpinfo(); ?>
Save that file as some_cryptic_name.php and use an (S)FTP application to upload it into the same folder as your index.html file. Then use a browser to visit that page: http://example.com/some_cryptic_name.php and you’ll see every last thing about your server. Don’t leave that file in plain sight for too long – it contains a wealth of information that any determined cracker (or automated bot) could find useful in destroying your server. Print the result from your browser, then delete the file from the server, or rename it to some_cryptic_name.txt so it won’t run.
Walter
On Oct 6, 2011, at 8:18 AM, Nate wrote:
I have been asked, what version of PHP is required for this script. Does anyone happen to know what version is being used here?