- Joined
- Mar 13, 2009
- Messages
- 827 (0.15/day)
- Location
- Bannock County
Processor | AMD FX-8320 4.1Ghz |
---|---|
Motherboard | Asus Aura |
Cooling | Corsair H60 |
Memory | Crucial Ballistix Sport 32GB |
Video Card(s) | EVGA 1060 SC |
Storage | Intel 535 Series SSD + Seagate FireCuda 2TB |
Case | NZXT |
Power Supply | EVGA 650 Watt |
Software | Windows 10 Pro 64-Bit |
I have been trying to get the information in this contact form to be required by the user. Right now users can click on the "contact us" button and it forwards them to the welcome page. What happens is when someone clicks the button it sends an e-mail with the values "Enter Your First Name" and "Enter Your Phone No." It does send the correct information if you actually enter your name and phone number. This form is located at: http://www.mycompumore.com/landing/service/
Any help would be greatly appreciated!
Any help would be greatly appreciated!
Code:
<form action="contact.php" method="post">
<input name="name" id="name" type="text" class="name_field" onFocus="if(this.value == 'Enter Your First Name'){ this.value = ''; this.style.color= '#1a1a1a'; }" onBlur="if(this.value == ''){ this.value = 'Enter Your First Name'; this.style.color= '#818181'; }" value="Enter Your Name" required />
<br />
<input type="text" name="phone" id="phone" class="phone_field" value="Enter Your Phone No." onFocus="if(this.value == 'Enter Your Phone No.'){ this.value = ''; this.style.color= '#1a1a1a'; }" onBlur="if(this.value == ''){ this.value = 'Enter Your Phone No.'; this.style.color= '#818181'; }" />
<br />
<input type="submit" name="submit" value="" class="opt_btn" />
</form>