Archive for the ‘Visitors Questions’ Category

Running Spam Prevention Form as HTML page

Wednesday, November 12th, 2008

I’ve had many questions over the past couple of years, but there is one which keeps cropping up again and again.

Question: ‘When I view my form, no spam prevention question appears, what am I doing wrong?’

I look at the form on their website and noticed the file is called something like: contact.htm or form.html.

This is a very common question - I really should have covered this already. Anyway the solution is actually very easy to apply.

Why the error happens

The form prevention technique we use is written using the programming language called PHP. PHP is a Server-Side scripting language. In order for the PHP scripts to work, the Webserver needs to know that the page contains PHP code. By default, most Webservers assume that files named with .htm or .html do not contain any Server-Side scripts. So, if the form is named ‘contact.html’, the webserver will not run the PHP script.

Solution One - Rename the form
The easiest way to solve this issue is to just rename the form to have the file extension .php (not .htm or .html). For example, if the form is named: contact.html, then just rename it to: contact.php

This is not always the best solution for everyone however. For example, if the contact page has existed for a long time and has many links pointing to it, then renaming the page could cause problems. If this is the case, then you can use one of the other options below.

SolutionTwo - .htaccess file
Look for a file named .htaccess in the same folder as your contact form (the unix or linux command to view the list of ALL files: ls -al). If one already exists, then add the following new line. If you do not have this file, you should create it with the following line.

.htaccess

AddType application/x-httpd-php .html .htm

This will tell your webserver to treat any files with the .htm or .html file extension as a PHP script.
There are valid reasons for not wanting to apply this. For example, if you have lots of .htm files in the same directory - you may not want all the files being rendered as PHP as this could slow down your server. If none of the first two options are good for you, no fear, you have another options left.

Solution Three - IFrame (inline-frame)
This options is a compromise. You can keep your HTML file name with .htm or .html without having to apply the .htaccess method, but load the PHP form code into the page using an IFRAME. This method is very popular. Here is what you should do.

Save your form code (the original form code without any of your own site design) as form.php or contact.php

In your form HTML file, remove all form code (if any exists) and insert the following code in wherever you want the form to appear.

contact.php

 <div align="center">
<div style="width:540px;height:860px">
<IFRAME src="form.php" style="width:540px;height:860px;"
frameborder="0" scrolling="no" title="contact form"></IFRAME>
</div>
</div>

Save the .html and .php files to your website.

Note: The above has the size of: width:540px;height:860px set. You may need to change these numbers around to fit your own site design.

I hope this helps. Please reply or send us a message if you have any questions.

SafeGuard email address

Tuesday, July 29th, 2008

I’m very interested in this product but how can one modify the script to prevent someone from obtaining the contact forms email address.  I see it imbedded in the config file.  Will the email address show-up when someone views the contact forms source code?  thanks..

Pop up message - Thank you…

Tuesday, July 29th, 2008

Is there a way I can use the same type of pop up message that comes up with an error like “Field fullname cannot be empty” when the user trys to submit the form with an empty required field to tell them their request has been received?  I would like to have the “Thank you, we have received your form submission and will be in touch!!” pop up instead of redirecting them to the thankyou.php page.

Email verification?

Monday, July 28th, 2008

Great script!

Is there a way to add a “verify email” input to the form? So that users must enter their email address twice.

If so, can FCF check to make sure the two email addresses match?

Sending ip address problem + adding new fields

Sunday, July 27th, 2008

Hi there,

I really wanted to add an IP address but got the following problem

Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or ‘$’ in /hsphere/local/home/be*****/*****.com.au/process_form.php on line 161(i put in the ****)

Also i was just wondering with the fields i coped and pasted one in the form so i could add more questions, and changed the name of the question etc,

But i do not know how to get the these extra questions to send in the email?

Could you please help?

(Also i just wanted to say a HUGE thanks!!  I have been searchine the net for days trying to find a good form! THANK YOU)

my email addres is [admin removed]

cheerz

Register Globals problem

Friday, July 18th, 2008

Hi All

Firstly - great script and free to boot - fantastic value! However, I am getting a problem that I cant solve: Everything works perfectly until the code tries to construct the email headers where it keeps returning the “Register globals may be on, please switch this setting off…etc” error. They are off, checked (and double-checked).

Tried it on two different servers but still the same. Any clues?

Alternatively, how about using sendmail?

Cheers
Reg

Help with form please

Monday, June 30th, 2008

i have recently downloaded your contact form and was wondering is there anyway i could integrate the form into my html webpage?

How to Install

Tuesday, June 10th, 2008

I use FrontPage to creat my own simple websiet.  I have downloaded the contact form scripts but have no idea how to get any of it to actually work.  Where do I put the files?  Where do I put the code?  Is there a step by step tuitorial or instructions available?  Thanks.

validating/confirming valid email addresses

Friday, May 30th, 2008

Hi,

I just got the script and it’s working beautifully, but I need it to do 2 things I don’t see any answers for in this forum so I would like to know if there is any way to…

1) include a line of code or script that can validate whether an email address is valid or bogus?? with an error message that says please submit a valid email address when they put one that is not live??

2) I need FULL names from my form users, and the script allows them to only put their first name, with no error saying please go back and add your last name.. so could you tell me what line of code I could add so that there is a box for first name, and a 2nd text box for their last name in the form itself and have both validate as not empty??

Thaks for the help and the awesome script. I am as tired as anyone of porn spammers and the like wasting my time and space.

Have a great day!!
Dorene

form install help!

Tuesday, April 22nd, 2008

Hello! thanks for the free zip files for the form….but I don’t understand how to use it! I don’t know nothing on php etc…. I have a web site done by myself and I need to insert a form where people can pre register to an exhibition. I just want that the info are sent to my e-mail. Is it possible to create something like that? I did already a form with infopath but I cannot put it on the web …it doesn’t work. I tried everything but nothing works….plese help!