Html & php contact form

I have a website template which l have used but for some reason only part of my php form gets emailed over.

On the client side form l have name, email, phone and message on my contact form.

I have set up a php form which part works! It does seem to be picking up the input fields from my HTML contact form but emails over the subject, along with the headings:- name, email, phone and message.

But the fields are blank.

Can anyone help.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Can anyone help.

Not without seeing it - can you provide a link?

Are you using one of the FW actions ie SendForm or PHP Feedback Form

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hope the below can help.

contacts.html:-

         <label><span class="text-form">Name:</span>

            <input name="name" id="name" type="text"  name="name" />
         </label>

          <label ><span class="text-form">Email:</span>
            <input name="email" id="email" type="text"  name="email"  />
          </label>

          <label ><span class="text-form">Phone:</span>
            <input name="phone" id="phone" type="text"   name="phone"  />
          </label>

php code:-

<?php $emailSubject = 'New enquiry from CHILDRENS ACCIDENT HELPLINE.CO.UK'; $mailto = 'email@hidden'; $name = $_POST[ 'name' ] ; $textemail = $_POST[ 'email' ] ; $textphone=$_POST['phone']; $textmessage=$_POST['message']; $body = <<<EOD


Please arrange call back:-
Name: $name
Email: $email
Phone: $phone
Message: $message
EOD; $headers = "From: $emailrn"; $headers .= "Content-type: text/htmlrn"; $success = mail($mailto, $emailSubject, $body, $headers); //redirect to the 'thank you' page header('Location: thanks.html'); ?>
          <div class="wrapper">
                  <div class="text-form">Message:</div>
            <textarea id="message" id="message"   name="message" ></textarea>


          </div>
          <br/>
       			 
          
          <div class="buttons"> <a class="button" href="#"   input type="reset" value="clear" >Clear</a> 
                                             <a class="button" href="mail2.php" type="submit" class="submit" value="send message">Send</a> 
          </div>
        </fieldset>


      </form>

freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hope the below can help.

contacts.html:-

         <label><span class="text-form">Name:</span>

            <input name="name" id="name" type="text"  name="name" />
         </label>

          <label ><span class="text-form">Email:</span>
            <input name="email" id="email" type="text"  name="email"  />
          </label>

          <label ><span class="text-form">Phone:</span>
            <input name="phone" id="phone" type="text"   name="phone"  />
          </label>

php code:-

<?php $emailSubject = 'New enquiry from CHILDRENS ACCIDENT HELPLINE.CO.UK'; $mailto = 'email@hidden'; $name = $_POST[ 'name' ] ; $textemail = $_POST[ 'email' ] ; $textphone=$_POST['phone']; $textmessage=$_POST['message']; $body = <<<EOD


Please arrange call back:-
Name: $name
Email: $email
Phone: $phone
Message: $message
EOD; $headers = "From: $emailrn"; $headers .= "Content-type: text/htmlrn"; $success = mail($mailto, $emailSubject, $body, $headers); //redirect to the 'thank you' page header('Location: thanks.html'); ?>
          <div class="wrapper">
                  <div class="text-form">Message:</div>
            <textarea id="message" id="message"   name="message" ></textarea>


          </div>
          <br/>
       			 
          
          <div class="buttons"> <a class="button" href="#"   input type="reset" value="clear" >Clear</a> 
                                             <a class="button" href="mail2.php" type="submit" class="submit" value="send message">Send</a> 
          </div>
        </fieldset>


      </form>

freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

When the email comes through it appears as below:-
New enquiry from CHILDRENS ACCIDENT HELPLINE.CO.UK

To: email@hidden

Please arrange call back:-
Name:
Email:
Phone:
Message:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

When the email comes through it appears as below:-
New enquiry from CHILDRENS ACCIDENT HELPLINE.CO.UK

To: email@hidden

Please arrange call back:-
Name:
Email:
Phone:
Message:


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Reggie,
The code you’ve posted appears different from that on your web site. It also looks like you aren’t using Freeway (http://www.softpress.com) to build your site. You’ll probably be better off looking for support from the people that created the contact form script or the template itself;
http://www.freecontactform.com/contact.php

If you’d like help recoding the form processor to work on your site feel free to get in touch via my web site as I’ve done a number of these in the past;
http://timplumb.com

Good luck with resolving these issues.
Regards,
Tim.

On 2 May 2014, at 00:01, Dc12 wrote:

I have a website template which l have used but for some reason only part of my php form gets emailed over.

On the client side form l have name, email, phone and message on my contact form.

I have set up a php form which part works! It does seem to be picking up the input fields from my HTML contact form but emails over the subject, along with the headings:- name, email, phone and message.

But the fields are blank.

Can anyone help.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you were using FW I would suggest that you use either the SendForm action or PHP Feedback Form action which have their own FW generated mail processing scripts.

Then if you were still having difficulties we could help.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options