Changing the Contact Form from Message Box to Phone Number

Hi,

I have an index.html and processform.php file. On the index.html file, I have a contact form which sends an email with the values of name, email and phone number. However, the php file has been built with a name, email and message field.

How do I amend this so that I can have the phone number? (If you know what I mean).

index.html code:

<form id="contactForm" action="processform.php" method="post"> <label>Full Name:</label> <input type="text" name="senderName" id="senderName" required="required" maxlength="40" /> <label>Email Address:</label> <input type="email" name="senderEmail" id="senderEmail" required="required" maxlength="50" /> <label>Contact Number:</label> <input type="text" name="senderNumber" id="senderNumber" required="required" maxlength="50" /> <input type="submit" id="sendMessage" name="sendMessage" class="button" value="Send Message" /> </form>

PHP code can be found here: http://codeviewer.org/view/code:48fa

Youy would need to add a new label and a field for it (type=“phone”). Then in the php file, you would need to add the processing, same as the other fields, to include the information.

Sponsor our Newsletter | Privacy Policy | Terms of Service