Developer Support »

Apparently not working, PHP code showing on form page  (See more user questions)

Sent: Friday, November 12, 2010 3:51 PM
Subject: Re: FormToEmail-Pro script


> :-)
> It's working
>
> Thankyou so much
>
>
>> Hi .
>>
>> Don't worry, most of my customers are new to this...that's why they come to
>> me (although some are plain-bonkers which I can tell you are not)!
>>
>> You're nearly there. You definitely have PHP on the server. I got the
>> correct "thank you" message. You have also put the script in the correct
>> place (http://www.example.com/formtoemailpro.php) I wouldn't
>> have got the "thank you" message otherwise.
>>
>> If you are not getting the emails, have a look at this page on my support
>> section:
>>
>> https://formtoemail.com/developersupport/not_receiving_email.php
>>
>> Most problems these days are to do with email services marking the emails
>> as "junk". There is a facility in the script to hard-code a From: email
>> address into it. You can then put that email address in a "Friends" list so
>> your email service will accept the emails. More information in the script
>> instructions about that.
>>
>> What you really need to do is spend some time reading through the script
>> instructions and and my support section, here:
>>
>> https://formtoemail.com/developersupport/
>>
>> ...then experiment/play around with it (make a test form page on your
>> website).
>>
>> Your form page doesn't look right and I see what you mean about the PHP
>> code showing up. That's because you shouldn't put any PHP code on an HTML
>> page like your form page. If using my script to process your own form (a
>> very common usage) you only need to change a tiny piece of the HTML code on
>> your form page, this part:
>>
>> <form action="formtoemailpro.php" method="post">
>>
>> ...which you have done correctly.
>>
>> You have added extra code into your form page, which you do not need. Get
>> rid of it all. This is it between the asterisks:
>>
>> *
>> <?php
>>
>> session_start();
>>
>>
>> if(isset($_SESSION['submitted_form_values'])){extract($_SESSION['submitted_form_values']);}
>> $subject = "Comments from contact form";
>> $continue = "/";
>> $auto_redirect = 0;
>> <p><b>State:</b> ff<state></p>
>>
>> <?php if(isset($form_field_name)){print
>> stripslashes($form_field_name);}else{print "";} ?>
>> $pre_populate_form = 0;
>> $show_errors_on_form_page = 0;
>> $word_block = 1;
>> $blocked_words = array('http://','https://','viagra');
>> $gibberish_check = 1;
>> $gibberish_threshold = 6;
>> $gibberish_exclude_fields = 1;
>> $gibberish_fields_to_exclude = array('email','Name','Surname');
>>
>> ?>
>> *
>>
>> The ONLY thing you need to change on your form page (
>> http://www.example.com/ContactUs.html) is the form action (<form
>> action="formtoemailpro.php" method="post">) which you have done correctly.
>>
>> Thereafter, just make sure you have added your email address in your
>> correctly located script.
>>
>>
>> Any questions, just let me know.
>>
>> Best wishes.
>>
>> Charles Sweeney
>> https://formtoemail.com
>> The world's easiest feedback script!
>>
>> ----- Original Message -----
>> Sent: Friday, November 12, 2010 3:06 PM
>> Subject: Re: FormToEmail-Pro script
>>
>>
>>
>> Dear Charles,
>>>
>>> Thankyou.
>>>
>>> No I didn't get the free one working as I wanted to use my own form. and I
>>> am a lot of a novice at all this!
>>>
>>> The URL is http://www.example.com/ContactUs.html
>>>
>>> Regards,
>>>
>>>
>>> On 12 November 2010 14:56, FormToEmail.com wrote:
>>>
>>> Hi .
>>>>
>>>> Thank you for your purchase. Good to hear from you.
>>>>
>>>> I recommend that customers try the free script before purchasing the Pro
>>>> script to be sure that it works on their system. Have you had the free
>>>> script working? If so, the Pro script will work too.
>>>>
>>>> Sounds to me like you don't have PHP on your server.
>>>>
>>>> If you give me the URL of your form page, I will have a look at it (for
>>>> all
>>>> I can tell from the outside).
>>>>
>>>> Any questions, just let me know.
>>>>
>>>> Best wishes.
>>>>
>>>> Charles Sweeney
>>>> https://formtoemail.com
>>>> The world's easiest feedback script!
>>>>
>>>> ----- Original Message -----
>>>> Sent: Friday, November 12, 2010 2:40 PM
>>>> Subject: FormToEmail script
>>>>
>>>>
>>>>>
>>>>> Comments: I have bought the pro version and am having trouble getting it
>>>>> to work.
>>>>> I uploaded the file to my server as you said and followed the
>>>>> instructions
>>>>> but it doesn't e-mail the form to me instead I see on my web page form
>>>>> all
>>>>> the $ comments as I typed them including the $my_email.
>>>>> This suggests to me that something is missing to make the page
>>>>> understand
>>>>> what $ means. I have tried putting them in different parts of tha code
>>>>> (as I
>>>>> am unsure where they should reside in the code..top? in the form?
>>>>> Can you help please?
>>>>> Thanks,