PDA

View Full Version : New Fields do not show on email


skeenan68408876
07-12-2010, 07:41 AM
Im hoping someone can help. Im using the formatted contact form and have inserted a new form field (phone number). The code in the manual does not work (using Dreamweaver CS5) and the field is not showing on my email. All other verified fields work ok and layout finer but i need this one extra field .

Jimmy Wu
07-12-2010, 10:48 AM
Can you send zip up and attach the contactus.php file that you are using with the added form field?

skeenan68408876
07-13-2010, 04:25 AM
As per your request please find attached the zip for the contact_styled PHP , the extra form field is "Phone_number". Cant get it to show on my email.

Jimmy Wu
07-14-2010, 02:07 PM
You are using phone-number instead of phone_number. You want to make sure to change from using a hyphen to using an underscrore.

skeenan68408876
07-15-2010, 05:25 AM
Jimmy

Thank you for pointing out my error, however even after changing this to an underscore from a hyphon, the phone field still does not show on the output email???

Jason Byrnes
07-15-2010, 07:54 AM
please post a link where I could the form online.

skeenan68408876
07-16-2010, 07:52 AM
Hi Jason

The link to my website with the contact form is below, but their is a zipped copy of the code in the message i sent to Jimmy too.

http://www.loyalty-worx.co.uk/ContactForm_GMC/contact_styled.php

Jason Byrnes
07-16-2010, 08:30 AM
the phone number form element is missing the value attribute.

change:
<input name="Phone_Number" type="text" class="inputValue" id="Phone_Number" />


to:
<input name="Phone_Number" type="text" class="inputValue" id="Phone_Number" value"" />

skeenan68408876
07-21-2010, 04:35 AM
Jason / Jimmy

Guys thanks for all your help witht he code, works fine.

Regards

Sean

Jason Byrnes
07-21-2010, 01:35 PM
glad to hear it is working.